Csound Csound-dev Csound-tekno Search About

Re: init error again

Date1999-08-23 16:55
FromJosep M Comajuncosas
SubjectRe: init error again
Hmmm what about this:


> INIT ERROR: oscili: not initialized
>
> here is the orc:
> instr 1
>   aout      init        0 ;<--- remove it (unnecessary with the modification)
>   asig      in                        ; get the live input
>   krms      rms         asig

igoto startinst: ;ADD THIS LINE TO THE CODE

>
>   if krms       > 700     Kgoto       startinst;replace by kgoto again (it
> won´t be necessari at the i-pass).
>            Kgoto        end;replace by kgoto again (it won´t be necessari at
> the i-pass).
>   startinst:
>   aout      oscili      10000, 440, 1
>   end:
>         out         aout
>  endin

The idea is to make sure that, both for krms>700 and krms<700, you don´t
skip
the initialisation of aout´s oscili. Probably your signal starts with a
low
amplitude and it skips the initialisation (goto end:).


--
Josep M Comajuncosas
C/ Circumval.lacio 75  08790 Gelida - Penedes
Catalunya - SPAIN tel. 93 7792243
e-mail:          gelida@intercom.es
ET Informatica de Sistemes
e-mail: jcomajuncosas@campus.uoc.es
  http://members.tripod.com/csound/