Csound Csound-dev Csound-tekno Search About

Re: nsamp() error

Date1999-04-27 10:11
FromGabriel Maldonado
SubjectRe: nsamp() error
nsamp() works OK with DirectCsound on my computer. 
Send me the orc/sco pair to test with.
-- 
Gabriel Maldonado

http://www.agora.stm.it/G.Maldonado/home2.htm

Andre Bartetzki wrote:
> 
> Hello,
> 
> has anyone ever used the nsamp() function?
> I want to set the duration of an event to the length of a soundfile in f1
> (GEN01) this way:
> 
> p3 = nsamp(1) / sr
> 
> but it seems that nsamp is unknown to csound:
> 
> -------------------------
> orch compiler:
> 20 lines read
>     instr   1
> error:  illegal opcod from expr anal, line 10:
> p3  =   nsamp(1) / sr
> error:  input arg '#i0' used before defined, line 10:
> p3  =   nsamp(1) / sr
> 2 syntax errors in orchestra.  compilation invalid
> -------------------------
> 
> Although nsamp is listed by the -z flag!
> 
> I've got this error both with 3.51 (Mills Mac version) and 3.53 (IRIX binary).
> 
> What's wrong here?
> 
> Andre
>