mirror of
https://codeberg.org/armin/wavetable.git
synced 2026-09-01 05:50:46 +02:00
UI work
This commit is contained in:
parent
f1829adfcf
commit
8a591b3ab0
7 changed files with 72 additions and 13 deletions
|
|
@ -191,7 +191,7 @@ void WavetableVoice::updateParams (int blockSize)
|
|||
currentMidiNotes[i] += float (note.totalPitchbendInSemitones);
|
||||
currentMidiNotes[i] += getValue (proc.oscParams[i].tune) + getValue (proc.oscParams[i].finetune) / 100.0f;
|
||||
|
||||
oscParams[i].wave = gin::Wave::silence;
|
||||
oscParams[i].wave = gin::Wave::wavetable;
|
||||
oscParams[i].voices = int (proc.oscParams[i].voices->getProcValue());
|
||||
oscParams[i].vcTrns = int (proc.oscParams[i].voicesTrns->getProcValue());
|
||||
oscParams[i].pw = getValue (proc.oscParams[i].pos) / 100.0f;
|
||||
|
|
@ -361,3 +361,10 @@ float WavetableVoice::getFilterCutoffNormalized()
|
|||
float freq = filter.getFrequency();
|
||||
return proc.filterParams.frequency->getUserRange().convertTo0to1 (gin::getMidiNoteFromHertz (freq));
|
||||
}
|
||||
|
||||
gin::WTOscillator::Params WavetableVoice::getLiveWTParams (int osc)
|
||||
{
|
||||
gin::WTOscillator::Params p;
|
||||
p.pw = getValue (proc.oscParams[osc].pos) / 100.0f;
|
||||
return p;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue