scisonify.core.soundmaps.DiscreteNoteBins
- class scisonify.core.soundmaps.DiscreteNoteBins(notes)
Maps normalized data points to a discrete set of musical notes.
- __init__(notes)
Methods
__init__(notes)from_key([key, octave_range])Constructs a
DiscreteNoteBinsSoundMap from a key (i.e. "C:maj") and an octave range.from_midi([start_note, end_note])Constructs a
DiscreteNoteBinsSoundMap between two midi note numbers..from_notes([start_note, end_note])Constructs a
DiscreteNoteBinsSoundMap between two musical notes.get_frequency(value)Maps a normalized data point to its frequency (hz)
get_note(value)Maps a normalized data point to its musical note
Attributes
frequenciesThe frequency of each note in the SoundMap
notesThe list of musical notes in the SoundMap