@@ -169,21 +169,22 @@ void WavetableAudioProcessor::FilterParams::setup (WavetableAudioProcessor& p)
169169
170170 float maxFreq = float (gin::getMidiNoteFromHertz (20000.0 ));
171171
172- enable = p.addIntParam (id + " enable" , nm + " Enable" , " " , " " , { 0.0 , 1.0 , 1.0 , 1.0 }, 1 .0f , 0 .0f );
173- type = p.addIntParam (id + " type" , nm + " Type" , " Type" , " " , { 0.0 , 7.0 , 1.0 , 1.0 }, 0.0 , 0 .0f , filterTextFunction);
174- keyTracking = p.addExtParam (id + " key" , nm + " Key" , " Key" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
175- velocityTracking = p.addExtParam (id + " vel" , nm + " Vel" , " Vel" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
176- frequency = p.addExtParam (id + " freq" , nm + " Freq" , " Freq" , " Hz" , { 0.0 , maxFreq, 0.0 , 1.0 }, 64.0 , 0 .0f , freqTextFunction);
177- resonance = p.addExtParam (id + " res" , nm + " Res" , " Res" , " " , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
178- amount = p.addExtParam (id + " amount" , nm + " Amount" , " Amnt" , " " , { -1.0 , 1.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
179- attack = p.addExtParam (id + " attack" , nm + " Attack" , " A" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
180- decay = p.addExtParam (id + " decay" , nm + " Decay" , " D" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
181- sustain = p.addExtParam (id + " sustain" , nm + " Sustain" , " S" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 80 .0f , 0 .0f );
182- release = p.addExtParam (id + " release" , nm + " Release" , " R" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
183- wt1 = p.addIntParam (id + " wt1" , nm + " WT1" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
184- wt2 = p.addIntParam (id + " wt2" , nm + " WT2" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
185- sub = p.addIntParam (id + " sub" , nm + " sub" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
186- noise = p.addIntParam (id + " noise" , nm + " noise" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
172+ enable = p.addIntParam (id + " enable" , nm + " Enable" , " " , " " , { 0.0 , 1.0 , 1.0 , 1.0 }, 1 .0f , 0 .0f );
173+ retrig = p.addIntParam (id + " retrig" , nm + " Retrig" , " Retrig" , " " , { 0.0 , 1.0 , 1.0 , 1.0 }, 1.0 , 0 .0f , enableTextFunction);
174+ type = p.addIntParam (id + " type" , nm + " Type" , " Type" , " " , { 0.0 , 7.0 , 1.0 , 1.0 }, 0.0 , 0 .0f , filterTextFunction);
175+ keyTracking = p.addExtParam (id + " key" , nm + " Key" , " Key" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
176+ velocityTracking = p.addExtParam (id + " vel" , nm + " Vel" , " Vel" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
177+ frequency = p.addExtParam (id + " freq" , nm + " Freq" , " Freq" , " Hz" , { 0.0 , maxFreq, 0.0 , 1.0 }, 64.0 , 0 .0f , freqTextFunction);
178+ resonance = p.addExtParam (id + " res" , nm + " Res" , " Res" , " " , { 0.0 , 100.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
179+ amount = p.addExtParam (id + " amount" , nm + " Amount" , " Amnt" , " " , { -1.0 , 1.0 , 0.0 , 1.0 }, 0.0 , 0 .0f );
180+ attack = p.addExtParam (id + " attack" , nm + " Attack" , " A" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
181+ decay = p.addExtParam (id + " decay" , nm + " Decay" , " D" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
182+ sustain = p.addExtParam (id + " sustain" , nm + " Sustain" , " S" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 80 .0f , 0 .0f );
183+ release = p.addExtParam (id + " release" , nm + " Release" , " R" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
184+ wt1 = p.addIntParam (id + " wt1" , nm + " WT1" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
185+ wt2 = p.addIntParam (id + " wt2" , nm + " WT2" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
186+ sub = p.addIntParam (id + " sub" , nm + " sub" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
187+ noise = p.addIntParam (id + " noise" , nm + " noise" , " " , " " , { 0.0 , 1.0 , 1.0 , 1 .0f }, 1 .0f , 0 .0f );
187188
188189 sustain->conversionFunction = [] (float in) { return in / 100 .0f ; };
189190 velocityTracking->conversionFunction = [] (float in) { return in / 100 .0f ; };
@@ -197,6 +198,7 @@ void WavetableAudioProcessor::EnvParams::setup (WavetableAudioProcessor& p, int
197198 juce::String nm = " ENV" + juce::String (idx + 1 ) + " " ;
198199
199200 enable = p.addIntParam (id + " enable" , nm + " Enable" , " Enable" , " " , { 0.0 , 1.0 , 1.0 , 1.0 }, 0.0 , 0 .0f , enableTextFunction);
201+ retrig = p.addIntParam (id + " retrig" , nm + " Retrig" , " Retrig" , " " , { 0.0 , 1.0 , 1.0 , 1.0 }, 1.0 , 0 .0f , enableTextFunction);
200202 attack = p.addExtParam (id + " attack" , nm + " Attack" , " A" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
201203 decay = p.addExtParam (id + " decay" , nm + " Decay" , " D" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
202204 sustain = p.addExtParam (id + " sustain" , nm + " Sustain" , " S" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 80 .0f , 0 .0f );
@@ -271,7 +273,8 @@ void WavetableAudioProcessor::GateParams::setup (WavetableAudioProcessor& p)
271273// ==============================================================================
272274void WavetableAudioProcessor::ADSRParams::setup (WavetableAudioProcessor& p)
273275{
274- velocityTracking = p.addExtParam (" vel" , " Vel" , " Vel" , " " , { 0.0 , 100.0 , 0.0 , 1.0 }, 100.0 , 0 .0f );
276+ retrig = p.addIntParam (" retrig" , " Retrig" , " Retrig" ," " , { 0.0 , 1.0 , 1.0 , 1.0 }, 1 .0f , 0 .0f , enableTextFunction);
277+ velocityTracking = p.addExtParam (" vel" , " Vel" , " Vel" , " " , { 0.0 , 100.0 , 0.0 , 1.0 }, 100 .0f , 0 .0f );
275278 attack = p.addExtParam (" attack" , " Attack" , " A" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
276279 decay = p.addExtParam (" decay" , " Decay" , " D" , " s" , { 0.0 , 60.0 , 0.0 , 0 .2f }, 0 .1f , 0 .0f );
277280 sustain = p.addExtParam (" sustain" , " Sustain" , " S" , " %" , { 0.0 , 100.0 , 0.0 , 1.0 }, 80 .0f , 0 .0f );
0 commit comments