ArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2011-07-23T12:57:16+02:00 https://brainmodular.com/forums/app.php/feed/topic/2980 2011-07-23T12:57:16+02:00 2011-07-23T12:57:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20064#p20064 <![CDATA[how to reorder an array?]]>
To extend length, it can be done via the command
Setlength(arrayname,1023);
But normally the output size is defined by input array length, and it should work if you extend it externally no? Or maybe some variable in the script as been maxed to 511, track this nb and extend as you wish.

For the non integer, its probably to replace an integer declared variable as 'single' instead of integer, and check and remove any 'trunc' or 'round' being used.

Statistics: Posted by 23fx23 — 23 Jul 2011, 12:57


]]>
2011-07-23T04:49:02+02:00 2011-07-23T04:49:02+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20061#p20061 <![CDATA[how to reorder an array?]]>
For now I´m just trying to modify parts of the code to make use of an array larger than 511 values and the use of non-integer values.

Statistics: Posted by Floego — 23 Jul 2011, 04:49


]]>
2011-07-22T05:04:51+02:00 2011-07-22T05:04:51+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20049#p20049 <![CDATA[how to reorder an array?]]> Right now I`m reading that topic and looks really useful for me!

Btw the above midi event list panel should be a nice example to the use of sorting a masters array :)

It will take many days but probably at the end of next week I will have a basic patch ready. The more delicate part is related to the fact that this patch directly writes to the pianoroll array, so if done wrongly , then the pianoroll module will behave like crazy until cleared. And the resulting saved midi file will be unusable without warning.

Statistics: Posted by Floego — 22 Jul 2011, 05:04


]]>
2011-07-21T22:16:42+02:00 2011-07-21T22:16:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20038#p20038 <![CDATA[how to reorder an array?]]>
http://www.sensomusic.com/forums/viewtopic.php?id=2736

Statistics: Posted by nay-seven — 21 Jul 2011, 22:16


]]>
2011-07-21T22:06:39+02:00 2011-07-21T22:06:39+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20035#p20035 <![CDATA[how to reorder an array?]]> Statistics: Posted by 23fx23 — 21 Jul 2011, 22:06


]]>
2011-07-21T14:15:25+02:00 2011-07-21T14:15:25+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20030#p20030 <![CDATA[how to reorder an array?]]>
I'm planning to create an event list, something like this:
Image

that list is editable, I can change any displayed value.

but, once I change, for example, the position of a note, it gets out of place:
Image

how can I automatically reorder the array and put the 5 set values in place? :)

Statistics: Posted by Floego — 21 Jul 2011, 14:15


]]>
BrainModular BrainModular Users Forum 2011-07-23T12:57:16+02:00 https://brainmodular.com/forums/app.php/feed/topic/2980 2011-07-23T12:57:16+02:00 2011-07-23T12:57:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20064#p20064 <![CDATA[how to reorder an array?]]>
To extend length, it can be done via the command
Setlength(arrayname,1023);
But normally the output size is defined by input array length, and it should work if you extend it externally no? Or maybe some variable in the script as been maxed to 511, track this nb and extend as you wish.

For the non integer, its probably to replace an integer declared variable as 'single' instead of integer, and check and remove any 'trunc' or 'round' being used.

Statistics: Posted by 23fx23 — 23 Jul 2011, 12:57


]]>
2011-07-23T04:49:02+02:00 2011-07-23T04:49:02+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20061#p20061 <![CDATA[how to reorder an array?]]>
For now I´m just trying to modify parts of the code to make use of an array larger than 511 values and the use of non-integer values.

Statistics: Posted by Floego — 23 Jul 2011, 04:49


]]>
2011-07-22T05:04:51+02:00 2011-07-22T05:04:51+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20049#p20049 <![CDATA[how to reorder an array?]]> Right now I`m reading that topic and looks really useful for me!

Btw the above midi event list panel should be a nice example to the use of sorting a masters array :)

It will take many days but probably at the end of next week I will have a basic patch ready. The more delicate part is related to the fact that this patch directly writes to the pianoroll array, so if done wrongly , then the pianoroll module will behave like crazy until cleared. And the resulting saved midi file will be unusable without warning.

Statistics: Posted by Floego — 22 Jul 2011, 05:04


]]>
2011-07-21T22:16:42+02:00 2011-07-21T22:16:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20038#p20038 <![CDATA[how to reorder an array?]]>
http://www.sensomusic.com/forums/viewtopic.php?id=2736

Statistics: Posted by nay-seven — 21 Jul 2011, 22:16


]]>
2011-07-21T22:06:39+02:00 2011-07-21T22:06:39+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20035#p20035 <![CDATA[how to reorder an array?]]> Statistics: Posted by 23fx23 — 21 Jul 2011, 22:06


]]>
2011-07-21T14:15:25+02:00 2011-07-21T14:15:25+02:00 https://brainmodular.com/forums/viewtopic.php?t=2980&p=20030#p20030 <![CDATA[how to reorder an array?]]>
I'm planning to create an event list, something like this:
Image

that list is editable, I can change any displayed value.

but, once I change, for example, the position of a note, it gets out of place:
Image

how can I automatically reorder the array and put the 5 set values in place? :)

Statistics: Posted by Floego — 21 Jul 2011, 14:15


]]>