import jp.crestmuse.cmx.filewrappers.* f = CMXFileWrapper.readfile("sample.xml") f.eachnote { note -> notations = note.getFirstNotations() if (notations != null && notations.fermata() != null) println("This note has fermata.") else println("This note does not have fermata.") }