| It works here:
ksmps = 64
instr 1
irows init 2
icols init 2
kArr[] init irows, icols
ki = 0;
until ki == irows do
kj = 0
until kj == icols do
kArr[ki][kj] table ki*icols+kj,1
kj += 1
od
ki += 1
od
printk 0, kArr[0][0]
printk 0, kArr[0][1]
printk 0, kArr[1][0]
printk 0, kArr[1][1]
event "e", 0, 0,0.1
endin
f 1 0 8 -2 1 2 3 4
i1 0 1
========================
Dr Victor Lazzarini
Senior Lecturer
NUI Maynooth, Ireland
victor dot lazzarini at nuim dot ie
On 23 May 2014, at 20:57, Anders Genell wrote:
> I tried something like
>
> ktime timek
> if (ktime > ftlen(gitable)) then
> event "e", 0, 0, 0.1
> endif
>
> but it didn't seem to work...
> Regards
>
>
>
> 23 maj 2014 kl. 19:06 skrev Victor Lazzarini :
>
>> yes,
>>
>> event "e"
>>
>> should do it.
>> On 23 May 2014, at 16:12, Anders Genell wrote:
>>
>>> thank you!!
>>> I'll give it a try immediately
>>>
>>> Oh, by the way, is there a good way to exit csound when all values of a table generated by GEN23 (arbitrary size) have been read (and processed)?
>>>
>>> Regards,
>>> Anders
>>>
>>>
>>> On Fri, May 23, 2014 at 4:43 PM, Victor Lazzarini wrote:
>>> if you can read every single number into table 1, then this code should do the rest
>>>
>>> iArr[] init irows, icols
>>> ii = 0;
>>> until ii == irows do
>>> ij = 0
>>> until ij == icols do
>>> iArr[ii][ij] table ii*icols+ij,1
>>> ij += 1
>>> od
>>> ii += 1
>>> od
>>>
>>> ========================
>>> Dr Victor Lazzarini
>>> Senior Lecturer
>>> NUI Maynooth, Ireland
>>> victor dot lazzarini at nuim dot ie
>>>
>>>
>>>
>>>
>>> On 23 May 2014, at 14:53, Anders Genell wrote:
>>>
>>>> Hello!
>>>>
>>>> As I am currently playing around a bit with GEN23, I was wondering if there perhaps would be possible to fill an multi dimensional array from a text file?
>>>> Say I have a text file with data in 4 columns and 50 rows and would want to be able to have csound read that into a 4x50 array, would that be doable in some simple way?
>>>> ideally I would love not to be required to know the number of columns and row beforehand...
>>>>
>>>> Regards,
>>>> Anders
>>>> ------------------------------------------------------------------------------
>>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>>> Get unparalleled scalability from the best Selenium testing platform available
>>>> Simple to use. Nothing to install. Get started now for free."
>>>> http://p.sf.net/sfu/SauceLabs_______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>>> Instantly run your Selenium tests across 300+ browser/OS combos.
>>> Get unparalleled scalability from the best Selenium testing platform available
>>> Simple to use. Nothing to install. Get started now for free."
>>> http://p.sf.net/sfu/SauceLabs_______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> Dr Victor Lazzarini
>> Senior Lecturer
>> Dept. of Music
>> NUI Maynooth Ireland
>> tel.: +353 1 708 3545
>> Victor dot Lazzarini AT nuim dot ie
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
>> Instantly run your Selenium tests across 300+ browser/OS combos.
>> Get unparalleled scalability from the best Selenium testing platform available
>> Simple to use. Nothing to install. Get started now for free."
>> http://p.sf.net/sfu/SauceLabs
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> "Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
> Instantly run your Selenium tests across 300+ browser/OS combos.
> Get unparalleled scalability from the best Selenium testing platform available
> Simple to use. Nothing to install. Get started now for free."
> http://p.sf.net/sfu/SauceLabs
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |