ArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2011-07-22T01:35:06+02:00 https://brainmodular.com/forums/app.php/feed/topic/2981 2011-07-22T01:35:06+02:00 2011-07-22T01:35:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20047#p20047 <![CDATA[Sampler File List Item Count]]> -CCQ-

Statistics: Posted by CleverConQueso — 22 Jul 2011, 01:35


]]>
2011-07-21T22:14:56+02:00 2011-07-21T22:14:56+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20037#p20037 <![CDATA[Sampler File List Item Count]]>

Statistics: Posted by 23fx23 — 21 Jul 2011, 22:14


]]>
2011-07-21T22:07:14+02:00 2011-07-21T22:07:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20036#p20036 <![CDATA[Sampler File List Item Count]]> yes, works fine ;)

Statistics: Posted by nay-seven — 21 Jul 2011, 22:07


]]>
2011-07-21T21:57:40+02:00 2011-07-21T21:57:40+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20034#p20034 <![CDATA[Sampler File List Item Count]]> im away from usine so i ll do it by memory, sorry if doesn't work at first, i can't check.
i ll check when back home. copy and paste to a new empty sript and compile.

CODE:

////////////////////////////Var Commain,NBITEMS &#58; tparameter;Var SL1&#58; Tstringlist;//////////////////////////////Procedure Init;Begincommain&#58;= CreateParam&#40;'commain',Pttextfield&#41;;Setisoutput&#40;commain,false&#41;;NBitems&#58;=CreateParam&#40;'NBitems',ptdatafield&#41;;SetisInput&#40;NBITEMS,false&#41;;SL1&#58;=Tstringlist.Create;SL1.commatext&#58;=' ';END;///////////////////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;BEGINSL1.commatext&#58;= getstringvalue&#40;COMMAIN&#41;;setvalue&#40;NBITEMS,SL1.count&#41;;END;/////////////////////////////////////

Statistics: Posted by 23fx23 — 21 Jul 2011, 21:57


]]>
2011-07-21T21:08:26+02:00 2011-07-21T21:08:26+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20033#p20033 <![CDATA[Sampler File List Item Count]]> I've got a comma separated text box with a list of paths to sample files feeding the 'List Comma Text' input of a sampler. Rather than use the 'next sample' or 'random sample' commands, I want to be able to use a formula to randomly select the next sample to play and choose its file number. This would be based on the total number of files that are loaded to the sampler and each time the app refreshes, the file count will change. So my question is this -

Does anyone know if there is any way to get an item count from the list text object?
- OR -
Does anyone know if there is a way to get the number of files that are loaded to a sample player?

Thanks,
- CCQ -

Statistics: Posted by CleverConQueso — 21 Jul 2011, 21:08


]]>
BrainModular BrainModular Users Forum 2011-07-22T01:35:06+02:00 https://brainmodular.com/forums/app.php/feed/topic/2981 2011-07-22T01:35:06+02:00 2011-07-22T01:35:06+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20047#p20047 <![CDATA[Sampler File List Item Count]]> -CCQ-

Statistics: Posted by CleverConQueso — 22 Jul 2011, 01:35


]]>
2011-07-21T22:14:56+02:00 2011-07-21T22:14:56+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20037#p20037 <![CDATA[Sampler File List Item Count]]>

Statistics: Posted by 23fx23 — 21 Jul 2011, 22:14


]]>
2011-07-21T22:07:14+02:00 2011-07-21T22:07:14+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20036#p20036 <![CDATA[Sampler File List Item Count]]> yes, works fine ;)

Statistics: Posted by nay-seven — 21 Jul 2011, 22:07


]]>
2011-07-21T21:57:40+02:00 2011-07-21T21:57:40+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20034#p20034 <![CDATA[Sampler File List Item Count]]> im away from usine so i ll do it by memory, sorry if doesn't work at first, i can't check.
i ll check when back home. copy and paste to a new empty sript and compile.

CODE:

////////////////////////////Var Commain,NBITEMS &#58; tparameter;Var SL1&#58; Tstringlist;//////////////////////////////Procedure Init;Begincommain&#58;= CreateParam&#40;'commain',Pttextfield&#41;;Setisoutput&#40;commain,false&#41;;NBitems&#58;=CreateParam&#40;'NBitems',ptdatafield&#41;;SetisInput&#40;NBITEMS,false&#41;;SL1&#58;=Tstringlist.Create;SL1.commatext&#58;=' ';END;///////////////////////////////////////////////////////////Procedure Callback &#40;n&#58;integer&#41;;BEGINSL1.commatext&#58;= getstringvalue&#40;COMMAIN&#41;;setvalue&#40;NBITEMS,SL1.count&#41;;END;/////////////////////////////////////

Statistics: Posted by 23fx23 — 21 Jul 2011, 21:57


]]>
2011-07-21T21:08:26+02:00 2011-07-21T21:08:26+02:00 https://brainmodular.com/forums/viewtopic.php?t=2981&p=20033#p20033 <![CDATA[Sampler File List Item Count]]> I've got a comma separated text box with a list of paths to sample files feeding the 'List Comma Text' input of a sampler. Rather than use the 'next sample' or 'random sample' commands, I want to be able to use a formula to randomly select the next sample to play and choose its file number. This would be based on the total number of files that are loaded to the sampler and each time the app refreshes, the file count will change. So my question is this -

Does anyone know if there is any way to get an item count from the list text object?
- OR -
Does anyone know if there is a way to get the number of files that are loaded to a sample player?

Thanks,
- CCQ -

Statistics: Posted by CleverConQueso — 21 Jul 2011, 21:08


]]>