ArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2016-03-07T20:05:38+02:00https://brainmodular.org/forums/app.php/feed/topic/53402016-03-07T20:05:38+02:002016-03-07T20:05:38+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34915#p34915 both patches are super-useful to me, thanks a lot!
]]>2016-03-07T17:15:30+02:002016-03-07T17:15:30+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34912#p34912Statistics: Posted by fractalist — 07 Mar 2016, 16:15
]]>
2016-03-07T16:08:43+02:002016-03-07T16:08:43+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34911#p34911 thanx for your question !! I just realized I had the same problem in a patch which requires exact precision (scientific experiment and modelling).
Statistics: Posted by oli_lab — 03 Mar 2016, 21:55
]]>2016-03-03T15:18:27+02:002016-03-03T15:18:27+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34894#p34894 yes, delta can be helpful in many situation !!
Statistics: Posted by fractalist — 03 Mar 2016, 14:18
]]>2016-03-03T09:23:56+02:002016-03-03T09:23:56+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34891#p34891One 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.
]]>2016-03-02T17:09:19+02:002016-03-02T17:09:19+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34884#p34884I 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:002016-03-01T23:56:55+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34877#p34877 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". ;/
]]>2016-03-01T21:56:24+02:002016-03-01T21:56:24+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34876#p34876put 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:002016-03-01T20:27:58+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34875#p34875 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.
]]>BrainModularBrainModular Users Forum2016-03-07T20:05:38+02:00https://brainmodular.org/forums/app.php/feed/topic/53402016-03-07T20:05:38+02:002016-03-07T20:05:38+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34915#p34915 both patches are super-useful to me, thanks a lot!
]]>2016-03-07T17:15:30+02:002016-03-07T17:15:30+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34912#p34912Statistics: Posted by fractalist — 07 Mar 2016, 16:15
]]>2016-03-07T16:08:43+02:002016-03-07T16:08:43+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34911#p34911 thanx for your question !! I just realized I had the same problem in a patch which requires exact precision (scientific experiment and modelling).
Statistics: Posted by oli_lab — 03 Mar 2016, 21:55
]]>2016-03-03T15:18:27+02:002016-03-03T15:18:27+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34894#p34894 yes, delta can be helpful in many situation !!
Statistics: Posted by fractalist — 03 Mar 2016, 14:18
]]>2016-03-03T09:23:56+02:002016-03-03T09:23:56+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34891#p34891One 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.
]]>2016-03-02T17:09:19+02:002016-03-02T17:09:19+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34884#p34884I 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:002016-03-01T23:56:55+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34877#p34877 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". ;/
]]>2016-03-01T21:56:24+02:002016-03-01T21:56:24+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34876#p34876put 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:002016-03-01T20:27:58+02:00https://brainmodular.org/forums/viewtopic.php?t=5340&p=34875#p34875 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.