musicaiz.structure.NoteClassBase¶
- class musicaiz.structure.NoteClassBase(value)[source]¶
- The Tuples have 3 values:
Value 1: the most common and abbreviate note name Value 2: index of note in natural scale (no accidentals)
This index is the one that we’ll use to calculate the interval class (2nd, 3rd…)
- Value 3: index of the note in chromatic scale
This value will give us the distance in semitones between 2 notes.
- __init__(*args, **kwargs)¶
Methods
get_natural_note(note)Returns the natural note corresponding to an altered note.
all_chromatic_scale_indexes()all_natural_scale_indexes()get_note_with_name(note_name)get_natural_scale_notes()get_all_chromatic_scale_notes()Returns all the notes in chromatic scale (flats AND sharps).
get_notes_chromatic_scale([alteration])Attributes
CB_SHARPC_SHARPD_FLATDD_SHARPE_FLATEF_FLATE_SHARPFF_SHARPG_FLATGG_SHARPA_FLATAA_SHARPB_FLATBC_FLATnatural_scale_indexchromatic_scale_indexadd_sharpadd_flat