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

help on midi filter!

Discussion in 'Building With Reaktor' started by zarby, Jul 3, 2008.

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

    zarby NI Product Owner

    Messages:
    40
    hello,

    i try to do a midi note filter :

    if i have two times the same note, i don't want the note off of the second and the note on of the first one so for that i must memorize thr first(i use snapvalue) and, compare them, but reaktor give me a loop warning, how can i do that?

    second problem, the note off arrive before comparison how can can i delay it?

    i hope you understand
    thank you
    laurent
     
  2. zarby

    zarby NI Product Owner

    Messages:
    40
    Allo!
     
  3. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    you can enable event loops by checking it in the macro's properties.

    see pic

    sowari
     

    Attached Files:

  4. zarby

    zarby NI Product Owner

    Messages:
    40
    thank you!

    i have another problem my filter is mono so i have one voice, when i make two quickly notes, i loose the note off of the first note!

    what's happen?
     
  5. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    this bit i don't understand :S

    maybe you need to either upload a picture of the structure or even the ensemble.

    sowari
     
  6. zarby

    zarby NI Product Owner

    Messages:
    40
    so this is my ensemble
    what i want to do, is when it receive a new note, it compare it to the previous note if it's the same i filter the note off of the previous one to make legato...

    if i connect the gate directly to the out "G" when i play two note quickly it loose the note off of the first note

    i'm obliged (for activating the macro) to connect the out "G" to the audio out, do you know another way to activate this macro?

    thank you for your help
    laurent
     

    Attached Files:

  7. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    this sort of thing is not really one of my strengths, so it would be great is someone else could help.

    what i will say is that Carbon2 has a legato option for single note lines.

    and so does 3x, which you will find in the User Library. it is number 1 in the top 100.

    but maybe someone else can help.

    btw, make the MIDI out module "Always Active" if you want it to be ON

    see pic

    sowari
     

    Attached Files:

  8. zarby

    zarby NI Product Owner

    Messages:
    40
    ok thank you

    does anybody else can help me, because i'm going to be crazy!:angry: :( :confused: :D
     
  9. m3m

    m3m NI Product Owner

    Messages:
    536
    The Zip file gives me an "invalid archive" error. I'd be interested to see how you're approaching this, because it seems quite tricky to me: in a mono structure, by the time the second note arrives, it feels like the note-off for the previous note must have already gone through. So you'd need to hold note-offs until the next note? Anyway, if you (or Phil?) can post a new Zip file, I'll have a look - for what that's worth!
     
  10. sowari

    sowari Moderator Moderator

    Messages:
    27,759
    invalid archive

    i also had a problem in that it did not automatically unzip (which normally happens with all zipped downloads). i managed to unzip it with stuffit expander 11.

    see if this works

    sowari
     

    Attached Files:

  11. m3m

    m3m NI Product Owner

    Messages:
    536
    Who's the bad man? ;)

    Cheers Phil
     
  12. zarby

    zarby NI Product Owner

    Messages:
    40
    excuse me but i forget to say that i use winrar to compress it but the forum accept only .zip so make it .rar and it's works normally!
     
  13. m3m

    m3m NI Product Owner

    Messages:
    536
    Sort of Solution?

    Hello

    I still think there's a slight philosophical challenge with what you want to do: your structure might need to wait for two hours for the next note, while the performer goes for lunch and a smoke.

    So I've adapted your structure to do roughly what you want - I hope - but it works in a different way, and you need to remember that it always leaves the gate open for the most recent note (because it's waiting for the next note, to compare it).

    Attached are a couple of screenshots, and here are a few quick notes:

    SCREENSHOT 1
    This is the part of your structure that generates P values. I added an Order and a Value module so that only one P value is generated per note (previously, the structure was generating 3 P values per note, I guess because of the maths that takes place along the several branches of the circuit).

    Then, I put that part of the structure away in its own macro, just to clean up the workspace a little.

    SCREENSHOT 2
    I changed the rest of the structure quite a bit.

    Midi In / Gate modules send values after MIDI In / Note Pitch modules, so I added an Order module which ensures that the Gate (on) value reaches the right-hand side of the structure before the incoming Pitch value triggers its processing. So there's a quick dance-of-death here:

    1 Pitch macro generates its value.
    2 Send Gate value (IE the note velocity) to end of structure, ready to be sampled by the Value module at the bottom-right of the structure
    3 The Gate On event samples the Pitch value (left-hand Separator/Value structure) and sends it up to the 2nd Order module.

    Then, the Pitch value's processed: The 2nd Order module and the Compare/Equal module send a quick "1" when a DIFFERENT Pitch comes in. It's only momentary, but the 2nd Separator module (at the top) filters out the "0" that immediately follows the "1".

    That "1" event is used to send a Gate value of "0" (to gate OFF the previous note), then a Gate value of... whatever the incoming Gate value is. These are merged and sent on out of the macro.

    I think the hardest thing about this structure is the philosophy of it: it can't know that it can gate off a note, before the next note arrives. My solution just accepts that, and rolls with it; hope it works! :)
     

    Attached Files:

    Last edited: Jul 4, 2008
  14. zarby

    zarby NI Product Owner

    Messages:
    40
    as you said it is not the best version of the macro but i try a lot of things.....
    thank you very much for your response, i am going to test that and try to understand!
    ps : how do you do the thumbnails?

    thanks again
    laurent
     
  15. m3m

    m3m NI Product Owner

    Messages:
    536
    No problem - I hope it does the trick for you. I made the screenshots with a program called Snagit, saved them as GIFs and uploaded thes as attachments to my reply. Don't know how to do it on a Mac, I'm on PC here.

    Have a good weekend

    Dave
     
  16. zarby

    zarby NI Product Owner

    Messages:
    40
    hello,

    i test your solution it's working fine but the problem is as you say the gate is allways open.
    do you think it's possible to close the gate if there is no new note played during a certain time that we can give with a fader ?

    i try to do it with timer but it's doesn't work:(

    thank you laurent
     
  17. m3m

    m3m NI Product Owner

    Messages:
    536
    Here's one way to do it with a timer - I should be working though, so I'll leave it to you to develop it on from here.

    Have fun

    Dave
     

    Attached Files:

  18. zarby

    zarby NI Product Owner

    Messages:
    40
    i don't know if reaktor is complicate or if i'm stupide!:lol:

    here the last version of the ensemble it gives me the note off of the previous note (it 's ok), the note on of the new note (perfect) but after i have note off note on for this note again and after the timer another note off (ok) and note on (that i understand but don't know how to change that)...

    if you have some time can you help me?

    thank you
    laurent
    ps don't forget to make it .rar
    View attachment autotune2.zip
     
  19. m3m

    m3m NI Product Owner

    Messages:
    536
    Reaktor can be complicated, depending on what you want to do with it ;) I'm a bit busy myself for now I'm afraid... I don't know if anyone else has any ideas, but I'd recommend taking another look at the ensemble, then maybe having a break, and seeing if anything comes to mind.

    Good luck with it!

    Dave
     
  20. zarby

    zarby NI Product Owner

    Messages:
    40
    ok, it's working!
     
Thread Status:
Not open for further replies.