The result of one key+scale interval mapping. More...
#include <harmony_engine.hpp>
Public Attributes | |
| int | shift_semitones = 0 |
| The concrete shift. THIS is the "intelligent" bit. | |
| int | input_midi = 0 |
| The chromatic note the tracker was rounded to. | |
| int | snapped_midi = 0 |
| The in-scale note the input was snapped to. | |
| int | target_midi = 0 |
| The in-scale note the harmony voice plays. | |
| int | degree = 0 |
| Index of snapped_midi in the scale's degree list. | |
| bool | chromatic = false |
| The input was off-scale and had to be snapped. | |
| bool | clamped = false |
| The shift hit the ±1 octave ratio clamp. | |
The result of one key+scale interval mapping.
Everything a caller or a test needs to check the answer against the mask rather than against a literal.
| bool pulp::signal::DiatonicMapping::chromatic = false |
The input was off-scale and had to be snapped.
| bool pulp::signal::DiatonicMapping::clamped = false |
The shift hit the ±1 octave ratio clamp.
| int pulp::signal::DiatonicMapping::degree = 0 |
Index of snapped_midi in the scale's degree list.
| int pulp::signal::DiatonicMapping::input_midi = 0 |
The chromatic note the tracker was rounded to.
| int pulp::signal::DiatonicMapping::shift_semitones = 0 |
The concrete shift. THIS is the "intelligent" bit.
| int pulp::signal::DiatonicMapping::snapped_midi = 0 |
The in-scale note the input was snapped to.
| int pulp::signal::DiatonicMapping::target_midi = 0 |
The in-scale note the harmony voice plays.