| ftgentmp does not take arrays, it's a completely different opcode.
Prof. Victor Lazzarini
Maynooth University
Ireland
> On 16 May 2024, at 07:24, Scott Daughtrey wrote:
>
> ftgen can use arrays without issue, however ftgentmp reports an error if an array is used, whether function(al) syntax is used or not.
>
> Here's an example:
>
>
>
> -odac
>
>
>
> sr = 48000
> ksmps = 32
> nchnls = 1
> 0dbfs = 1
>
> instr 1
> iWave = ftgentmp(0, 0, 384, 16,\
> 0, 128, -2,\
> 1, 128, 2,\
> -1, 128, 3 0)
> endin
>
> instr 2
> iArr[] fillarray 0, 128, -2,\
> 1, 128, 2,\
> -1, 128, 8, 0
> iWave = ftgen(0, 0, 384, 16, iArr)
> endin
>
> instr 3
> iArr[] fillarray 1, 0, 1, 0
> iWave = ftgen(0, 0, 1024, 10, iArr)
> endin
>
>
>
> i1 0 .1
> i2 .1 .1
> i3 .2 .1
>
>
>
> In this case if either instr 2 or 3 is changed from ftgen to ftgentmp the error occurs and parsing fails:
>
> error: opcode 'ftgentmp' with arg types cccci[] not found etc.
>
> I wanted to check if I'm doing something wrong or whether to possibly file an issue on github.
>
> Best,
> Scott
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
> https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here |