| @@ -105,10 +105,10 @@ class LoopPedal | |||||
| public void setWet( float ratio ) { ratio => wet.gain; 1-ratio => dry.gain;} | public void setWet( float ratio ) { ratio => wet.gain; 1-ratio => dry.gain;} | ||||
| public void clear() { sample.clear(); } | public void clear() { sample.clear(); } | ||||
| public void recordFrom(UGen ugen) { ugen => sample; } | public void recordFrom(UGen ugen) { ugen => sample; } | ||||
| public dur remaining() { sample.loopEnd() => dur ltime; return (ltime - sample.playPos()) % (ltime/4.); } | |||||
| public int beat() { | |||||
| <<< 4*sample.playPos()/sample.loopEnd()>>>; | |||||
| return Math.round(4 * sample.playPos() / sample.loopEnd()) $ int; | |||||
| public int beat() { return Math.round(4 * sample.playPos() / sample.loopEnd()) $ int; } | |||||
| public dur remaining() { | |||||
| sample.loopEnd() => dur ltime; | |||||
| return (ltime - sample.playPos()) % (ltime/4.); | |||||
| } | } | ||||
| public void outputTo(UGen wetSink, UGen drySink) { | public void outputTo(UGen wetSink, UGen drySink) { | ||||
| @@ -259,11 +259,11 @@ class FXPanel(wx.Panel): | |||||
| label.SetFont(font) | label.SetFont(font) | ||||
| sizer.Add(label, 0, wx.EXPAND | wx.TOP | wx.BOTTOM | wx.RIGHT, 5) | sizer.Add(label, 0, wx.EXPAND | wx.TOP | wx.BOTTOM | wx.RIGHT, 5) | ||||
| self.lpf = OSCSlider(self, "Lo-pass", default_value=.5, align=False) | |||||
| self.lpf = OSCSlider(self, "Lo-pass", default_value=.9, 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, default_value=.5, align=False) | |||||
| self.hpf = OSCSlider(self, "Hi-pass", min_value=0, default_value=.1, align=False) | |||||
| sizer.Add(self.hpf, 2, wx.EXPAND | wx.ALL, 5) | sizer.Add(self.hpf, 2, wx.EXPAND | wx.ALL, 5) | ||||
| self.hpf.Bind(wx.EVT_SCROLL, self.update) | self.hpf.Bind(wx.EVT_SCROLL, self.update) | ||||