ArrayArrayArray BrainModular BrainModular Users Forum 2015-02-13T04:23:10+02:00 https://brainmodular.org/forums/app.php/feed/topic/4698 2015-02-13T04:23:10+02:00 2015-02-13T04:23:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31268#p31268 <![CDATA[Extract file name / extract file ext]]> Statistics: Posted by AndrewChi — 13 Feb 2015, 03:23


]]>
2015-02-13T01:00:54+02:00 2015-02-13T01:00:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31266#p31266 <![CDATA[Extract file name / extract file ext]]>

CODE:

/////////////////////////////////////////////// sub File Ext   ////////////////////////////////////////////// parameters declarationvar input     &#58; Tparameter;var output    &#58; Tparameter; // initialisation &#58; create parametersprocedure init;begin   SetModuleColor&#40;$808080+302060&#41;; Input &#58;= CreateParam&#40;'full file name',ptTextField&#41;; SetIsOutPut&#40;Input,false&#41;; output &#58;= CreateParam&#40;'out',ptTextField&#41;;                                  SetIsInPut&#40;Output,false&#41;;      end;                         procedure Callback&#40;n&#58;integer&#41;;begin                SetStringValue&#40;Output,copy&#40;GetStringValue&#40;Input&#41;,1,length&#40;GetStringValue&#40;Input&#41;&#41;-4&#41;&#41;;    end;
Will be integrated in the next major release

Statistics: Posted by senso — 13 Feb 2015, 00:00


]]>
2015-02-12T17:24:12+02:00 2015-02-12T17:24:12+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31258#p31258 <![CDATA[Extract file name / extract file ext]]> I need some help...
I am trying to save a random sample name and a text file with the same name.
This works, but I also need to extract the file name WITHOUT extension (.WAV and .TXT) later on to work with it in the patch.
the module 'extract file ext' extracts the extension,
but the module 'extract file name' gives you in fact the 'short filename' but it still has its extension.
Any ideas on how to really extract the file name, without its extension?

Any help appreciated, thanks!!!

Statistics: Posted by AndrewChi — 12 Feb 2015, 16:24


]]>
BrainModular BrainModular Users Forum 2015-02-13T04:23:10+02:00 https://brainmodular.org/forums/app.php/feed/topic/4698 2015-02-13T04:23:10+02:00 2015-02-13T04:23:10+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31268#p31268 <![CDATA[Extract file name / extract file ext]]> Statistics: Posted by AndrewChi — 13 Feb 2015, 03:23


]]>
2015-02-13T01:00:54+02:00 2015-02-13T01:00:54+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31266#p31266 <![CDATA[Extract file name / extract file ext]]>

CODE:

/////////////////////////////////////////////// sub File Ext   ////////////////////////////////////////////// parameters declarationvar input     &#58; Tparameter;var output    &#58; Tparameter; // initialisation &#58; create parametersprocedure init;begin   SetModuleColor&#40;$808080+302060&#41;; Input &#58;= CreateParam&#40;'full file name',ptTextField&#41;; SetIsOutPut&#40;Input,false&#41;; output &#58;= CreateParam&#40;'out',ptTextField&#41;;                                  SetIsInPut&#40;Output,false&#41;;      end;                         procedure Callback&#40;n&#58;integer&#41;;begin                SetStringValue&#40;Output,copy&#40;GetStringValue&#40;Input&#41;,1,length&#40;GetStringValue&#40;Input&#41;&#41;-4&#41;&#41;;    end;
Will be integrated in the next major release

Statistics: Posted by senso — 13 Feb 2015, 00:00


]]>
2015-02-12T17:24:12+02:00 2015-02-12T17:24:12+02:00 https://brainmodular.org/forums/viewtopic.php?t=4698&p=31258#p31258 <![CDATA[Extract file name / extract file ext]]> I need some help...
I am trying to save a random sample name and a text file with the same name.
This works, but I also need to extract the file name WITHOUT extension (.WAV and .TXT) later on to work with it in the patch.
the module 'extract file ext' extracts the extension,
but the module 'extract file name' gives you in fact the 'short filename' but it still has its extension.
Any ideas on how to really extract the file name, without its extension?

Any help appreciated, thanks!!!

Statistics: Posted by AndrewChi — 12 Feb 2015, 16:24


]]>