| You have to have an i-statement for instrument 256,
just like your f0 statement (making it always on), so
that that instrument can be processed and listen on
the zak channels. Your midi instruments don't have
this problem since they get instantiated from the
note-on and off events on their particular midi
channel.
Michael Bechard
--- schwaahed wrote:
> Hi,
>
> I am trying to understand the Zak Patching system. I
> was wondering
> why the prints in instrument 256 don't work? It
> doesn't seem
> like my reading of the Zak variables does anything.
>
> What am I missing?
> Any help appreciated.
>
> Thanks
> schwaahed
>
>
>
>
> ; Put your flags here
> ;-+rtaudio=jack -odac:alsa_pcm:playback_
> -+rtmidi=alsa -M hw:1,0
> -b 128 -B 512
>
>
>
>
>
> sr = 44100
> ksmps = 100
> nchnls = 2
> zakinit 1, 5
>
> massign 1, 255
>
> instr 128
> endin
>
> instr 255
>
> iamp ampmidi 30000
> ifreq cpsmidi
> kamp1 = k(iamp)
> kfreq1 = k(ifreq)
>
> kPitchBend1 pchbend 0, 1
> kModwheel1 ctrl7 1, 1, 0, 1
>
> zkw kamp1, 1
> zkw kfreq1, 2
> zkw kPitchBend1, 3
> zkw kModwheel1, 4
>
>
> printk2 kamp1, 0
> printk2 kfreq1, 8
> printk2 kPitchBend1, 16
> printk2 kModwheel1, 24
>
> endin
>
>
> instr 256
>
> kamp2 zkr 1
> kfreq2 zkr 2
> kPitchBend2 zkr 3
> kModwheel2 zkr 4
>
> printk2 kamp2, 40
> printk2 kfreq2, 48
> printk2 kPitchBend2, 56
> printk2 kModwheel2, 64
>
>
> zkcl 0,5
>
> endin
>
>
>
>
> f0 360
> e
>
>
>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to
> csound-unsubscribe@lists.bath.ac.uk
>
__________________________________________
Yahoo! DSL Something to write home about.
Just $16.99/mo. or less.
dsl.yahoo.com |