Skip to content

addNote()

Add a note to the end of the phrase.

phrase.addNote(note)

Give a ready-made Note, or give a pitch and a duration and one is built for you.

Parameters

phrase.addNote(note, duration=None)
Parameter Type Default Description
note Note or int or float required A Note to add, or a MIDI pitch (or frequency) to build one from.
duration int or float None The note's duration (a float where 1.0 is a quarter note), used when building a note from a pitch.