< Back to IRCAM Forum

Problems with OM-Prisma 2.35 and Csound 6.08

Hi All,
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

Hi,
I have a similar error with my old patches in new OM and Csounds, please suggest any solutions.

Hi @FDSDB,

can you try replacing the lines pasted above in your .orc with these ones and try running it with the newest Csound version?

thanks,
Marlon

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

Hi @MARLON,

First of all I must really apologize for great delay, I was sure to have answered to you, I remembered in a private message because problems on site, but now I am not so sure to have done it.
Well, if I substitute your text in timeoftravel_discrete opcode the .orc fiile does not work. But if I do the same type of substitution also on timeoftravel_continuous it works. I hope this is useful.

Again great apologies for my unforgivable delay, really sorry.

Best

fdsdb

Hi,

this is already fixed in the sources. If you go on https://sourceforge.net/p/omprisma/code/ci/develop/tree/ and click on “Download Snapshot” you will get the most up-to-date sources (and as a bonus some new classes and other tricks). NB not everything is documented and tested yet - use at your own risk :wink:

Hi Marlon,

Thank you very much for fast reply. I have downloaded the developer version, and made a first test on inux Fedora 20 and OM 6.12, and on OsX 10.8.5 and both OM 6.9 and OM 6.12, and it seems to me all works. No risks :slight_smile:

Thank you very much for your work.

Best

fdsdb

Hi Marlon,

I have realized only now that the same error of precedent posts, even after downloading developer new Prisma library version, is encountered in two examples in tutorials: in the spat patch, inside the spatialization classes folder, on the continuous and trajectory example. On the contrary discrete example works. And also all other ones, I seem.
I hope this observation can be of some utility.

Ciao

fdsdb

Thanks - this is now FIXED in /develop branch.

M

Hi Marlon,

Thank you very much, I have downloaded and installed it, it seems to me it works good.

Ciao

fdsdb