Browse Source

FX

master
Pete Shadbolt 10 years ago
parent
commit
1fb5a6613e
2 changed files with 11 additions and 4 deletions
  1. +4
    -2
      main.ck
  2. +7
    -2
      main.py

+ 4
- 2
main.ck View File

@@ -3,7 +3,7 @@
// TODO: currently I don't turn ADC thru back on after recording // TODO: currently I don't turn ADC thru back on after recording


// Effects chain with limiters, reverb, filters // Effects chain with limiters, reverb, filters
NRev reverb => LPF lpf => Dyno outputLimiter => dac;
NRev reverb => LPF lpf => HPF hpf => Dyno outputLimiter => dac;
outputLimiter.limit(); outputLimiter.limit();
reverb @=> UGen @ outputWet; // Reference to wet output reverb @=> UGen @ outputWet; // Reference to wet output
outputLimiter @=> UGen @ outputDry; // Reference to dry output outputLimiter @=> UGen @ outputDry; // Reference to dry output
@@ -18,6 +18,7 @@ inputLimiter @=> UGen @ mainInput;
// Default parameters // Default parameters
.5 => adcThru.gain; .5 => adcThru.gain;
10000 => lpf.freq; 10000 => lpf.freq;
10 => hpf.freq;
1::second => dur loopTime; 1::second => dur loopTime;


// Plug in the pedals // Plug in the pedals
@@ -67,7 +68,8 @@ while (true) {
} }
else if(msg.address=="/fx") { else if(msg.address=="/fx") {
(100+msg.getFloat(0)*10000) => lpf.freq; (100+msg.getFloat(0)*10000) => lpf.freq;
msg.getFloat(1) => reverb.mix;
(100+msg.getFloat(1)*10000) => hpf.freq;
msg.getFloat(2) => reverb.mix;
} }
else if(msg.address=="/master") { else if(msg.address=="/master") {
msg.getFloat(0) => mainOutput.gain; msg.getFloat(0) => mainOutput.gain;


+ 7
- 2
main.py View File

@@ -227,10 +227,14 @@ class FXPanel(wx.Panel):
#sizer.Add(self.fxtype, 1, wx.ALL|wx.EXPAND, 5) #sizer.Add(self.fxtype, 1, wx.ALL|wx.EXPAND, 5)
#self.fxtype.SetValue(choices[0]) #self.fxtype.SetValue(choices[0])


self.lpf=OSCSlider(self, "Lowpass", default_value=.5, align=False)
self.lpf=OSCSlider(self, "Lo-pass", default_value=.5, align=False)
sizer.Add(self.lpf, 2, wx.EXPAND|wx.ALL, 5) sizer.Add(self.lpf, 2, wx.EXPAND|wx.ALL, 5)
self.lpf.Bind(wx.EVT_SCROLL, self.update) self.lpf.Bind(wx.EVT_SCROLL, self.update)


self.hpf=OSCSlider(self, "Hi-pass", min_value=0.1, default_value=.5, align=False)
sizer.Add(self.hpf, 2, wx.EXPAND|wx.ALL, 5)
self.hpf.Bind(wx.EVT_SCROLL, self.update)

self.reverb=OSCSlider(self, "Reverb", default_value=.5, align=False) self.reverb=OSCSlider(self, "Reverb", default_value=.5, align=False)
sizer.Add(self.reverb, 2, wx.EXPAND|wx.ALL, 5) sizer.Add(self.reverb, 2, wx.EXPAND|wx.ALL, 5)
self.reverb.Bind(wx.EVT_SCROLL, self.update) self.reverb.Bind(wx.EVT_SCROLL, self.update)
@@ -240,8 +244,9 @@ class FXPanel(wx.Panel):


def update(self, evt): def update(self, evt):
a=self.lpf.slider.GetValue()/100. a=self.lpf.slider.GetValue()/100.
a2=self.hpf.slider.GetValue()/100.
b=self.reverb.slider.GetValue()/100. b=self.reverb.slider.GetValue()/100.
sendOSCSafe("/fx", [a,b])
sendOSCSafe("/fx", [a,a2,b])


class OutputPanel(wx.Panel): class OutputPanel(wx.Panel):
''' Handle the ADC input settings ''' ''' Handle the ADC input settings '''


Loading…
Cancel
Save