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
C
B_SHARP
C_SHARP
D_FLAT
D
D_SHARP
E_FLAT
E
F_FLAT
E_SHARP
F
F_SHARP
G_FLAT
G
G_SHARP
A_FLAT
A
A_SHARP
B_FLAT
B
C_FLAT
natural_scale_index
chromatic_scale_index
add_sharp
add_flat