import jp.crestmuse.cmx.filewrappers.* f = CMXFileWrapper.readfile("sample.xml") f.eachnote { note -> notations = note.getFirstNotations() if (note.hasArticulation("staccato")) println("Make the duration of this note shorter.") if (notations != null && notations.fermata() != null) println("Make the tempo slower here.") }