Sound Byte Libs 0.5.1-340-gab5b79a
C++ firmware library for audio applications on 32-bit ARM Cortex-M processors
Loading...
Searching...
No Matches
midi_keys.hpp File Reference

MIDI notes to pitch, gate and velocity for one voice. More...

Detailed Description

MIDI notes to pitch, gate and velocity for one voice.

The edge adapter between MIDI's note numbers and the voice: notes stay here, and what leaves is pitch in octaves relative to REFERENCE_NOTE, a gate and a velocity in [0, 1]. Mono with last-note priority over a stack of held notes: a new note sounds at once; releasing it returns to the most recent note still held with the gate kept high (legato); releasing the last note drops the gate and leaves pitch and velocity where they were, so a release tail keeps its pitch. Pressing a held note again moves it to the top. When the stack is full the oldest note is forgotten.

Retrigger as a setting, other priorities, pitch bend and the sustain pedal are not implemented (sound-byte-libs#118). Fed from the Drain stage; no MIDI type is needed here, the app routes note on and note off to it.

Definition in file midi_keys.hpp.

#include <cstdint>

Go to the source code of this file.

Classes

class  sbl::control::MidiKeys
 

Namespaces

namespace  sbl
 Root namespace for all Sound Byte Libs code.
 
namespace  sbl::control
 The control stack: scheduler, event queue, merge, CC mapping, calibration.