Csound Csound-dev Csound-tekno Search About

[Csnd] csound6 event opcode fails on named instruments

Date2013-10-18 04:12
FromKelly Hirai
Subject[Csnd] csound6 event opcode fails on named instruments
having trouble calling named instruments with the event opcode. i can
call named instrs from the sco, but not with event opcode.

specific error:

Csound version 6.00.1 (double samples) Oct 15 2013
...
new alloc for instr 1:
insert_score_event(): invalid instrument number or name
PERF ERROR in instr 1: event: error creating 'i' event
    event.S    "i"    "evinstr"    0    1   
   note aborted


evtest.orc:

sr = 48000
kr = 240
ksmps = 200
nchnls = 2

instr 1
  event "i", "evinstr", 0 , 1
endin

instr evinstr
  print p1
endin

evtest.sco:

i1 0 2     ;fails
i "evinstr" 0 1 1   ;works
e



Date2013-10-18 07:08
FromVictor Lazzarini
SubjectRe: [Csnd] csound6 event opcode fails on named instruments
That was a bug that has been fixed in the latest git (branch develop).

Victor
On 18 Oct 2013, at 04:12, Kelly Hirai  wrote:

> having trouble calling named instruments with the event opcode. i can
> call named instrs from the sco, but not with event opcode.
> 
> specific error:
> 
> Csound version 6.00.1 (double samples) Oct 15 2013
> ...
> new alloc for instr 1:
> insert_score_event(): invalid instrument number or name
> PERF ERROR in instr 1: event: error creating 'i' event
>    event.S    "i"    "evinstr"    0    1   
>   note aborted
> 
> 
> evtest.orc:
> 
> sr = 48000
> kr = 240
> ksmps = 200
> nchnls = 2
> 
> instr 1
>  event "i", "evinstr", 0 , 1
> endin
> 
> instr evinstr
>  print p1
> endin
> 
> evtest.sco:
> 
> i1 0 2     ;fails
> i "evinstr" 0 1 1   ;works
> e
> 
> 
> 
> 
> Send bugs reports to the Sourceforge bug trackers
> csound6:
>            https://sourceforge.net/p/csound/tickets/
> csound5:
>            https://sourceforge.net/p/csound/bugs/
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
> 
>