implemented NoteCollection.toIndexes()
implemented NoteCollection.toFormula