makeNote¶
- maelzel.scoring.makeNote(pitch, duration, offset=None, annotation='', gliss=False, withId=False, enharmonicSpelling='', dynamic='', **kws)[source]¶
Utility function to create a note Notation
- Parameters:
pitch (
Union
[int
,float
,str
]) – the pitch as midinote or notename. If given a pitch as str, the note in question is fixed at the given enharmonic representation.duration (
Union
[float
,int
,Fraction
]) – the duration of this Notation. Use 0 tp create a grace noteoffset (
Union
[float
,int
,Fraction
,None
]) – the offset of this Notation (None to leave unset)annotation – an optional text annotation for this note
gliss – does this Notation start a glissando?
withId – if True, this Notation has a group id and this id can be used to mark multiple notes as belonging to a same group
enharmonicSpelling – if given, this spelling of pitch will be used
dynamic – a dynamic such as ‘p’, ‘mf’, ‘ff’, etc.
**kws – any keyword accepted by Notation
- Return type:
- Returns:
the created Notation