< Back to IRCAM Forum

Error OM-Prisma and Csound 6.08

Hi All,

I have already posted the following in Open Music Sound Synthesis discussion group and in Csound mail list, without many replies at the moment. I apologize if it is off topic.

I am using OM 6.09 on OsX 10.8.5 and OM-Prisma 2.35 and Csound 6.08.
In synthesizing any OM-Prisma example I receive an error of parsing by Csound.
Apparently the error is always on timeoftravel_discrete opcode, here is the orc relative part:

opcode timeoftravel_discrete, a, aii
asound, idist, idopplerfunction xin
idelaytime = idist2.9411764705882353
idelayindex = idelaytime
0.0068
idelaytime tablei idelayindex, idopplerfunction, 1, 0, 0
adelaytime limit idelaytime, 128/sr, 0.3 ;;;; this is line 99
aspkfeed vdelayxw asound, adelaytime, 0.3, 256
xout aspkfeed
endop

and the error is specifically on adelaytime instruction. Using WinXound on sco and orc files generated by OM the message is:

error: Unable to find opcode entry for ‘limit’ with matching argument types:
Found: a limit iic
Line: 99
from file /Users/fabio/lib/OM_workspace/out-files/my_synt.csd (1)
Parsing failed to syntax errors
Stopping on parser failure

Please, note, everything runs perfectly using Csound 6.06. Not tested on Csound 6.07.

Any suggestion is welcome, thank you in advance,

Best

fdsdb

Most probably due to omPrisma version. Try using omprisma 2.1 or 2.2 since the latest version is for om6.10 or more

Best
K

Dear Karim,

Thank you for your fast reply and Happy New Year :-).
I have tried with OM-Prisma 2.2, both with OM 6.11 and 6.9, but the error is the same.
Unfortunately I have not found OM-Prisma version 2.1, but I think it should the same, probably it is a question inehrent to new version of Csound (with 6.06 version everything rubs good).
I will try to understand if something changed in last Csound version.
Thank you for your post,

Best
fdsdb

Hi,

I think the “limit” opcode has been deprecated in recent versions of Csound.
It’ll be fixed in future OMPrisma version.

cheers,
Marlon

@Schumacher

Hi,

Thank you for reply. I have downgraded to Csound 6.06 for the moment, I will try current Csound version with next OM-Prisma release when disposable. Thank you again.

Best

Fabio De Sanctis De Benedictis

@Schumacher

Hi,

Yes, it seems to me it runs. I enclose the .csd file. Please note, I have substituted the line you have said to me (see line 102), and also the corrispective line 140 for other similar opcode, using adelaytime = kdelaytime.
I have used a quadraphonic setting, in first patch of tutorial, last example, and the compiled audio file should be correct.
Thank you, ciao

Fabio

Sorry, I have enclosed the file, but it is missing. I try again.

Hi,
Sorry again, I don’t suceed in uploading .csd file. Well, I paste the modified code parts:

opcode timeoftravel_discrete, a, aii
asound, idist, idopplerfunction xin
idelaytime = idist2.9411764705882353
idelayindex = idelaytime
0.0068
idelaytime tablei idelayindex, idopplerfunction, 1, 0, 0
adelaytime = idelaytime
aspkfeed vdelayxw asound, adelaytime, 0.3, 256
xout aspkfeed
endop

and

opcode timeoftravel_continuous, a, aki
asound, kdist, idopplerfunction xin
kdelaytime = kdist2.9411764705882353
kdelayindex = kdelaytime
0.0068
kdelaytime tablei kdelayindex, idopplerfunction, 1, 0, 0
adelaytime = kdelaytime
aspkfeed vdelayxw asound, adelaytime, 0.3, 256
xout aspkfeed
endop

Ciao

fdsdb