mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
Add custom pitch bend range
This commit is contained in:
parent
1dadf8d952
commit
c53eb68a0a
7 changed files with 46 additions and 36 deletions
|
|
@ -31,7 +31,8 @@ void WavetableVoice::noteStarted()
|
|||
}
|
||||
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcVelocity, note.noteOnVelocity.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.initialTimbre.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.timbre.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcPitchbend, note.pitchbend.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcPressure, note.pressure.asUnsignedFloat());
|
||||
|
||||
juce::ScopedValueSetter<bool> svs (disableSmoothing, true);
|
||||
|
|
@ -86,8 +87,9 @@ void WavetableVoice::noteRetriggered()
|
|||
}
|
||||
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcVelocity, note.noteOnVelocity.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.initialTimbre.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.timbre.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcPressure, note.pressure.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcPitchbend, note.pitchbend.asUnsignedFloat());
|
||||
|
||||
updateParams (0);
|
||||
|
||||
|
|
@ -123,7 +125,13 @@ void WavetableVoice::notePressureChanged()
|
|||
void WavetableVoice::noteTimbreChanged()
|
||||
{
|
||||
auto note = getCurrentlyPlayingNote();
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.initialTimbre.asUnsignedFloat());
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcTimbre, note.timbre.asUnsignedFloat());
|
||||
}
|
||||
|
||||
void WavetableVoice::notePitchbendChanged()
|
||||
{
|
||||
auto note = getCurrentlyPlayingNote();
|
||||
proc.modMatrix.setPolyValue (*this, proc.modSrcPitchbend, note.pitchbend.asUnsignedFloat());
|
||||
}
|
||||
|
||||
void WavetableVoice::setCurrentSampleRate (double newRate)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue