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

Audio as gate input

Discussion in 'Building With Reaktor' started by Artelis, Sep 30, 2008.

Thread Status:
Not open for further replies.
  1. Artelis

    Artelis New Member

    Messages:
    8
    I'm wondering if there is a way to convert the audio signal so I can use it as a gate input for an ADSR filter. I'd like to do this so I can use a mixer to add different negative values to different gates so I can trigger different voices depending on how loud the audio is. It would be something like this.

    Audio Signal + (-10) -> gateA
    Audio Signal + (-20) -> gateB
    Audio Signal + (-40) -> gateC

    This way it would only trigger the gate when the signal is > 0. Problem being I can't plug my audio to the gate in on my envelope. Suggestions?
     
  2. gzifcak

    gzifcak Forum Member

    Messages:
    212
    have you tried the a-to-e module? it turns audio signals to events. you might need to process the audio a little first to prevent multiple triggering each time the waveform goes up and down.
     
  3. Artelis

    Artelis New Member

    Messages:
    8
    I've just been messing around with the a to e. I'm not sure what sort of processing I should do though because I mostly get a lot of weird retriggers.
     
  4. gzifcak

    gzifcak Forum Member

    Messages:
    212
    i think basically what you need is an envelope follower, to turn the constantly varying audio into a signal that just traces the general amplitude changes. you could try a low pass filter with a really low setting, but that might make the triggering a little sluggish.

    maybe a hold envelope after the a-to-e would do it?
     
  5. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    here is an Audio to Gate Macro:

    sowari
     

    Attached Files:

  6. herw

    herw NI Product Owner

    Messages:
    6,421
    yes it works with low frequencies (a few Hz).But there are several problems with primary level because of multiple events (look at an eventwatcher). You need an envelope follower as metioned before.
    A good solution would be in core possible but it is not trivial and depends on the application.

    ciao herw
     
  7. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    ;)

    well, i don't have one made in Core :lol:

    so here is one taken from Analogic Filter Box

    it does have an Envelope Follower

    sowari
     

    Attached Files:

  8. herw

    herw NI Product Owner

    Messages:
    6,421
    yes better.
    I don't know whether the thread starter wants a gate signal with highest audio frequencies f.i. to use as an audio switcher or only low frequency events.

    ciao herw
     
  9. Artelis

    Artelis New Member

    Messages:
    8
    well I checked out the files you made. Some stuff is confusing, but after reading some other posts, maybe you're over thinking this.

    If my knowledge is right, then should work like this. If any signal greater than 0 is running to it, than it should be on. So wouldn't it make sense that any audio running through the mic (if the mic is connected to the gate) should trigger the gate? Doesn't seem like a complex setup is really required.
     
  10. Artelis

    Artelis New Member

    Messages:
    8
    I also just put this together
     

    Attached Files:

  11. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    the 2 files i gave you are

    1/ a classic Audio to Gate trigger made by NI for Reaktor 3

    2/ the Audio to Gate trigger from Analogic Filter Box in the Classics Library.

    if you want a reliable trigger, one that triggers when you want and not from some hiss on the Microphone, then you need the above structures. these were made especially for Audio to Gate triggering and are based on Hardware versions.

    i have to be honest, but your structure would not be very reliable or predictable. in fact i have just tried it, and there are some artefacts happening that are causing glitches.

    if you have some questions about the structures that i uploaded, then please ask :)

    sowari
     
  12. Artelis

    Artelis New Member

    Messages:
    8
    ok, here's some more questions completely disregarding the other gates. I just want to test some theory things. Is there anyway to convert my incoming audio signal to a constant number? So let's say ANY audio signal over a threshold amplitude is automatically sent as 50.
     
  13. Artelis

    Artelis New Member

    Messages:
    8
    well I'm getting closer, and I'm not sure how frustrated you are with me, but here's something cool I made.
     

    Attached Files:

  14. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    sorry dude but there are just loads of artefacts doing it this way, you are not getting a clean gate so this is just adding dirt to the the Oscillator.

    ;)

    sowari
     
  15. sowari

    sowari Moderator Moderator

    Messages:
    27,759
  16. Artelis

    Artelis New Member

    Messages:
    8
    so is it possible to create this condition?

    If E > .01 then send .01
    If E < .01 then send 0
     
  17. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    if you use the Compare/Equal and a bit of maths.

    sowari
     

    Attached Files:

  18. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    fwiw,

    here is a very simple Audio to Gate trigger, see pic:

    sowari
     

    Attached Files:

  19. Artelis

    Artelis New Member

    Messages:
    8
    these are awesome. Thanks for answering all my questions!
     
  20. electri-fire

    electri-fire Forum Member

    Messages:
    32
    Here's another one, from my Micro Synthesiser upload. I assembled it from bits and pieces found here. A major part is from the GSynth2 ensemble. I put it into your somegatestuff ensemble for easy testing (for fun I connected the envelope follower to oscillator amplitude as well).

    May be overly complicated for your goals.
     

    Attached Files:

Thread Status:
Not open for further replies.