import jp.crestmuse.cmx.filewrappers.* f = CMXFileWrapper.readfile("sample.xml") f.eachnote { note -> if (note.hasArticulation("staccato")) println("This note has staccato.") else println("This note does not have staccato.") }