1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

Only on when moving knob

Discussion in 'REAKTOR' started by JAMCPH, Jun 18, 2015.

  1. JAMCPH

    JAMCPH Member

    Messages:
    48
    Hi. I have a sample that is playing continously. I then want to add a knob.
    Whenever the knob is moved i want a vca to open up and pass audio through. Whenever the knob is not moved i want the vca to close. Mind you this is not a simple volume control. I DONT want a "knob set to 0=0 volume, knob set to 100=100 volume".
    More like: "whenever knob is moved: volume=100
    I want to be able to control fade in/fade out of the vca as well.

    So basically this: if knob move detected=open vca with X amount of fadein. If knob move not detected=close vca with X amount of fade out.

    I kind of made it work using a sample and hold module that checks for knob movement. Like this:

    [​IMG]

    The S/H input and the A input on the compare/equal is coming from the knob.

    The output of the A/E right after the compare/equal module goes to a gate in of an ADSR. That ADSR controls the level of a mixer that passes the sample through.

    How often the knob movement is checked, is dependant on the freq of the LFO. If freq is set to low, i get a quick envelope cycling endlessly, beause the adsr is triggered over and over again. If i set it to fast, the adsr never gets fully triggered and the signal passed through the mixer is very low.

    Is there some way to make a simpler version of "whenever knob is moved, pass audio"?

    Thanks.
     

    Attached Files:

  2. tomtakestooth

    tomtakestooth NI Product Owner

    Messages:
    170
    Have you tried comparing the knob's output to a delayed version of the same output?
     
  3. JAMCPH

    JAMCPH Member

    Messages:
    48
    Good idea!
    Will check it out.
     
  4. ZooTooK

    ZooTooK NI Product Owner

    Messages:
    1,751
    There's a module called differetial or something like that.... about the same as suggested I guess.
     
  5. mpl

    mpl NI Product Owner

    Messages:
    496
    Is this the type of behaviour your looking for
    This example has the knob controlling pitch but it could be anything.
    hope this helps you
    mike
    just had another look and if you use the attack time to control the delay time this ensures that the full attack fade is heard( note:use a separator to make sure 0 doesn't go to delay as it needs a bit of a delay to work and convert to ms as env attack is log values)
     

    Attached Files:

    Last edited: Jun 18, 2015
  6. JAMCPH

    JAMCPH Member

    Messages:
    48
    Hi MPL. Thanks a lot for the patch!
    Works fine:)