]]>
2016-09-09T22:26:16+02:002016-09-09T22:26:16+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35819#p35819,' for exemple when you type: ""my file 1" ," my file 2"" ect, modules such as listbox or combobox know how they have to split 'elements' of a single big sentence to a list using found commas as separator markers, to get as a displayed result:
my file 1 my file 2 ...
i don't know this script but i suppose it converts a commatext made of strings representing numbers to array of numbers, so it internally has a string to integer command that won't like non numeric characters but have to check.
edit: so found and checked the script and it's what it does, pick the comma text list, split to element, and tries to convert to value, so in you case it gets for exemple an item like : 89 drumloop. it's not able to convert this whole thing string to a number.
if it had such commatext as input for exemple: "89,92,120,150" then it would work and output a numeric then array in the form of 89 92 120 150
]]>2016-09-09T22:11:36+02:002016-09-09T22:11:36+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35818#p35818Statistics: Posted by ringmodulator — 09 Sep 2016, 22:11
]]>2016-09-09T18:11:33+02:002016-09-09T18:11:33+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35817#p35817
Consider text in usine is Array of char = array of numbers that represents ascii char value. the ascci nuber for space is 32, so we look if it's in there (via A=32 that will return 1 if there 0 otherwise for each element of the array) and for the position of it (via max array position of this result, the array being filled with 0 and 1 only where space appears, the max return pos will be first space pos in the array) then we extract the sub part of global array from start till the position of first space we got from previously, all we have to do finally is convert this string to integer and we get numerical value of tempo.
]]>2016-09-09T12:07:49+02:002016-09-09T12:07:49+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35807#p35807My patch is close to the end and i'd like to finish it. The last step is to make hh able to read the tempo indicated at the beginning of the selected file..but of course, and that's the probleme, all my file's name are a mix of number and letters, but always in the same order (tempo- then any name). The comma text to array could be a solution . But i can't figure out how to use it, and any other solution is welcome.
Statistics: Posted by ringmodulator — 09 Sep 2016, 12:07
]]>2016-09-08T20:32:54+02:002016-09-08T20:32:54+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35797#p35797for the first patch : you have to change the path of the file lister according to your file structure and make sure all your files have 3 digit at the begining of their name.
for the second one, I must admit it is quite farfetched !
Statistics: Posted by oli_lab — 08 Sep 2016, 20:32
]]>2016-09-08T20:24:27+02:002016-09-08T20:24:27+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35796#p35796I'm just a little patch builder, and can't even imagine how you guys could talk to the machine with words..i've tried, but ..too complicated. So, that's why a part of your answer was chinese for me.
Statistics: Posted by ringmodulator — 08 Sep 2016, 20:24
]]>2016-09-08T20:18:02+02:002016-09-08T20:18:02+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35795#p35795I've tried a lot of things, ..and it seems that nothing works. I can't open your first patch, and the second one is freezed. I've tried to use strings to integer, but hh says it's not a valid float number.. Comma text to array gives nothing..or rather an ununderstanding array, which besides does'nt change when i'm changing from file .get comma text element index,.nothing. I'm wondering if i could have a problem with my version (1.02.011d) to read some scripts manipulating text. Is that kind of issue known ?
Statistics: Posted by ringmodulator — 08 Sep 2016, 20:18
I found a workaround, just always use 3 digits in the begining of the filename ie : 035 very slow song.wav
sometime ago I made some attempts at using metadata files, here's the idea : say you have a wave file called groovy.wav you load it into a special patch that will play the file, get its tempo and write, in the same directory, another file, actually a textfile with the value of the tempo writen into it. this file will be automatically named groovy.tpo (I actually made something like this for markers and called the file groovy.mkr)
I definitly need to search my archive for tis patch...done :
Statistics: Posted by oli_lab — 07 Sep 2016, 21:28
]]>2016-09-07T20:54:34+02:002016-09-07T20:54:34+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35783#p35783 the incoming string is like an array of characters
first you get the size of the string then you use a FOR loop from 0 to size-1 inside this FOR loop, you check each character, if it's a numerical char (ie between '0' and '9') append it in another empty string then convert the string to a int
I'm too busy right now to code it, but I reckon that it could be useful in the futur to have a module that does just that.
Statistics: Posted by oli_lab — 07 Sep 2016, 20:54
]]>2016-09-07T18:25:05+02:002016-09-07T18:25:05+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35782#p35782Is there a subpatch or script for that ?
Statistics: Posted by ringmodulator — 07 Sep 2016, 18:25
]]>2016-09-07T17:42:48+02:002016-09-07T17:42:48+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35781#p35781 then use SetValue(Output,round(StrToFloat(GetStringValue(input))));
Statistics: Posted by oli_lab — 07 Sep 2016, 17:42
]]>2016-09-07T13:02:31+02:002016-09-07T13:02:31+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35778#p35778I ve got audio files with a name starting by a number (tempo), then a space, then the rest of the name. I'd like to "extract" this number which can besides have 2 or 3 signs. ( from 10 to 300..). Is there some kind of script that could cut a comma text file, or "read" just a part of it ?
Statistics: Posted by ringmodulator — 07 Sep 2016, 13:02
]]>BrainModularBrainModular Users Forum2016-09-10T17:00:27+02:00https://www.brainmodular.com/forums/app.php/feed/topic/55042016-09-10T17:00:27+02:002016-09-10T17:00:27+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35826#p35826Statistics: Posted by ringmodulator — 10 Sep 2016, 17:00
]]>2016-09-09T22:26:16+02:002016-09-09T22:26:16+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35819#p35819,' for exemple when you type: ""my file 1" ," my file 2"" ect, modules such as listbox or combobox know how they have to split 'elements' of a single big sentence to a list using found commas as separator markers, to get as a displayed result:
my file 1 my file 2 ...
i don't know this script but i suppose it converts a commatext made of strings representing numbers to array of numbers, so it internally has a string to integer command that won't like non numeric characters but have to check.
edit: so found and checked the script and it's what it does, pick the comma text list, split to element, and tries to convert to value, so in you case it gets for exemple an item like : 89 drumloop. it's not able to convert this whole thing string to a number.
if it had such commatext as input for exemple: "89,92,120,150" then it would work and output a numeric then array in the form of 89 92 120 150
]]>2016-09-09T22:11:36+02:002016-09-09T22:11:36+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35818#p35818Statistics: Posted by ringmodulator — 09 Sep 2016, 22:11
]]>2016-09-09T18:11:33+02:002016-09-09T18:11:33+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35817#p35817
Consider text in usine is Array of char = array of numbers that represents ascii char value. the ascci nuber for space is 32, so we look if it's in there (via A=32 that will return 1 if there 0 otherwise for each element of the array) and for the position of it (via max array position of this result, the array being filled with 0 and 1 only where space appears, the max return pos will be first space pos in the array) then we extract the sub part of global array from start till the position of first space we got from previously, all we have to do finally is convert this string to integer and we get numerical value of tempo.
]]>2016-09-09T12:07:49+02:002016-09-09T12:07:49+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35807#p35807My patch is close to the end and i'd like to finish it. The last step is to make hh able to read the tempo indicated at the beginning of the selected file..but of course, and that's the probleme, all my file's name are a mix of number and letters, but always in the same order (tempo- then any name). The comma text to array could be a solution . But i can't figure out how to use it, and any other solution is welcome.
Statistics: Posted by ringmodulator — 09 Sep 2016, 12:07
]]>2016-09-08T20:32:54+02:002016-09-08T20:32:54+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35797#p35797for the first patch : you have to change the path of the file lister according to your file structure and make sure all your files have 3 digit at the begining of their name.
for the second one, I must admit it is quite farfetched !
Statistics: Posted by oli_lab — 08 Sep 2016, 20:32
]]>2016-09-08T20:24:27+02:002016-09-08T20:24:27+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35796#p35796I'm just a little patch builder, and can't even imagine how you guys could talk to the machine with words..i've tried, but ..too complicated. So, that's why a part of your answer was chinese for me.
Statistics: Posted by ringmodulator — 08 Sep 2016, 20:24
]]>2016-09-08T20:18:02+02:002016-09-08T20:18:02+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35795#p35795I've tried a lot of things, ..and it seems that nothing works. I can't open your first patch, and the second one is freezed. I've tried to use strings to integer, but hh says it's not a valid float number.. Comma text to array gives nothing..or rather an ununderstanding array, which besides does'nt change when i'm changing from file .get comma text element index,.nothing. I'm wondering if i could have a problem with my version (1.02.011d) to read some scripts manipulating text. Is that kind of issue known ?
Statistics: Posted by ringmodulator — 08 Sep 2016, 20:18
I found a workaround, just always use 3 digits in the begining of the filename ie : 035 very slow song.wav
sometime ago I made some attempts at using metadata files, here's the idea : say you have a wave file called groovy.wav you load it into a special patch that will play the file, get its tempo and write, in the same directory, another file, actually a textfile with the value of the tempo writen into it. this file will be automatically named groovy.tpo (I actually made something like this for markers and called the file groovy.mkr)
I definitly need to search my archive for tis patch...done :
Statistics: Posted by oli_lab — 07 Sep 2016, 21:28
]]>2016-09-07T20:54:34+02:002016-09-07T20:54:34+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35783#p35783 the incoming string is like an array of characters
first you get the size of the string then you use a FOR loop from 0 to size-1 inside this FOR loop, you check each character, if it's a numerical char (ie between '0' and '9') append it in another empty string then convert the string to a int
I'm too busy right now to code it, but I reckon that it could be useful in the futur to have a module that does just that.
Statistics: Posted by oli_lab — 07 Sep 2016, 20:54
]]>2016-09-07T18:25:05+02:002016-09-07T18:25:05+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35782#p35782Is there a subpatch or script for that ?
Statistics: Posted by ringmodulator — 07 Sep 2016, 18:25
]]>2016-09-07T17:42:48+02:002016-09-07T17:42:48+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35781#p35781 then use SetValue(Output,round(StrToFloat(GetStringValue(input))));
Statistics: Posted by oli_lab — 07 Sep 2016, 17:42
]]>2016-09-07T13:02:31+02:002016-09-07T13:02:31+02:00https://www.brainmodular.com/forums/viewtopic.php?t=5504&p=35778#p35778I ve got audio files with a name starting by a number (tempo), then a space, then the rest of the name. I'd like to "extract" this number which can besides have 2 or 3 signs. ( from 10 to 300..). Is there some kind of script that could cut a comma text file, or "read" just a part of it ?
Statistics: Posted by ringmodulator — 07 Sep 2016, 13:02