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;
        }
        void update_wah_freqhi(int adj_value)
        {
            AutowahParams ap = (AutowahParams)this.parameters;

            ap.freq_high = (float)adj_value;
            RCFilter.RC_setup(10, 1.5, ap.fd);
            RCFilter.RC_set_freq(ap.f, ap.fd);
        }
        public void update_wah_freqlow(int adj_value)
        {
            AutowahParams ap = (AutowahParams)this.parameters;

            ap.freq_low = (float)adj_value;
            ap.f        = ap.freq_low;
            RCFilter.RC_setup(10, 1.5, ap.fd);
            RCFilter.RC_set_freq(ap.f, ap.fd);
        }
 public void update_wah_speed(AutowahParams prams , int adj_value)
 {
     prams.df = (float) ((prams.freq_high - prams.freq_low) * 1000.0 * sys.buffer_size / (sys.sample_rate *
                      sys.nchannels *
                      (float) adj_value));
 }
 public void update_wah_speed(AutowahParams prams, int adj_value)
 {
     prams.df = (float)((prams.freq_high - prams.freq_low) * 1000.0 * sys.buffer_size / (sys.sample_rate *
                                                                                         sys.nchannels *
                                                                                         (float)adj_value));
 }
Exemplo n.º 7
0
 private void Form_Autowah_Load(object sender, EventArgs e)
 {
     effect_params = (AutowahParams)effect.parameters;
 }
 private void Form_Autowah_Load(object sender, EventArgs e)
 {
     effect_params = (AutowahParams)effect.parameters;
 }