Csound Csound-dev Csound-tekno Search About

[Csnd] massign

Date2008-09-19 11:49
FromFederico Vanni
Subject[Csnd] massign
Hi list,

I'm trying to use different midi channels using 
"massign", but I hear only the channel 1....
could someone tell me what is wrong please ?
thanks
FV



sr = 44100
        kr = 4410
        ksmps = 10
        nchnls = 1

massign 1,1
massign 2,2



instr   1

kval midictrl 7
icps cpsmidi
iamp ampmidi 10000

kenv linsegr 0, .1,       1,  .3, . 5,        2, 0
a1 oscili iamp*(kval/127), icps, 1


out (a1*kenv)

endin


instr   2

kval midictrl 7
icps cpsmidi
iamp ampmidi 10000

a1 pluck iamp*(kval/127), icps, icps, 0, 1

out a1
endin