Group Admins

  • Profile picture of Karim
  • Profile picture of Jean

OpenMusic

Public Group active 3 days, 20 hours ago

User group for OpenMusic and computer-aided composition. Visit the Forum for discussions.

Error OM-Prisma and Csound 6.08

Author 3 Subscribed Users |
Profile photo of fdsdb
fdsdb

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 = idist*2.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

January 22, 2017 at 09:20 #20510
Profile photo of Karim
Karim

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

January 22, 2017 at 12:29 #20511
Profile photo of fdsdb
fdsdb

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

January 22, 2017 at 14:17 #20512
Profile photo of Marlon Schumacher
Marlon Schumacher

Hi,

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

cheers,
Marlon

February 6, 2017 at 10:52 #20676
Profile photo of fdsdb
fdsdb

@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

February 6, 2017 at 12:58 #20678
Profile photo of fdsdb
fdsdb

@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

February 8, 2017 at 08:48 #20706
Profile photo of fdsdb
fdsdb

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

February 8, 2017 at 08:53 #20707
Profile photo of fdsdb
fdsdb

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 = idist*2.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 = kdist*2.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

  • This reply was modified 7 months, 2 weeks ago by Profile photo of fdsdb fdsdb.
February 8, 2017 at 08:58 #20708

You must be logged in to reply to this topic.

Log in now