ArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2016-03-07T20:05:38+02:00 https://brainmodular.org/forums/app.php/feed/topic/5340 2016-03-07T20:05:38+02:00 2016-03-07T20:05:38+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34915#p34915 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
both patches are super-useful to me, thanks a lot!


Thanks again.,
tL.

Statistics: Posted by lytz1 — 07 Mar 2016, 19:05


]]>
2016-03-07T17:15:30+02:00 2016-03-07T17:15:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34912#p34912 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> Statistics: Posted by fractalist — 07 Mar 2016, 16:15


]]>
2016-03-07T16:08:43+02:00 2016-03-07T16:08:43+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34911#p34911 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
thanx for your question !!
I just realized I had the same problem in a patch which requires exact precision (scientific experiment and modelling).

If it helps anybody in the future or now, I just made this "corrective" patch which works fine :
http://www.sensomusic.com/forums/upload ... ration.pat

Statistics: Posted by fractalist — 07 Mar 2016, 15:08


]]>
2016-03-03T22:55:03+02:00 2016-03-03T22:55:03+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34896#p34896 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
File uploaded: http://www.sensomusic.com/forums/upload ... %20bag.pat

Statistics: Posted by oli_lab — 03 Mar 2016, 21:55


]]>
2016-03-03T15:18:27+02:00 2016-03-03T15:18:27+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34894#p34894 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
yes, delta can be helpful in many situation :-) !!

Statistics: Posted by fractalist — 03 Mar 2016, 14:18


]]>
2016-03-03T09:23:56+02:00 2016-03-03T09:23:56+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34891#p34891 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> One RLAW with the first half of values assigned to it and the other one with the second half. They get triggered in cycle, so I never get the same integer in a row. That was the only solution I could come up with, but it works fine.

Object delta sounds interesting as well, will take a look into that. Somehow overlooked that module completely. :)

Thanks,
tL.

Statistics: Posted by lytz1 — 03 Mar 2016, 08:23


]]>
2016-03-02T17:09:19+02:00 2016-03-02T17:09:19+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34884#p34884 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> I don't have the solution in mind right now but there is always a trick to find with this kind of problem (e.g., forcing a different output than the previous one).
for example, generating another values when the object 'has changed' doesn't output a 1 when a random number should have been generated, something like that.

when it will be sorted out, I guess there is a simpler solution than my proposition : using the object delta, which computes the difference between current and previous value. If it delta=0, then generate another random value..
no need for arrays in this case..

Statistics: Posted by fractalist — 02 Mar 2016, 16:09


]]>
2016-03-01T23:56:55+02:00 2016-03-01T23:56:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34877#p34877 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
When a generator (no matter which one) outputs, well, lets say three 1's in a row, the data stream interprets this as a single "1", not as three different 1's so to speak.
So basically when I want a different integer value generated on every beat and the generator outputs two 1's in a row, I have a single 1 in the
dataflow which spans two beats. So it seems there is no way that any module afterwards can know that. So three 1's in a row will get interpreted as a single "1". ;/

Best,
tL.

Statistics: Posted by lytz1 — 01 Mar 2016, 22:56


]]>
2016-03-01T21:56:24+02:00 2016-03-01T21:56:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34876#p34876 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> put the successive values in the "queue array" object of size 2
send it to an array
compare value 0 and value 1 with "=" and if they match :
don't pass the last output (connect a "not" to the "=" and make it regulate a "pass flow" object)
and generate another value (the "=" could be linked to the generate inlet of the random generator, so that it generates another values when the last one equals the previous one)

Statistics: Posted by fractalist — 01 Mar 2016, 20:56


]]>
2016-03-01T20:27:58+02:00 2016-03-01T20:27:58+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34875#p34875 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
I try to figure out how to use a random generator which is set to generate integer values between 1 and 8,
but it shall not generate two same values in a row, it shall always output a different one so that there is no repetition.

I inspected the "Midi Expand Voices" Fast-Script which basically has this functionality for midi, (see dropdown menu: rnd no repeat)
but I can't figure out how to translate this to the general data.

Also a non-scripting solution (if this is possible at all without scripting?) would suit me better.

Any ideas on a solution for this problem?

Thanks,

tL.

Statistics: Posted by lytz1 — 01 Mar 2016, 19:27


]]>
BrainModular BrainModular Users Forum 2016-03-07T20:05:38+02:00 https://brainmodular.org/forums/app.php/feed/topic/5340 2016-03-07T20:05:38+02:00 2016-03-07T20:05:38+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34915#p34915 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
both patches are super-useful to me, thanks a lot!


Thanks again.,
tL.

Statistics: Posted by lytz1 — 07 Mar 2016, 19:05


]]>
2016-03-07T17:15:30+02:00 2016-03-07T17:15:30+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34912#p34912 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> Statistics: Posted by fractalist — 07 Mar 2016, 16:15


]]>
2016-03-07T16:08:43+02:00 2016-03-07T16:08:43+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34911#p34911 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
thanx for your question !!
I just realized I had the same problem in a patch which requires exact precision (scientific experiment and modelling).

If it helps anybody in the future or now, I just made this "corrective" patch which works fine :
http://www.sensomusic.com/forums/upload ... ration.pat

Statistics: Posted by fractalist — 07 Mar 2016, 15:08


]]>
2016-03-03T22:55:03+02:00 2016-03-03T22:55:03+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34896#p34896 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
File uploaded: http://www.sensomusic.com/forums/upload ... %20bag.pat

Statistics: Posted by oli_lab — 03 Mar 2016, 21:55


]]>
2016-03-03T15:18:27+02:00 2016-03-03T15:18:27+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34894#p34894 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
yes, delta can be helpful in many situation :-) !!

Statistics: Posted by fractalist — 03 Mar 2016, 14:18


]]>
2016-03-03T09:23:56+02:00 2016-03-03T09:23:56+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34891#p34891 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> One RLAW with the first half of values assigned to it and the other one with the second half. They get triggered in cycle, so I never get the same integer in a row. That was the only solution I could come up with, but it works fine.

Object delta sounds interesting as well, will take a look into that. Somehow overlooked that module completely. :)

Thanks,
tL.

Statistics: Posted by lytz1 — 03 Mar 2016, 08:23


]]>
2016-03-02T17:09:19+02:00 2016-03-02T17:09:19+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34884#p34884 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> I don't have the solution in mind right now but there is always a trick to find with this kind of problem (e.g., forcing a different output than the previous one).
for example, generating another values when the object 'has changed' doesn't output a 1 when a random number should have been generated, something like that.

when it will be sorted out, I guess there is a simpler solution than my proposition : using the object delta, which computes the difference between current and previous value. If it delta=0, then generate another random value..
no need for arrays in this case..

Statistics: Posted by fractalist — 02 Mar 2016, 16:09


]]>
2016-03-01T23:56:55+02:00 2016-03-01T23:56:55+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34877#p34877 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
When a generator (no matter which one) outputs, well, lets say three 1's in a row, the data stream interprets this as a single "1", not as three different 1's so to speak.
So basically when I want a different integer value generated on every beat and the generator outputs two 1's in a row, I have a single 1 in the
dataflow which spans two beats. So it seems there is no way that any module afterwards can know that. So three 1's in a row will get interpreted as a single "1". ;/

Best,
tL.

Statistics: Posted by lytz1 — 01 Mar 2016, 22:56


]]>
2016-03-01T21:56:24+02:00 2016-03-01T21:56:24+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34876#p34876 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]> put the successive values in the "queue array" object of size 2
send it to an array
compare value 0 and value 1 with "=" and if they match :
don't pass the last output (connect a "not" to the "=" and make it regulate a "pass flow" object)
and generate another value (the "=" could be linked to the generate inlet of the random generator, so that it generates another values when the last one equals the previous one)

Statistics: Posted by fractalist — 01 Mar 2016, 20:56


]]>
2016-03-01T20:27:58+02:00 2016-03-01T20:27:58+02:00 https://brainmodular.org/forums/viewtopic.php?t=5340&p=34875#p34875 <![CDATA[Random Gen. Integer Value, but never two values the same in a row?]]>
I try to figure out how to use a random generator which is set to generate integer values between 1 and 8,
but it shall not generate two same values in a row, it shall always output a different one so that there is no repetition.

I inspected the "Midi Expand Voices" Fast-Script which basically has this functionality for midi, (see dropdown menu: rnd no repeat)
but I can't figure out how to translate this to the general data.

Also a non-scripting solution (if this is possible at all without scripting?) would suit me better.

Any ideas on a solution for this problem?

Thanks,

tL.

Statistics: Posted by lytz1 — 01 Mar 2016, 19:27


]]>