Trigger object in Gen~
Hi guys,
Is there something like a trigger object in Gen~?
If not, what is a good alternative?
Thanks.
Jelle
There isn’t because things happen like they do in MSP: two patch cords from the same object arrive at the same time. Codebox in gen~ gives you more control over the ordering of operations.
Hello Peter,
as I saw in one of the posts that you are a gen fanatic (me too :-)) here an additional questions concerning triggering / data handing.
I have been programming a pure gen audio looper (>800 Lines of codex code) which works fine now. As I want to use the same syntonization engine now also to record and loop midi signals I have the following architectural questions:
ARRIVAL OF MAX DATA IN GEN (EVENT ?)
I want to send the raw midi message (3 bytes, e.g. 112 87 12) from the MAX world to the GEN world to record it into a buffer. As I want to send the 3 bytes independently (either by converting it to a signal or sending it via param) to the gen world I want to know how I can find out when all 3 bytes have been delivered to the gen world. As gen is sample accurate I need to know when I can write the 3 bytes into the buffer. I don´t want to rely on waiting 10 samples in gen until max scheduler send the data . I would need a TRIGGER that tells me: ok now all data has been delivery from max to gen inputs / params now you can write it to buffer.
SEND OUT GEN DATA TO MAX (EVENT?)
After midi events have been written to a buffer in gen, there will be the time to "Play" the midi data. So here the question is a bit different:
I would then send out also 3 signals which hold the midi data. I will send out a one sample long signal with the according midi value. I will not be able to capture the one sample long signal with capture and number as it is too slow. I would need the edge object (my undestanding) to filter out the information. How can I also be sure that all 3 midi values have been send from the gen to the max world and that I can then try to get all those values out of the signal stream???
BR
Jo