ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray
BrainModularBrainModular Users Forum2014-12-23T17:58:43+02:00https://brainmodular.com/forums/app.php/feed/topic/46332014-12-23T17:58:43+02:002014-12-23T17:58:43+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30965#p30965 Cheers, the Tparameter range thing I shall certainly bear in mind.
]]>2014-12-22T09:58:31+02:002014-12-22T09:58:31+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30958#p30958Even if you have an idea and want to shoot back-and-forth, I love trying to solve things like that.
I am not a super-coder nor sometimes the best in efficiency, but I am an excellent integrator and can usually find solutions.
-S
Statistics: Posted by sephult — 22 Dec 2014, 08:58
]]>2014-12-22T08:14:14+02:002014-12-22T08:14:14+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30954#p30954Statistics: Posted by woodslanding — 22 Dec 2014, 07:14
]]>
2014-12-22T02:18:13+02:002014-12-22T02:18:13+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30951#p30951In this case I wanted to make sure I saw updates and trace updates in my debugging.
In the case of a callback I would have to be dynamically changing the input to get the trigger to happen. If I used the same filename and text box, I never had a change.
I am not 100% sure if using a callback would be the best for a text input unless possibly you did like a has-changed and based off of that trigger. In past patches I tried to make sure everything was cut and clear as I had some conflicts.
Not totally related, but things like specifying a range of 0-100 on a Tparameter; you would think that the callback would only trigger on a value between 0-100, this is not the case as a -1 will also trigger etc... So without blabbing more, it has just been more of a conditioning of how I approach based on my past scripting more or less, and just a cut a clear script to achieve your end result.
-S
Statistics: Posted by sephult — 22 Dec 2014, 01:18
Awesome! I've been trying and failing many string manipulations. This will be a huge help with everything. Your patch helps understanding..... I modified it to allow extracting from paths with longer extensions, ie... '.rack'.
Here is an example of how to extract filenames using substring methods as in the link I had sent.
This brings in the filename as a string, and finds the count of characters in the filename.
Using this count and the delete you can find the starting point of the extension and just delete it.
Some of the substring commands I find problems with as well but a lot of times it's mostly my usage. Like setting the length of a String was the first choice I picked, however this would not work as it was expecting a Tparameter instead of the string.
I hope this helps out
-S
Statistics: Posted by sephult — 19 Dec 2014, 21:33
]]>2014-12-19T22:03:06+02:002014-12-19T22:03:06+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30933#p30933 Are you talking about the http://www.sensomusic.org/wiki2/doku.ph … tutorial05 I posted in reply? Should point to section 5. Strings of the tutorial, as it does on my end.
The page does look like a declarations, but is actually within the tutorial...that was why I originally had problems finding substring functions.
-S
Statistics: Posted by sephult — 19 Dec 2014, 21:03
]]>2014-12-19T18:51:16+02:002014-12-19T18:51:16+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30931#p30931 The link is to the declarations, not the tutorial. And I looked inside the modules for extracting file names and paths, but they all use dedicated methods. And a dedicated method to strip the file extension is missing.
And stripping the extension display on a list object does not affect the CT out.
Statistics: Posted by woodslanding — 19 Dec 2014, 17:51
I had the same issue kept looking at Declaration and References, where in the tutorial it had more information that helped.
-S
Statistics: Posted by sephult — 19 Dec 2014, 05:38
]]>2014-12-19T06:33:01+02:002014-12-19T06:33:01+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30927#p30927 I believe you can use Array modules on text strings. And there are modules for finding characters & extracting subarrays.
There are plenty of string functions in the scripting language.
Statistics: Posted by woodslanding — 19 Dec 2014, 02:37
]]>BrainModularBrainModular Users Forum2014-12-23T17:58:43+02:00https://brainmodular.com/forums/app.php/feed/topic/46332014-12-23T17:58:43+02:002014-12-23T17:58:43+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30965#p30965 Cheers, the Tparameter range thing I shall certainly bear in mind.
]]>2014-12-22T09:58:31+02:002014-12-22T09:58:31+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30958#p30958Even if you have an idea and want to shoot back-and-forth, I love trying to solve things like that.
I am not a super-coder nor sometimes the best in efficiency, but I am an excellent integrator and can usually find solutions.
-S
Statistics: Posted by sephult — 22 Dec 2014, 08:58
]]>2014-12-22T08:14:14+02:002014-12-22T08:14:14+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30954#p30954Statistics: Posted by woodslanding — 22 Dec 2014, 07:14
]]>2014-12-22T02:18:13+02:002014-12-22T02:18:13+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30951#p30951In this case I wanted to make sure I saw updates and trace updates in my debugging.
In the case of a callback I would have to be dynamically changing the input to get the trigger to happen. If I used the same filename and text box, I never had a change.
I am not 100% sure if using a callback would be the best for a text input unless possibly you did like a has-changed and based off of that trigger. In past patches I tried to make sure everything was cut and clear as I had some conflicts.
Not totally related, but things like specifying a range of 0-100 on a Tparameter; you would think that the callback would only trigger on a value between 0-100, this is not the case as a -1 will also trigger etc... So without blabbing more, it has just been more of a conditioning of how I approach based on my past scripting more or less, and just a cut a clear script to achieve your end result.
-S
Statistics: Posted by sephult — 22 Dec 2014, 01:18
Awesome! I've been trying and failing many string manipulations. This will be a huge help with everything. Your patch helps understanding..... I modified it to allow extracting from paths with longer extensions, ie... '.rack'.
Here is an example of how to extract filenames using substring methods as in the link I had sent.
This brings in the filename as a string, and finds the count of characters in the filename.
Using this count and the delete you can find the starting point of the extension and just delete it.
Some of the substring commands I find problems with as well but a lot of times it's mostly my usage. Like setting the length of a String was the first choice I picked, however this would not work as it was expecting a Tparameter instead of the string.
I hope this helps out
-S
Statistics: Posted by sephult — 19 Dec 2014, 21:33
]]>2014-12-19T22:03:06+02:002014-12-19T22:03:06+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30933#p30933 Are you talking about the http://www.sensomusic.org/wiki2/doku.ph … tutorial05 I posted in reply? Should point to section 5. Strings of the tutorial, as it does on my end.
The page does look like a declarations, but is actually within the tutorial...that was why I originally had problems finding substring functions.
-S
Statistics: Posted by sephult — 19 Dec 2014, 21:03
]]>2014-12-19T18:51:16+02:002014-12-19T18:51:16+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30931#p30931 The link is to the declarations, not the tutorial. And I looked inside the modules for extracting file names and paths, but they all use dedicated methods. And a dedicated method to strip the file extension is missing.
And stripping the extension display on a list object does not affect the CT out.
Statistics: Posted by woodslanding — 19 Dec 2014, 17:51
I had the same issue kept looking at Declaration and References, where in the tutorial it had more information that helped.
-S
Statistics: Posted by sephult — 19 Dec 2014, 05:38
]]>2014-12-19T06:33:01+02:002014-12-19T06:33:01+02:00https://brainmodular.com/forums/viewtopic.php?t=4633&p=30927#p30927 I believe you can use Array modules on text strings. And there are modules for finding characters & extracting subarrays.
There are plenty of string functions in the scripting language.