ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2007-03-26T05:59:15+02:00 https://brainmodular.fr/forums/app.php/feed/topic/296 2007-03-26T05:59:15+02:00 2007-03-26T05:59:15+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1513#p1513 <![CDATA["Stop event flow"]]>
Stop events flow in a script is one thing. To stop them in the forums... well... I guess you now know how to do. It's very quiet those days!

Statistics: Posted by Guest — 26 Mar 2007, 05:59


]]>
2007-03-12T09:39:49+02:00 2007-03-12T09:39:49+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1449#p1449 <![CDATA["Stop event flow"]]> The real audio engine is very small and simple.

Statistics: Posted by senso — 12 Mar 2007, 08:39


]]>
2007-03-11T19:13:41+02:00 2007-03-11T19:13:41+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1446#p1446 <![CDATA["Stop event flow"]]> Statistics: Posted by bsork — 11 Mar 2007, 18:13


]]>
2007-03-11T10:51:12+02:00 2007-03-11T10:51:12+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1444#p1444 <![CDATA["Stop event flow"]]>
bsork, you are right:
SetDataArrayValue is for inlets/outlets
arr := x is for internal array's (assigned with setArrayLength)


Each inlet/outlet has an associated event (which is an array)
so.
Let say inlet.EVENT. (not really accesible in the script)
Its length can be something like inlet.EVENT.LEN

setValue(inlet,val) <-->
inlet.EVENT.LEN := 1;
inlet.EVENT[0] := val;

setArrayValue(inlet,i,val) <-->
inlet.EVENT := val;

setArrayLength(inlet,L)<-->
inlet.EVENT.LEN := L;

Statistics: Posted by senso — 11 Mar 2007, 09:51


]]>
2007-03-11T05:53:20+02:00 2007-03-11T05:53:20+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1442#p1442 <![CDATA["Stop event flow"]]> Very clever, that lovely Wait One Cycle...
and you too, btw!

Statistics: Posted by Guest — 11 Mar 2007, 04:53


]]>
2007-03-11T01:40:34+02:00 2007-03-11T01:40:34+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1441#p1441 <![CDATA["Stop event flow"]]>
By using the "wait one" before the freeze input, the patch gets to send what it's supposed to send before it freezes by the start of the next cycle.

Statistics: Posted by bsork — 11 Mar 2007, 00:40


]]>
2007-03-11T01:33:34+02:00 2007-03-11T01:33:34+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1440#p1440 <![CDATA["Stop event flow"]]>
I thought it was strange that I could put for instance audio - a typical array type of data - through the separate inputs, and still get the whole lot from the output, not just the first element.

While we're on the subject of arrays (I just can't let you have some peace, can I?): Are there any real difference between setting a value using SetDataArrayValue and assigning the value with arr := x? I've been using the former method to assign values to output parameters, and the latter to assign values to arrays used internally in the scripts.

Statistics: Posted by bsork — 11 Mar 2007, 00:33


]]>
2007-03-10T17:37:15+02:00 2007-03-10T17:37:15+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1437#p1437 <![CDATA["Stop event flow"]]>
Again thanks for your questions and answers!
Very formative.

About Freeze Event Module: could you be very precise when you say that it returns "the last value"? It appears to me that it was sending the last value before the last one, I had trouble with it and gave up to use it!

Thanks.

Statistics: Posted by Guest — 10 Mar 2007, 16:37


]]>
2007-03-10T14:15:16+02:00 2007-03-10T14:15:16+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1436#p1436 <![CDATA["Stop event flow"]]> Time to give a short explanation?

a VALUE is a 32bits float
a MIDI code is a set of four bytes: chan,msg,data1,dat2 (total=32bits)
an EVENT is an array of values or MIDI codes.

For example,
-a fader value EVENT is stored as an array of just one value (length=1)
-an audio flow is stored as an array of sample with a length equal to the Bloc size (see asio setup)
-a MIDI event is an array of midi codes with a total size that corresponds to the polyphony (number of codes at the same time).

If a control receives an empty event (length=0) it does nothing. It's the princip of "stop event flow'.

You can try yourself to put any flow in the array module to how it looks like.
I know that I should talk about this kind of things in the manual (for experts like you).
I need time. do you know where I could buy some?

Statistics: Posted by senso — 10 Mar 2007, 13:15


]]>
2007-03-10T11:18:24+02:00 2007-03-10T11:18:24+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1435#p1435 <![CDATA["Stop event flow"]]>
I thought the SetLength procedure was for arrays only, obviously not...

Statistics: Posted by bsork — 10 Mar 2007, 10:18


]]>
2007-03-09T19:34:55+02:00 2007-03-09T19:34:55+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1432#p1432 <![CDATA["Stop event flow"]]> try something like

setvalue(outlet,x);
setlength(outlet,0);

not really tested but normally works (?)

Statistics: Posted by senso — 09 Mar 2007, 18:34


]]>
2007-03-09T14:10:54+02:00 2007-03-09T14:10:54+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1427#p1427 <![CDATA["Stop event flow"]]>
hope I'm not bugging you with all my questions, but is there a way to simulate "stop event flow" on the outputs from the script?

Statistics: Posted by bsork — 09 Mar 2007, 13:10


]]>
BrainModular BrainModular Users Forum 2007-03-26T05:59:15+02:00 https://brainmodular.fr/forums/app.php/feed/topic/296 2007-03-26T05:59:15+02:00 2007-03-26T05:59:15+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1513#p1513 <![CDATA["Stop event flow"]]>
Stop events flow in a script is one thing. To stop them in the forums... well... I guess you now know how to do. It's very quiet those days!

Statistics: Posted by Guest — 26 Mar 2007, 05:59


]]>
2007-03-12T09:39:49+02:00 2007-03-12T09:39:49+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1449#p1449 <![CDATA["Stop event flow"]]> The real audio engine is very small and simple.

Statistics: Posted by senso — 12 Mar 2007, 08:39


]]>
2007-03-11T19:13:41+02:00 2007-03-11T19:13:41+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1446#p1446 <![CDATA["Stop event flow"]]> Statistics: Posted by bsork — 11 Mar 2007, 18:13


]]>
2007-03-11T10:51:12+02:00 2007-03-11T10:51:12+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1444#p1444 <![CDATA["Stop event flow"]]>
bsork, you are right:
SetDataArrayValue is for inlets/outlets
arr := x is for internal array's (assigned with setArrayLength)


Each inlet/outlet has an associated event (which is an array)
so.
Let say inlet.EVENT. (not really accesible in the script)
Its length can be something like inlet.EVENT.LEN

setValue(inlet,val) <-->
inlet.EVENT.LEN := 1;
inlet.EVENT[0] := val;

setArrayValue(inlet,i,val) <-->
inlet.EVENT := val;

setArrayLength(inlet,L)<-->
inlet.EVENT.LEN := L;

Statistics: Posted by senso — 11 Mar 2007, 09:51


]]>
2007-03-11T05:53:20+02:00 2007-03-11T05:53:20+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1442#p1442 <![CDATA["Stop event flow"]]> Very clever, that lovely Wait One Cycle...
and you too, btw!

Statistics: Posted by Guest — 11 Mar 2007, 04:53


]]>
2007-03-11T01:40:34+02:00 2007-03-11T01:40:34+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1441#p1441 <![CDATA["Stop event flow"]]>
By using the "wait one" before the freeze input, the patch gets to send what it's supposed to send before it freezes by the start of the next cycle.

Statistics: Posted by bsork — 11 Mar 2007, 00:40


]]>
2007-03-11T01:33:34+02:00 2007-03-11T01:33:34+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1440#p1440 <![CDATA["Stop event flow"]]>
I thought it was strange that I could put for instance audio - a typical array type of data - through the separate inputs, and still get the whole lot from the output, not just the first element.

While we're on the subject of arrays (I just can't let you have some peace, can I?): Are there any real difference between setting a value using SetDataArrayValue and assigning the value with arr := x? I've been using the former method to assign values to output parameters, and the latter to assign values to arrays used internally in the scripts.

Statistics: Posted by bsork — 11 Mar 2007, 00:33


]]>
2007-03-10T17:37:15+02:00 2007-03-10T17:37:15+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1437#p1437 <![CDATA["Stop event flow"]]>
Again thanks for your questions and answers!
Very formative.

About Freeze Event Module: could you be very precise when you say that it returns "the last value"? It appears to me that it was sending the last value before the last one, I had trouble with it and gave up to use it!

Thanks.

Statistics: Posted by Guest — 10 Mar 2007, 16:37


]]>
2007-03-10T14:15:16+02:00 2007-03-10T14:15:16+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1436#p1436 <![CDATA["Stop event flow"]]> Time to give a short explanation?

a VALUE is a 32bits float
a MIDI code is a set of four bytes: chan,msg,data1,dat2 (total=32bits)
an EVENT is an array of values or MIDI codes.

For example,
-a fader value EVENT is stored as an array of just one value (length=1)
-an audio flow is stored as an array of sample with a length equal to the Bloc size (see asio setup)
-a MIDI event is an array of midi codes with a total size that corresponds to the polyphony (number of codes at the same time).

If a control receives an empty event (length=0) it does nothing. It's the princip of "stop event flow'.

You can try yourself to put any flow in the array module to how it looks like.
I know that I should talk about this kind of things in the manual (for experts like you).
I need time. do you know where I could buy some?

Statistics: Posted by senso — 10 Mar 2007, 13:15


]]>
2007-03-10T11:18:24+02:00 2007-03-10T11:18:24+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1435#p1435 <![CDATA["Stop event flow"]]>
I thought the SetLength procedure was for arrays only, obviously not...

Statistics: Posted by bsork — 10 Mar 2007, 10:18


]]>
2007-03-09T19:34:55+02:00 2007-03-09T19:34:55+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1432#p1432 <![CDATA["Stop event flow"]]> try something like

setvalue(outlet,x);
setlength(outlet,0);

not really tested but normally works (?)

Statistics: Posted by senso — 09 Mar 2007, 18:34


]]>
2007-03-09T14:10:54+02:00 2007-03-09T14:10:54+02:00 https://brainmodular.fr/forums/viewtopic.php?t=296&p=1427#p1427 <![CDATA["Stop event flow"]]>
hope I'm not bugging you with all my questions, but is there a way to simulate "stop event flow" on the outputs from the script?

Statistics: Posted by bsork — 09 Mar 2007, 13:10


]]>