ArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2014-12-23T17:58:43+02:00 https://brainmodular.com/forums/app.php/feed/topic/4633 2014-12-23T17:58:43+02:00 2014-12-23T17:58:43+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30965#p30965 <![CDATA[substring methods?]]> Cheers, the Tparameter range thing I shall certainly bear in mind.

Statistics: Posted by Blaakk — 23 Dec 2014, 16:58


]]>
2014-12-22T09:58:31+02:00 2014-12-22T09:58:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30958#p30958 <![CDATA[substring methods?]]> Even 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:00 2014-12-22T08:14:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30954#p30954 <![CDATA[substring methods?]]> Statistics: Posted by woodslanding — 22 Dec 2014, 07:14


]]>
2014-12-22T02:18:13+02:00 2014-12-22T02:18:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30951#p30951 <![CDATA[substring methods?]]> In 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


]]>
2014-12-21T22:01:31+02:00 2014-12-21T22:01:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30946#p30946 <![CDATA[substring methods?]]>
http://www.delphibasics.co.uk/Article.asp?Name=Text
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'.

http://www.sensomusic.com/forums/upload ... ample2.pat

Why did you use 'process' as opposed to 'callback' or 'process idle' in the 1st script?

Statistics: Posted by Blaakk — 21 Dec 2014, 21:01


]]>
2014-12-19T22:33:34+02:00 2014-12-19T22:33:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30934#p30934 <![CDATA[substring methods?]]>
http://www.sensomusic.org/forums/upload ... xample.pat

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:00 2014-12-19T22:03:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30933#p30933 <![CDATA[substring methods?]]>
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:00 2014-12-19T18:51:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30931#p30931 <![CDATA[substring methods?]]>
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


]]>
2014-12-19T10:09:40+02:00 2014-12-19T10:09:40+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30929#p30929 <![CDATA[substring methods?]]>
http://www.delphibasics.co.uk/Article.asp?Name=Text

Statistics: Posted by 23fx23 — 19 Dec 2014, 09:09


]]>
2014-12-19T06:38:59+02:00 2014-12-19T06:38:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30928#p30928 <![CDATA[substring methods?]]> http://www.sensomusic.org/wiki2/doku.ph ... tutorial05

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:00 2014-12-19T06:33:01+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30927#p30927 <![CDATA[substring methods?]]>
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 shawnb — 19 Dec 2014, 05:33


]]>
2014-12-19T03:37:20+02:00 2014-12-19T03:37:20+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30924#p30924 <![CDATA[substring methods?]]>
thanks!

Statistics: Posted by woodslanding — 19 Dec 2014, 02:37


]]>
BrainModular BrainModular Users Forum 2014-12-23T17:58:43+02:00 https://brainmodular.com/forums/app.php/feed/topic/4633 2014-12-23T17:58:43+02:00 2014-12-23T17:58:43+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30965#p30965 <![CDATA[substring methods?]]> Cheers, the Tparameter range thing I shall certainly bear in mind.

Statistics: Posted by Blaakk — 23 Dec 2014, 16:58


]]>
2014-12-22T09:58:31+02:00 2014-12-22T09:58:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30958#p30958 <![CDATA[substring methods?]]> Even 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:00 2014-12-22T08:14:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30954#p30954 <![CDATA[substring methods?]]> Statistics: Posted by woodslanding — 22 Dec 2014, 07:14


]]>
2014-12-22T02:18:13+02:00 2014-12-22T02:18:13+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30951#p30951 <![CDATA[substring methods?]]> In 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


]]>
2014-12-21T22:01:31+02:00 2014-12-21T22:01:31+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30946#p30946 <![CDATA[substring methods?]]>
http://www.delphibasics.co.uk/Article.asp?Name=Text
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'.

http://www.sensomusic.com/forums/upload ... ample2.pat

Why did you use 'process' as opposed to 'callback' or 'process idle' in the 1st script?

Statistics: Posted by Blaakk — 21 Dec 2014, 21:01


]]>
2014-12-19T22:33:34+02:00 2014-12-19T22:33:34+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30934#p30934 <![CDATA[substring methods?]]>
http://www.sensomusic.org/forums/upload ... xample.pat

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:00 2014-12-19T22:03:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30933#p30933 <![CDATA[substring methods?]]>
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:00 2014-12-19T18:51:16+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30931#p30931 <![CDATA[substring methods?]]>
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


]]>
2014-12-19T10:09:40+02:00 2014-12-19T10:09:40+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30929#p30929 <![CDATA[substring methods?]]>
http://www.delphibasics.co.uk/Article.asp?Name=Text

Statistics: Posted by 23fx23 — 19 Dec 2014, 09:09


]]>
2014-12-19T06:38:59+02:00 2014-12-19T06:38:59+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30928#p30928 <![CDATA[substring methods?]]> http://www.sensomusic.org/wiki2/doku.ph ... tutorial05

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:00 2014-12-19T06:33:01+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30927#p30927 <![CDATA[substring methods?]]>
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 shawnb — 19 Dec 2014, 05:33


]]>
2014-12-19T03:37:20+02:00 2014-12-19T03:37:20+02:00 https://brainmodular.com/forums/viewtopic.php?t=4633&p=30924#p30924 <![CDATA[substring methods?]]>
thanks!

Statistics: Posted by woodslanding — 19 Dec 2014, 02:37


]]>