]]>2010-08-13T00:15:16+02:002010-08-13T00:15:16+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15105#p15105put them in a single place with ressources and discussions could be nice...
@ floego sorry man i went very late back from work, ive uploaded my test patch, with a second version that should more match your needz for matrix col, unfortunately couldn't test, but logically should work, let me know...
]]>2010-08-12T22:17:59+02:002010-08-12T22:17:59+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15098#p15098Seems to be more scripting than patching these days... (I am still probably never going to understand scripting regardless, but maybe slowly some of it will start to make sense for me!)
Statistics: Posted by gurulogic — 12 Aug 2010, 22:17
]]>2010-08-12T12:41:15+02:002010-08-12T12:41:15+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15091#p15091thank you
]]>2010-08-12T12:25:18+02:002010-08-12T12:25:18+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15089#p15089i lltry to make a quick test to replace to what ya need.
@ bsork. yup i need to test that!!!
i have just some pb seeing how to deal 'old/new' values in callbacks, when/how should i store the 'old' values, as i guess it's not as the same time of input change, maybe one bloc later in process? but i will have a look at mono midi, i knew ive seen some unpackin script somewhere. thanks!
]]>2010-08-12T08:23:42+02:002010-08-12T08:23:42+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15085#p15085 However, here's an idea of how to accomplish the same within a script:
Create an internal array with the old input values, make a loop to check which values has changed every time time there's a callback on the input array. Put the changed indexes and values into a queue (similar to eg the Make Monophonic MIDI script), update the internal array, and finally output one or several index/value pairs per block (as long as there's something in the queue, of course).
]]>2010-08-12T04:13:19+02:002010-08-12T04:13:19+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15084#p15084 At the same time, I want to do the same for velocity and eventually for many other parameters like pan, volume, etc. Considering the note number ranges between 0 and 127, I believe it is challenging to keep the sync on track.
]]>2010-08-12T03:09:44+02:002010-08-12T03:09:44+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15082#p15082but yes, get their values and original indexes. matrix is not multitouch yet , but steps are,so it's finding a solution when simultaneous steps are edited, ie dual touch to send only the values that changed, with a single midi/osc module. ..
edit: i finally found the solution by patch, maybe got to figure how to convert to script now..
the solution i found is for case B) 'unpack' bloc after bloc, and if i make a little script i should have A)variable size arrays, as well.. this need a sub block operation so can't do by patch.
basically used a delta on the array in, if delta <>0 the array element are 1, i count sum array to get nb of simultaneous events, i multiply by another 'indexed' array that goes from 1 to 16 to get the indexes,data that are 0 didn't changed, otherwise it's index value. so then sort array and extract the small array with only values that changed indexes,a counter scan the original array for those indexes to get values and send them one after the other. a bit tricky but seems working nice.
hope it's an optimized way when dealing with midi/osc to avoid overloads or too much data sending by sending each time whole array. here it toggles one data after the other in case of dual touch or more, also i will get an extra latency/ reduced sampling rate if too much simultaneous events, cause if 5 touches each data is scaned each 5 blocs, but that's 15ms for 5 touch at 128samples, and most of the time it will be single or dual touch i guess so it must be ok....
if some are interested i can clean the patch and post, let me know.
]]>2010-08-12T02:03:46+02:002010-08-12T02:03:46+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15081#p15081Statistics: Posted by Floego — 12 Aug 2010, 02:03
]]>
2010-08-12T01:10:07+02:002010-08-12T01:10:07+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15080#p15080 how can we get delta of an input, or of an array elmt?, ...and probably more complex, how could i 'unpack' values of an array to be processed bloc after bloc.
ie instead of using 8 osc modules or sending a bloc each time the value(s) of an array has changed for polyphonic, i dlike to use a single module, and a script would decode changes in the array, index positions and values of datas that have changed, then if some are simultaneous it would eiteir be able to generate an adapted sized array out, or "unpack" the values to be processed one after the other, bloc after bloc.
any advice/trick/approach MasterZ?
to make it simpler exemple: ie feed an array of size 16, i move fader 1,3 and 5 simultaneously, and the script: _detects only values that changed in array, tracks index and value _A) generate a 3size array with indexs, and a 3size Values arrays or B) output bloc after bloc index1value1, id3val3, id5val5.
]]>2010-08-13T00:15:16+02:002010-08-13T00:15:16+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15105#p15105put them in a single place with ressources and discussions could be nice...
@ floego sorry man i went very late back from work, ive uploaded my test patch, with a second version that should more match your needz for matrix col, unfortunately couldn't test, but logically should work, let me know...
]]>2010-08-12T22:17:59+02:002010-08-12T22:17:59+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15098#p15098Seems to be more scripting than patching these days... (I am still probably never going to understand scripting regardless, but maybe slowly some of it will start to make sense for me!)
Statistics: Posted by gurulogic — 12 Aug 2010, 22:17
]]>2010-08-12T12:41:15+02:002010-08-12T12:41:15+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15091#p15091thank you
]]>2010-08-12T12:25:18+02:002010-08-12T12:25:18+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15089#p15089i lltry to make a quick test to replace to what ya need.
@ bsork. yup i need to test that!!!
i have just some pb seeing how to deal 'old/new' values in callbacks, when/how should i store the 'old' values, as i guess it's not as the same time of input change, maybe one bloc later in process? but i will have a look at mono midi, i knew ive seen some unpackin script somewhere. thanks!
]]>2010-08-12T08:23:42+02:002010-08-12T08:23:42+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15085#p15085 However, here's an idea of how to accomplish the same within a script:
Create an internal array with the old input values, make a loop to check which values has changed every time time there's a callback on the input array. Put the changed indexes and values into a queue (similar to eg the Make Monophonic MIDI script), update the internal array, and finally output one or several index/value pairs per block (as long as there's something in the queue, of course).
]]>2010-08-12T04:13:19+02:002010-08-12T04:13:19+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15084#p15084 At the same time, I want to do the same for velocity and eventually for many other parameters like pan, volume, etc. Considering the note number ranges between 0 and 127, I believe it is challenging to keep the sync on track.
]]>2010-08-12T03:09:44+02:002010-08-12T03:09:44+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15082#p15082but yes, get their values and original indexes. matrix is not multitouch yet , but steps are,so it's finding a solution when simultaneous steps are edited, ie dual touch to send only the values that changed, with a single midi/osc module. ..
edit: i finally found the solution by patch, maybe got to figure how to convert to script now..
the solution i found is for case B) 'unpack' bloc after bloc, and if i make a little script i should have A)variable size arrays, as well.. this need a sub block operation so can't do by patch.
basically used a delta on the array in, if delta <>0 the array element are 1, i count sum array to get nb of simultaneous events, i multiply by another 'indexed' array that goes from 1 to 16 to get the indexes,data that are 0 didn't changed, otherwise it's index value. so then sort array and extract the small array with only values that changed indexes,a counter scan the original array for those indexes to get values and send them one after the other. a bit tricky but seems working nice.
hope it's an optimized way when dealing with midi/osc to avoid overloads or too much data sending by sending each time whole array. here it toggles one data after the other in case of dual touch or more, also i will get an extra latency/ reduced sampling rate if too much simultaneous events, cause if 5 touches each data is scaned each 5 blocs, but that's 15ms for 5 touch at 128samples, and most of the time it will be single or dual touch i guess so it must be ok....
if some are interested i can clean the patch and post, let me know.
]]>2010-08-12T02:03:46+02:002010-08-12T02:03:46+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15081#p15081Statistics: Posted by Floego — 12 Aug 2010, 02:03
]]>2010-08-12T01:10:07+02:002010-08-12T01:10:07+02:00https://brainmodular.org/forums/viewtopic.php?t=2345&p=15080#p15080 how can we get delta of an input, or of an array elmt?, ...and probably more complex, how could i 'unpack' values of an array to be processed bloc after bloc.
ie instead of using 8 osc modules or sending a bloc each time the value(s) of an array has changed for polyphonic, i dlike to use a single module, and a script would decode changes in the array, index positions and values of datas that have changed, then if some are simultaneous it would eiteir be able to generate an adapted sized array out, or "unpack" the values to be processed one after the other, bloc after bloc.
any advice/trick/approach MasterZ?
to make it simpler exemple: ie feed an array of size 16, i move fader 1,3 and 5 simultaneously, and the script: _detects only values that changed in array, tracks index and value _A) generate a 3size array with indexs, and a 3size Values arrays or B) output bloc after bloc index1value1, id3val3, id5val5.