automatic filtersweep in gen~

    Feb 18 2014 | 11:28 pm
    so I’m just taking my first steps in gen~ and I got stuck on a problem. I have built a low-pass filter and a threshold so far. I want to make them both work together now and I’m not sure, if that is even possible in gen~ (I would really like to try having as little as possible going on outside the gen~ patcher).
    So what I want to do, is to start a filter automation every time a certain threshold is passed.
    Lets say I want to make a filter sweep from 100Hz to 1000Hz as soon as the “>=“ gives out a 1 because the threshold got passed, how would I accomplish that?
    My first idea was to use a phasor and just scale 0. 1. 100. 1000.
    but of course there is no way to trigger this phasor movement just once, instead it’s running all the time… is there a way to accomplish this without leaving the gen~ patcher?
    Thank you

    • Feb 20 2014 | 2:27 am
      i took a stab at it. you can add the filter stuff to this, hopefully
      edit: it looks like it copied incorrectly for some reason. make sure to
      hook up the first [delay 1] to the [-] right below it
    • Feb 20 2014 | 8:43 am
      Thank you! I'll check it out... solved the problem myself by now, using a counter as samplerate-based ramp generator, but I'll test yours anyways!
    • Feb 20 2014 | 9:36 pm
      Nice! I considered something like that but ultimately got fixated on making the phasor thing work. It could probably be simplified but I wouldn't know.
      Also, both delay 1's aren't connected to the - boxes below them. I have no clue why it keeps copying like that. You can use this instead
      Also, would you mind posting your solution? I'm curious to see how you worked it out!