Csound Csound-dev Csound-tekno Search About

[Cs-dev] change i-rate arrays at k-time

Date2015-06-03 16:59
Fromjoachim heintz
Subject[Cs-dev] change i-rate arrays at k-time
hi all -

while working with arrays (always nice =) i am struggling a bit with a 
very strict distinction between i-rate and k-rate arrays.

when i work with function tables, which are i-rate, i can change them at 
k-time — very useful and needed.

but for arrays, this does not work.  this is a simple example:



-n


sr = 44100
ksmps = 32
nchnls = 2
0dbfs = 1

giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
giArr[] fillarray 1, 2, 3, 4, 5

;for ftables, i-rate table can be changes at k-time
instr 1
tablew random:k(0, 10), 0, giFt
printk 0, table:k(0, giFt)
endin

;complains about i = k (works for random:i)
instr 2
giArr[0] = random:k(0, 10)
printk 0, giArr[0]
endin



i 1 0 .002
i 2 .002 .002




the error message is:

Unable to find opcode entry for '=' with matching argument types:
Found: i = k

i would love to see at arrays the same flexibility as at function 
tables, so that an i-rate array can be changed at k-rate.  is that 
possible, or by any reason not desired?

best -
	joachim

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.s

Date2015-06-03 17:06
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
What about using gKarr[]?

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
> 
> hi all -
> 
> while working with arrays (always nice =) i am struggling a bit with a 
> very strict distinction between i-rate and k-rate arrays.
> 
> when i work with function tables, which are i-rate, i can change them at 
> k-time — very useful and needed.
> 
> but for arrays, this does not work.  this is a simple example:
> 
> 
> 
> -n
> 
> 
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
> 
> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
> giArr[] fillarray 1, 2, 3, 4, 5
> 
> ;for ftables, i-rate table can be changes at k-time
> instr 1
> tablew random:k(0, 10), 0, giFt
> printk 0, table:k(0, giFt)
> endin
> 
> ;complains about i = k (works for random:i)
> instr 2
> giArr[0] = random:k(0, 10)
> printk 0, giArr[0]
> endin
> 
> 
> 
> i 1 0 .002
> i 2 .002 .002
> 
> 
> 
> 
> the error message is:
> 
> Unable to find opcode entry for '=' with matching argument types:
> Found: i = k
> 
> i would love to see at arrays the same flexibility as at function 
> tables, so that an i-rate array can be changed at k-rate.  is that 
> possible, or by any reason not desired?
> 
> best -
>    joachim
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforg

Date2015-06-03 17:07
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
I mean gkArr[]

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
> 
> hi all -
> 
> while working with arrays (always nice =) i am struggling a bit with a 
> very strict distinction between i-rate and k-rate arrays.
> 
> when i work with function tables, which are i-rate, i can change them at 
> k-time — very useful and needed.
> 
> but for arrays, this does not work.  this is a simple example:
> 
> 
> 
> -n
> 
> 
> sr = 44100
> ksmps = 32
> nchnls = 2
> 0dbfs = 1
> 
> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
> giArr[] fillarray 1, 2, 3, 4, 5
> 
> ;for ftables, i-rate table can be changes at k-time
> instr 1
> tablew random:k(0, 10), 0, giFt
> printk 0, table:k(0, giFt)
> endin
> 
> ;complains about i = k (works for random:i)
> instr 2
> giArr[0] = random:k(0, 10)
> printk 0, giArr[0]
> endin
> 
> 
> 
> i 1 0 .002
> i 2 .002 .002
> 
> 
> 
> 
> the error message is:
> 
> Unable to find opcode entry for '=' with matching argument types:
> Found: i = k
> 
> i would love to see at arrays the same flexibility as at function 
> tables, so that an i-rate array can be changed at k-rate.  is that 
> possible, or by any reason not desired?
> 
> best -
>    joachim
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists

Date2015-06-03 17:30
Fromjoachim heintz
SubjectRe: [Cs-dev] change i-rate arrays at k-time
yes i know, this works, and i tried to switch on this, but sometimes you 
need to ask a value from an array both, at i- and k-rate.  and then the 
error is vice versa: an operation needs i-rate, but there is only a k-array.

	joachim


Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
> I mean gkArr[]
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>
>> hi all -
>>
>> while working with arrays (always nice =) i am struggling a bit with a
>> very strict distinction between i-rate and k-rate arrays.
>>
>> when i work with function tables, which are i-rate, i can change them at
>> k-time — very useful and needed.
>>
>> but for arrays, this does not work.  this is a simple example:
>>
>> 
>> 
>> -n
>> 
>> 
>> sr = 44100
>> ksmps = 32
>> nchnls = 2
>> 0dbfs = 1
>>
>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>> giArr[] fillarray 1, 2, 3, 4, 5
>>
>> ;for ftables, i-rate table can be changes at k-time
>> instr 1
>> tablew random:k(0, 10), 0, giFt
>> printk 0, table:k(0, giFt)
>> endin
>>
>> ;complains about i = k (works for random:i)
>> instr 2
>> giArr[0] = random:k(0, 10)
>> printk 0, giArr[0]
>> endin
>>
>> 
>> 
>> i 1 0 .002
>> i 2 .002 .002
>> 
>> 
>>
>>
>> the error message is:
>>
>> Unable to find opcode entry for '=' with matching argument types:
>> Found: i = k
>>
>> i would love to see at arrays the same flexibility as at function
>> tables, so that an i-rate array can be changed at k-rate.  is that
>> possible, or by any reason not desired?
>>
>> best -
>>     joachim
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
http

Date2015-06-03 17:34
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
what about using the i() operator?
i(gkarr[0]) 

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
> 
> yes i know, this works, and i tried to switch on this, but sometimes you 
> need to ask a value from an array both, at i- and k-rate.  and then the 
> error is vice versa: an operation needs i-rate, but there is only a k-array.
> 
>    joachim
> 
> 
>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>> I mean gkArr[]
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>> 
>>> hi all -
>>> 
>>> while working with arrays (always nice =) i am struggling a bit with a
>>> very strict distinction between i-rate and k-rate arrays.
>>> 
>>> when i work with function tables, which are i-rate, i can change them at
>>> k-time — very useful and needed.
>>> 
>>> but for arrays, this does not work.  this is a simple example:
>>> 
>>> 
>>> 
>>> -n
>>> 
>>> 
>>> sr = 44100
>>> ksmps = 32
>>> nchnls = 2
>>> 0dbfs = 1
>>> 
>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>> giArr[] fillarray 1, 2, 3, 4, 5
>>> 
>>> ;for ftables, i-rate table can be changes at k-time
>>> instr 1
>>> tablew random:k(0, 10), 0, giFt
>>> printk 0, table:k(0, giFt)
>>> endin
>>> 
>>> ;complains about i = k (works for random:i)
>>> instr 2
>>> giArr[0] = random:k(0, 10)
>>> printk 0, giArr[0]
>>> endin
>>> 
>>> 
>>> 
>>> i 1 0 .002
>>> i 2 .002 .002
>>> 
>>> 
>>> 
>>> 
>>> the error message is:
>>> 
>>> Unable to find opcode entry for '=' with matching argument types:
>>> Found: i = k
>>> 
>>> i would love to see at arrays the same flexibility as at function
>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>> possible, or by any reason not desired?
>>> 
>>> best -
>>>    joachim
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csou

Date2015-06-03 17:46
Fromjoachim heintz
SubjectRe: [Cs-dev] change i-rate arrays at k-time
well, i cannot recall a concrete case.  i will get back to this thread 
when i come across one.  but it is a helpful hint that the usual rate 
for arrays is k, whilst the rate for tables is i.

	joachim


Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
> what about using the i() operator?
> i(gkarr[0])
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>
>> yes i know, this works, and i tried to switch on this, but sometimes you
>> need to ask a value from an array both, at i- and k-rate.  and then the
>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>
>>     joachim
>>
>>
>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>> I mean gkArr[]
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>
>>>> hi all -
>>>>
>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>> very strict distinction between i-rate and k-rate arrays.
>>>>
>>>> when i work with function tables, which are i-rate, i can change them at
>>>> k-time — very useful and needed.
>>>>
>>>> but for arrays, this does not work.  this is a simple example:
>>>>
>>>> 
>>>> 
>>>> -n
>>>> 
>>>> 
>>>> sr = 44100
>>>> ksmps = 32
>>>> nchnls = 2
>>>> 0dbfs = 1
>>>>
>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>
>>>> ;for ftables, i-rate table can be changes at k-time
>>>> instr 1
>>>> tablew random:k(0, 10), 0, giFt
>>>> printk 0, table:k(0, giFt)
>>>> endin
>>>>
>>>> ;complains about i = k (works for random:i)
>>>> instr 2
>>>> giArr[0] = random:k(0, 10)
>>>> printk 0, giArr[0]
>>>> endin
>>>>
>>>> 
>>>> 
>>>> i 1 0 .002
>>>> i 2 .002 .002
>>>> 
>>>> 
>>>>
>>>>
>>>> the error message is:
>>>>
>>>> Unable to find opcode entry for '=' with matching argument types:
>>>> Found: i = k
>>>>
>>>> i would love to see at arrays the same flexibility as at function
>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>> possible, or by any reason not desired?
>>>>
>>>> best -
>>>>     joachim
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforg

Date2015-06-03 17:49
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
Table access can be made at any of the three rates, arrays too. Not sure what you mean about usual.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 Jun 2015, at 17:46, joachim heintz  wrote:
> 
> well, i cannot recall a concrete case.  i will get back to this thread 
> when i come across one.  but it is a helpful hint that the usual rate 
> for arrays is k, whilst the rate for tables is i.
> 
>    joachim
> 
> 
>> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>> what about using the i() operator?
>> i(gkarr[0])
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>> 
>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>> 
>>>    joachim
>>> 
>>> 
>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>> I mean gkArr[]
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>> 
>>>>> hi all -
>>>>> 
>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>> 
>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>> k-time — very useful and needed.
>>>>> 
>>>>> but for arrays, this does not work.  this is a simple example:
>>>>> 
>>>>> 
>>>>> 
>>>>> -n
>>>>> 
>>>>> 
>>>>> sr = 44100
>>>>> ksmps = 32
>>>>> nchnls = 2
>>>>> 0dbfs = 1
>>>>> 
>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>> 
>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>> instr 1
>>>>> tablew random:k(0, 10), 0, giFt
>>>>> printk 0, table:k(0, giFt)
>>>>> endin
>>>>> 
>>>>> ;complains about i = k (works for random:i)
>>>>> instr 2
>>>>> giArr[0] = random:k(0, 10)
>>>>> printk 0, giArr[0]
>>>>> endin
>>>>> 
>>>>> 
>>>>> 
>>>>> i 1 0 .002
>>>>> i 2 .002 .002
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> the error message is:
>>>>> 
>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>> Found: i = k
>>>>> 
>>>>> i would love to see at arrays the same flexibility as at function
>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>> possible, or by any reason not desired?
>>>>> 
>>>>> best -
>>>>>    joachim
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/l

Date2015-06-03 18:20
Fromjoachim heintz
SubjectRe: [Cs-dev] change i-rate arrays at k-time
i meant that a table is assigned as i-rate (as you said the access can 
be at any rate), like in
giMyTable ftgen ...

arrays can be i-, k-, a-rate, but you cannot access the values of an 
i-array at k-rate.  this was my point.  so it seems that creating a k--array
gkMyArr[] fillarray 1, 2, 3, 4, 5

is more convenient in most cases than creating an i-array
giMyArray[] fillarray 1, 2, 3, 4, 5

that's what i meant about usual — from a user's point you have to think 
a bit different when using arrays, compared to using function tables: 
use a k-array, where you have used an i-table before.

hope i could explain better now ...

	j


Am 03.06.2015 um 18:49 schrieb Victor Lazzarini:
> Table access can be made at any of the three rates, arrays too. Not sure what you mean about usual.
>
> Victor Lazzarini
> Dean of Arts, Celtic Studies, and Philosophy
> Maynooth University
> Ireland
>
>> On 3 Jun 2015, at 17:46, joachim heintz  wrote:
>>
>> well, i cannot recall a concrete case.  i will get back to this thread
>> when i come across one.  but it is a helpful hint that the usual rate
>> for arrays is k, whilst the rate for tables is i.
>>
>>     joachim
>>
>>
>>> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>>> what about using the i() operator?
>>> i(gkarr[0])
>>>
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>>
>>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>>>
>>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>>>
>>>>     joachim
>>>>
>>>>
>>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>>> I mean gkArr[]
>>>>>
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>>
>>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>>>
>>>>>> hi all -
>>>>>>
>>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>>>
>>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>>> k-time — very useful and needed.
>>>>>>
>>>>>> but for arrays, this does not work.  this is a simple example:
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> -n
>>>>>> 
>>>>>> 
>>>>>> sr = 44100
>>>>>> ksmps = 32
>>>>>> nchnls = 2
>>>>>> 0dbfs = 1
>>>>>>
>>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>>>
>>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>>> instr 1
>>>>>> tablew random:k(0, 10), 0, giFt
>>>>>> printk 0, table:k(0, giFt)
>>>>>> endin
>>>>>>
>>>>>> ;complains about i = k (works for random:i)
>>>>>> instr 2
>>>>>> giArr[0] = random:k(0, 10)
>>>>>> printk 0, giArr[0]
>>>>>> endin
>>>>>>
>>>>>> 
>>>>>> 
>>>>>> i 1 0 .002
>>>>>> i 2 .002 .002
>>>>>> 
>>>>>> 
>>>>>>
>>>>>>
>>>>>> the error message is:
>>>>>>
>>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>>> Found: i = k
>>>>>>
>>>>>> i would love to see at arrays the same flexibility as at function
>>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>>> possible, or by any reason not desired?
>>>>>>
>>>>>> best -
>>>>>>     joachim
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists

Date2015-06-03 19:05
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
In that case, it is only the table number that is assigned, as the tsble is created at init time. I guess it is a different type of beast, in a way.

Victor Lazzarini
Dean of Arts, Celtic Studies, and Philosophy
Maynooth University
Ireland

> On 3 Jun 2015, at 18:20, joachim heintz  wrote:
> 
> i meant that a table is assigned as i-rate (as you said the access can 
> be at any rate), like in
> giMyTable ftgen ...
> 
> arrays can be i-, k-, a-rate, but you cannot access the values of an 
> i-array at k-rate.  this was my point.  so it seems that creating a k--array
> gkMyArr[] fillarray 1, 2, 3, 4, 5
> 
> is more convenient in most cases than creating an i-array
> giMyArray[] fillarray 1, 2, 3, 4, 5
> 
> that's what i meant about usual — from a user's point you have to think 
> a bit different when using arrays, compared to using function tables: 
> use a k-array, where you have used an i-table before.
> 
> hope i could explain better now ...
> 
>    j
> 
> 
>> Am 03.06.2015 um 18:49 schrieb Victor Lazzarini:
>> Table access can be made at any of the three rates, arrays too. Not sure what you mean about usual.
>> 
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>> 
>>> On 3 Jun 2015, at 17:46, joachim heintz  wrote:
>>> 
>>> well, i cannot recall a concrete case.  i will get back to this thread
>>> when i come across one.  but it is a helpful hint that the usual rate
>>> for arrays is k, whilst the rate for tables is i.
>>> 
>>>    joachim
>>> 
>>> 
>>>> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>>>> what about using the i() operator?
>>>> i(gkarr[0])
>>>> 
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>> 
>>>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>>>> 
>>>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>>>> 
>>>>>    joachim
>>>>> 
>>>>> 
>>>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>>>> I mean gkArr[]
>>>>>> 
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>> 
>>>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>>>> 
>>>>>>> hi all -
>>>>>>> 
>>>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>>>> 
>>>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>>>> k-time — very useful and needed.
>>>>>>> 
>>>>>>> but for arrays, this does not work.  this is a simple example:
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> -n
>>>>>>> 
>>>>>>> 
>>>>>>> sr = 44100
>>>>>>> ksmps = 32
>>>>>>> nchnls = 2
>>>>>>> 0dbfs = 1
>>>>>>> 
>>>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>>>> 
>>>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>>>> instr 1
>>>>>>> tablew random:k(0, 10), 0, giFt
>>>>>>> printk 0, table:k(0, giFt)
>>>>>>> endin
>>>>>>> 
>>>>>>> ;complains about i = k (works for random:i)
>>>>>>> instr 2
>>>>>>> giArr[0] = random:k(0, 10)
>>>>>>> printk 0, giArr[0]
>>>>>>> endin
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> i 1 0 .002
>>>>>>> i 2 .002 .002
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> the error message is:
>>>>>>> 
>>>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>>>> Found: i = k
>>>>>>> 
>>>>>>> i would love to see at arrays the same flexibility as at function
>>>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>>>> possible, or by any reason not desired?
>>>>>>> 
>>>>>>> best -
>>>>>>>    joachim
>>>>>>> 
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net

Date2015-06-21 13:09
Fromjoachim heintz
SubjectRe: [Cs-dev] change i-rate arrays at k-time
i get back now to this thread with an example of a problem in usage.

i have a strset list of sounds, and an array which contains a selection 
of these sounds:
   gkPlaySnds[] fillarray 1, 2, 3, 4, 5, 6, 7, 8

now i want to create a function table for each of these sound files, for 
buffer playback.

so i did:
   iFt init 0
   while iFt < lenarray(gkPlaySnds) do
     iSnd = gkPlaySnds[iFt]
     iNo ftgen iSnd, 0, 0, -1, iSnd, 0, 0, 1
     iFt += 1
   od

but i get this error:
Unable to find opcode entry for '=' with matching argument types:
Found: i = k
(referring to the line:  iSnd = gkPlaySnds[iFt])

that's what i meant:
- the gkPlaySnds array must be k-rate because later on i am using it in 
a k-rate context, and it would complain about "i = k" if i asked for 
something like giPlaySnds[kIndx].
- but if it is a k-rate array, i cannot access it an init-time, what i 
must do if i want to create a function table.

anything i overlooked?  thanks -
	joachim


Am 03.06.2015 um 18:46 schrieb joachim heintz:
> well, i cannot recall a concrete case.  i will get back to this thread
> when i come across one.  but it is a helpful hint that the usual rate
> for arrays is k, whilst the rate for tables is i.
>
> 	joachim
>
>
> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>> what about using the i() operator?
>> i(gkarr[0])
>>
>> Victor Lazzarini
>> Dean of Arts, Celtic Studies, and Philosophy
>> Maynooth University
>> Ireland
>>
>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>>
>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>>
>>>      joachim
>>>
>>>
>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>> I mean gkArr[]
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>>
>>>>> hi all -
>>>>>
>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>>
>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>> k-time — very useful and needed.
>>>>>
>>>>> but for arrays, this does not work.  this is a simple example:
>>>>>
>>>>> 
>>>>> 
>>>>> -n
>>>>> 
>>>>> 
>>>>> sr = 44100
>>>>> ksmps = 32
>>>>> nchnls = 2
>>>>> 0dbfs = 1
>>>>>
>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>>
>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>> instr 1
>>>>> tablew random:k(0, 10), 0, giFt
>>>>> printk 0, table:k(0, giFt)
>>>>> endin
>>>>>
>>>>> ;complains about i = k (works for random:i)
>>>>> instr 2
>>>>> giArr[0] = random:k(0, 10)
>>>>> printk 0, giArr[0]
>>>>> endin
>>>>>
>>>>> 
>>>>> 
>>>>> i 1 0 .002
>>>>> i 2 .002 .002
>>>>> 
>>>>> 
>>>>>
>>>>>
>>>>> the error message is:
>>>>>
>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>> Found: i = k
>>>>>
>>>>> i would love to see at arrays the same flexibility as at function
>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>> possible, or by any reason not desired?
>>>>>
>>>>> best -
>>>>>      joachim
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-

Date2015-06-21 23:20
FromVictor Lazzarini
SubjectRe: [Cs-dev] change i-rate arrays at k-time
to acess a k-var at init time, use i(.). So

iSnd = i(gkPlaySnds[iFt])

should do what you want.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 21 Jun 2015, at 13:09, joachim heintz  wrote:
> 
> i get back now to this thread with an example of a problem in usage.
> 
> i have a strset list of sounds, and an array which contains a selection 
> of these sounds:
>   gkPlaySnds[] fillarray 1, 2, 3, 4, 5, 6, 7, 8
> 
> now i want to create a function table for each of these sound files, for 
> buffer playback.
> 
> so i did:
>   iFt init 0
>   while iFt < lenarray(gkPlaySnds) do
>     iSnd = gkPlaySnds[iFt]
>     iNo ftgen iSnd, 0, 0, -1, iSnd, 0, 0, 1
>     iFt += 1
>   od
> 
> but i get this error:
> Unable to find opcode entry for '=' with matching argument types:
> Found: i = k
> (referring to the line:  iSnd = gkPlaySnds[iFt])
> 
> that's what i meant:
> - the gkPlaySnds array must be k-rate because later on i am using it in 
> a k-rate context, and it would complain about "i = k" if i asked for 
> something like giPlaySnds[kIndx].
> - but if it is a k-rate array, i cannot access it an init-time, what i 
> must do if i want to create a function table.
> 
> anything i overlooked?  thanks -
> 	joachim
> 
> 
> Am 03.06.2015 um 18:46 schrieb joachim heintz:
>> well, i cannot recall a concrete case.  i will get back to this thread
>> when i come across one.  but it is a helpful hint that the usual rate
>> for arrays is k, whilst the rate for tables is i.
>> 
>> 	joachim
>> 
>> 
>> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>>> what about using the i() operator?
>>> i(gkarr[0])
>>> 
>>> Victor Lazzarini
>>> Dean of Arts, Celtic Studies, and Philosophy
>>> Maynooth University
>>> Ireland
>>> 
>>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>>> 
>>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>>> 
>>>>     joachim
>>>> 
>>>> 
>>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>>> I mean gkArr[]
>>>>> 
>>>>> Victor Lazzarini
>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>> Maynooth University
>>>>> Ireland
>>>>> 
>>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>>> 
>>>>>> hi all -
>>>>>> 
>>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>>> 
>>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>>> k-time — very useful and needed.
>>>>>> 
>>>>>> but for arrays, this does not work.  this is a simple example:
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> -n
>>>>>> 
>>>>>> 
>>>>>> sr = 44100
>>>>>> ksmps = 32
>>>>>> nchnls = 2
>>>>>> 0dbfs = 1
>>>>>> 
>>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>>> 
>>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>>> instr 1
>>>>>> tablew random:k(0, 10), 0, giFt
>>>>>> printk 0, table:k(0, giFt)
>>>>>> endin
>>>>>> 
>>>>>> ;complains about i = k (works for random:i)
>>>>>> instr 2
>>>>>> giArr[0] = random:k(0, 10)
>>>>>> printk 0, giArr[0]
>>>>>> endin
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> i 1 0 .002
>>>>>> i 2 .002 .002
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> the error message is:
>>>>>> 
>>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>>> Found: i = k
>>>>>> 
>>>>>> i would love to see at arrays the same flexibility as at function
>>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>>> possible, or by any reason not desired?
>>>>>> 
>>>>>> best -
>>>>>>     joachim
>>>>>> 
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>> 
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>> 
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>> 
>> 
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>> 
> 
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel


------------------------------------------------------------------------------
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourcef

Date2015-06-22 22:45
Fromjoachim heintz
SubjectRe: [Cs-dev] change i-rate arrays at k-time
yes you are right — this works.
thanks!
	joachim


Am 22.06.2015 um 00:20 schrieb Victor Lazzarini:
> to acess a k-var at init time, use i(.). So
>
> iSnd = i(gkPlaySnds[iFt])
>
> should do what you want.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
>> On 21 Jun 2015, at 13:09, joachim heintz  wrote:
>>
>> i get back now to this thread with an example of a problem in usage.
>>
>> i have a strset list of sounds, and an array which contains a selection
>> of these sounds:
>>    gkPlaySnds[] fillarray 1, 2, 3, 4, 5, 6, 7, 8
>>
>> now i want to create a function table for each of these sound files, for
>> buffer playback.
>>
>> so i did:
>>    iFt init 0
>>    while iFt < lenarray(gkPlaySnds) do
>>      iSnd = gkPlaySnds[iFt]
>>      iNo ftgen iSnd, 0, 0, -1, iSnd, 0, 0, 1
>>      iFt += 1
>>    od
>>
>> but i get this error:
>> Unable to find opcode entry for '=' with matching argument types:
>> Found: i = k
>> (referring to the line:  iSnd = gkPlaySnds[iFt])
>>
>> that's what i meant:
>> - the gkPlaySnds array must be k-rate because later on i am using it in
>> a k-rate context, and it would complain about "i = k" if i asked for
>> something like giPlaySnds[kIndx].
>> - but if it is a k-rate array, i cannot access it an init-time, what i
>> must do if i want to create a function table.
>>
>> anything i overlooked?  thanks -
>> 	joachim
>>
>>
>> Am 03.06.2015 um 18:46 schrieb joachim heintz:
>>> well, i cannot recall a concrete case.  i will get back to this thread
>>> when i come across one.  but it is a helpful hint that the usual rate
>>> for arrays is k, whilst the rate for tables is i.
>>>
>>> 	joachim
>>>
>>>
>>> Am 03.06.2015 um 18:34 schrieb Victor Lazzarini:
>>>> what about using the i() operator?
>>>> i(gkarr[0])
>>>>
>>>> Victor Lazzarini
>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>> Maynooth University
>>>> Ireland
>>>>
>>>>> On 3 Jun 2015, at 17:30, joachim heintz  wrote:
>>>>>
>>>>> yes i know, this works, and i tried to switch on this, but sometimes you
>>>>> need to ask a value from an array both, at i- and k-rate.  and then the
>>>>> error is vice versa: an operation needs i-rate, but there is only a k-array.
>>>>>
>>>>>      joachim
>>>>>
>>>>>
>>>>>> Am 03.06.2015 um 18:07 schrieb Victor Lazzarini:
>>>>>> I mean gkArr[]
>>>>>>
>>>>>> Victor Lazzarini
>>>>>> Dean of Arts, Celtic Studies, and Philosophy
>>>>>> Maynooth University
>>>>>> Ireland
>>>>>>
>>>>>>> On 3 Jun 2015, at 16:59, joachim heintz  wrote:
>>>>>>>
>>>>>>> hi all -
>>>>>>>
>>>>>>> while working with arrays (always nice =) i am struggling a bit with a
>>>>>>> very strict distinction between i-rate and k-rate arrays.
>>>>>>>
>>>>>>> when i work with function tables, which are i-rate, i can change them at
>>>>>>> k-time — very useful and needed.
>>>>>>>
>>>>>>> but for arrays, this does not work.  this is a simple example:
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> -n
>>>>>>> 
>>>>>>> 
>>>>>>> sr = 44100
>>>>>>> ksmps = 32
>>>>>>> nchnls = 2
>>>>>>> 0dbfs = 1
>>>>>>>
>>>>>>> giFt ftgen 0, 0, -5, -2, 1, 2, 3, 4, 5
>>>>>>> giArr[] fillarray 1, 2, 3, 4, 5
>>>>>>>
>>>>>>> ;for ftables, i-rate table can be changes at k-time
>>>>>>> instr 1
>>>>>>> tablew random:k(0, 10), 0, giFt
>>>>>>> printk 0, table:k(0, giFt)
>>>>>>> endin
>>>>>>>
>>>>>>> ;complains about i = k (works for random:i)
>>>>>>> instr 2
>>>>>>> giArr[0] = random:k(0, 10)
>>>>>>> printk 0, giArr[0]
>>>>>>> endin
>>>>>>>
>>>>>>> 
>>>>>>> 
>>>>>>> i 1 0 .002
>>>>>>> i 2 .002 .002
>>>>>>> 
>>>>>>> 
>>>>>>>
>>>>>>>
>>>>>>> the error message is:
>>>>>>>
>>>>>>> Unable to find opcode entry for '=' with matching argument types:
>>>>>>> Found: i = k
>>>>>>>
>>>>>>> i would love to see at arrays the same flexibility as at function
>>>>>>> tables, so that an i-rate array can be changed at k-rate.  is that
>>>>>>> possible, or by any reason not desired?
>>>>>>>
>>>>>>> best -
>>>>>>>      joachim
>>>>>>>
>>>>>>> ------------------------------------------------------------------------------
>>>>>>> _______________________________________________
>>>>>>> Csound-devel mailing list
>>>>>>> Csound-devel@lists.sourceforge.net
>>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>> ------------------------------------------------------------------------------
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel
>

------------------------------------------------------------------------------
Monitor 25 network devices or servers for free with OpManager!
OpManager is web-based network management software that monitors 
network devices and physical & virtual servers, alerts via email & sms 
for fault. Monitor 25 devices for free with no restriction. Download now
http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/