Csound Csound-dev Csound-tekno Search About

[CSOUND-DEV:4895] Re: Opcodes in v4 and v5

Date2004-07-08 02:29
From"Michael Gogins"
Subject[CSOUND-DEV:4895] Re: Opcodes in v4 and v5
Thanks for the info. This should make it easier to fix.

----- Original Message ----- 
From: "Art Hunkins" 
To: "Csound Developers Discussion List" 
Sent: Wednesday, July 07, 2004 4:42 PM
Subject: [CSOUND-DEV:4894] Re: Opcodes in v4 and v5


> Attached is a simple .csd to test the opcode schedwhen.
>
> The runs realtime for 30 seconds, and during that time will play a
> one-second A440 sine wave whenever the (FLTK) Start button is pushed on.
>
> I don't know about CS4, but in CsoundAV, schedwhen has not worked for a
long
> time. We typically use schedkwhen instead - which appears to the user as
> identical to schedwhen except for the addition of two extra variables (the
> second and third). Oevind put me on to this.
>
> I've included the option of substituting schedkwhen for schedwhen in this
> .csd. The two extra zeroes in schedkwhen do nothing and simulate
schedwhen.
>
> Bottom line: schedkwhen works both in AV and in CS5. Schedwhen worka in
> neither, though for different reasons.
>
> (In AV, the note turns on properly, but does not turn off after one
second -
> its duration.)
>
> In CS5, the orchestra compilation generates the message: Error: 'ktrig' of
> type k not allowed when expecting S (in schedwhen). Schedwhen takes 4
k-type
> inputs; I've no idea why an S-type variable should be specified. I'd
gather
> its a typo.
>
> The AV problem with schedule seems to be something entirely different. It
> would be very nice if both could be fixed. It would be nice to be able to
> use schedwhen in place of the more complex schedkwhen.
>
> Art Hunkins
>
> ----- Original Message -----
> From: 
> To: "Csound Developers Discussion List" 
> Sent: Wednesday, July 07, 2004 1:25 AM
> Subject: [CSOUND-DEV:4892] Opcodes in v4 and v5
>
>
> > I have done a small survey of the opcodes available in v4.23 and
> > current v5.  The differences are below.  Some of the first set relate
> > to things which should be in the audio software bus.  But missing is
> > convolve and wgbowedbar which I do not understand.
> >
> > The ones in twice have me very confused at present as I cannot see why
> > or how.
> >
> >
> > In v4 and not in v5:
> >    button    k       k
> >    checkbox  k       k
> >    chosc1    a       ik
> >    chosc2    a       iikkkkk
> >    control   k       k
> >    convle    mmmm    aSo
> >    convolve  mmmm    aSo
> >    flashtxt  (null)  iS
> >    setctrl   (null)  iSi
> >    wgbowedbar a       kkkkkoooo
> >
> > In v5 twice!
> >    delay1    a       ao
> >    delayw    (null)  a
> >    deltap    a       k
> >    deltap3   a       x
> >    deltapi   a       x
> >    deltapn   a       x
> >    deltapx   a       ai
> >    deltapxw  (null)  aai
> >    limit     i       iii
> >
> > in v5 and not in v4:
> >    maxk      k       aki
> >    splitrig  (null)  kkiiz
> >    timedseq  k       kiz
> >    vdelayk   k       kkioo
> >    seqtime2  k       kkkkkk
> >
> > Opcodes with different arguments:
> >    v5   FLcount   ki      Siiiiiiiiiz
> >    v4   FLcount   ki      Siiiiiiiiiiz
> >
> >    v5   schedwhen (null)  Skkkm
> >    v4   schedwhen (null)  kSkkm
> >
> >
> > ==John ffitch
> >
>