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

I'm trying to build a hold & trigger device.

Discussion in 'REAKTOR' started by Michael O'Hagan, Feb 5, 2021.

  1. Michael O'Hagan

    Michael O'Hagan NI Product Owner

    Messages:
    1,163
    I need to build a hold and trigger device with adjustable hold time and the ability to ignore extra incoming events while a hold is taking place.

    I'm working on a live audio sampler that I want to have an ableton style record mode, wher you can hit record ahead of time and when the next loop begins it will trigger the record on mode and sustain itself for the entire duration of the loop before turning off.

    It should have an in port for event trigger and an in port for wait time, the time to wait before it outputs a 1, then it should have an in port for hold time, the time that the 1 will stay active.

    It should function like this,

    send event trigger, activate wait time, at the end of the wait time activate the hold time while outputting a 1, at the end of the hols time deactivate and output a 0.

    I can't figure out how to get this idea to work right now,

    does anyone have any suggestions?

    Thanks.
     
  2. Laureano Lopez

    Laureano Lopez NI Product Owner

    Messages:
    416
    Something like that?
     

    Attached Files:

    • Like Like x 1
  3. Michael O'Hagan

    Michael O'Hagan NI Product Owner

    Messages:
    1,163
    Thats pretty much the idea, but I need it at audio rate as its going to be runnind deep in a core cell with very precise audio data, but this helps point me in the right direction, thanks.
     
  4. Michael O'Hagan

    Michael O'Hagan NI Product Owner

    Messages:
    1,163
    Ok, my mistake, this works at audio rate, I just forgot to set the output port to allow audio events so the event watcher wasn't showing anything.
     
    • Like Like x 2
  5. Laureano Lopez

    Laureano Lopez NI Product Owner

    Messages:
    416
    A slightly more elegant version (it saves one compare). Also just in case, a version that ignores triggers during wait too. Some notes:
    - If the trigger comes from a primary event source, you should place something before to filter out inits/resets.
    - The DupFlt could be removed if the output is not a trigger by itself (for example, if it's only the input of a compare module).
    - If the output goes to an audio out of the cell and then into another cell, the DupFlt should be moved to the second cell (it wouldn't be of any use in the first one).
     

    Attached Files:

    • Like Like x 2
  6. ANDREW221231

    ANDREW221231 NI Product Owner

    Messages:
    875
    that is really handy, as well as some finely crafted reaktor code. don't remember how many times i've needed that functionality, only once did i manage to hobble something together in primary that barely worked