numuse.notation.NoteCollection
numuse.notation.NoteCollection¶
- class numuse.notation.NoteCollection(notes: Set[numuse.notation.Note], duration=0, musical_system=<numuse.musical_system.RBMS_Approximation object>)[source]¶
Bases:
objectA collection of notes from a musical system
If a duration is specified then this represents all notes being played at once.
Otherwise it just represents a conceptual set of notes
- Parameters
notes (List[int]) – The notes in this note collection
duration (List[int]) – How long this note collection is held for
musical_system (RBMS_Approximation) – The underlying musical system
- __init__(notes: Set[numuse.notation.Note], duration=0, musical_system=<numuse.musical_system.RBMS_Approximation object>)[source]¶
Initialize self. See help(type(self)) for accurate signature.
Methods
__init__(notes[, duration, musical_system])Initialize self.
compute_diatonic_distance(other_NC)Return how many notes the two note collections differ by dividided by the number of notes it has
Generates the wave function determined by the current musical system
- compute_diatonic_distance(other_NC: numuse.notation.NoteCollection) → float[source]¶
Return how many notes the two note collections differ by dividided by the number of notes it has
