public Autowah() { this.effect_name = "Autowah"; AutowahParams ap = new AutowahParams(); this.parameters = ap; ap.freq_high = 1000; ap.freq_low = 150; ap.f = 150; ap.wah_count = 0; ap.mixx = 0; ap.df = (float) ((ap.freq_high -ap.freq_low) * 1000.0 * sys.buffer_size / (sys.sample_rate * sys.nchannels * (float) 500)); ap.fd = new FilterData(); ap.enable = true; RCFilter.RC_setup(10, 1.5, ap.fd); RCFilter.RC_set_freq(ap.f, ap.fd); Form_Autowah form = new Form_Autowah(); form.effect = this; controler = form; }
public Autowah() { this.effect_name = "Autowah"; AutowahParams ap = new AutowahParams(); this.parameters = ap; ap.freq_high = 1000; ap.freq_low = 150; ap.f = 150; ap.wah_count = 0; ap.mixx = 0; ap.df = (float)((ap.freq_high - ap.freq_low) * 1000.0 * sys.buffer_size / (sys.sample_rate * sys.nchannels * (float)500)); ap.fd = new FilterData(); ap.enable = true; RCFilter.RC_setup(10, 1.5, ap.fd); RCFilter.RC_set_freq(ap.f, ap.fd); Form_Autowah form = new Form_Autowah(); form.effect = this; controler = form; }