Utils
NoteData
Optional wrapper for readable representation of MIDI note data.
When using it as int
- it's note's MIDI data, when using as str
- it's note's name.
Parameters:
-
int_or_name
(int | str
) –note MIDI data (0-127) or note name (like 'C#3' or 'Db3')
-
use_flats
(bool
, default:False
) –True
to use flats in note name (Db3),False
to use sharps (C#3)