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.

 

Function Description
View.notation(material) Display the phrase as staff notation, where material may be a Score, Part or Phrase.
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.