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 DiscreteNoteBins SoundMap from a key (i.e. "C:maj") and an octave range.

from_midi([start_note, end_note])

Constructs a DiscreteNoteBins SoundMap between two midi note numbers..

from_notes([start_note, end_note])

Constructs a DiscreteNoteBins SoundMap 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

frequencies

The frequency of each note in the SoundMap

notes

The list of musical notes in the SoundMap