View Functions

There are a number of functions to help you visually display music in Python. These are part of the View class.  Of these functions, notation(), sketch(), and pianoRoll() also allow adding new notes to the musical material being displayed.  However, these notes cannot be saved back to the original program (that called the View functions) – only to an external MIDI file.

FunctionDescription
View.notation(material)Display the phrase as staff notation, where material may be a Score, Part or Phrase. Note: The notation capability is limited to only one Phrase. But it allows to enter music as notation and save the Phrase as a MIDI file (among other options).
View.internal(material)Print out the music data to the screen, where material may be a Score, Part or Phrase.
View.sketch(material)Display the music as a small piano-roll display, where material may be a Score, Part or Phrase.
View.pianoRoll(material)Display the music as a piano-roll display, where material may be a Score, Part or Phrase.