[Csnd] massign, pgmassign
Date | 2010-03-30 09:39 |
From | Stefan Thomas |
Subject | [Csnd] massign, pgmassign |
Dear community, I have a question concerning massign and pgmassign. I want to use a csound-file to record midi via rosegarden and I want to use rosegarden also for playback. When I run only csound and Jack I have the following problems: although instr. 1 is played when choosing channel 1 and instr. 2 is played when choosing number 2, I hear also instr. 2 when I choose program 2 on channel one. I also hear instr. 3 (which I only want to use for metronome click) when I choose programm 9 on channel 1. When I also start rosegarden, thinks become even more complicated. Sometimes I hear sound, when I start the playback in rosegarden, sometimes not. What could be the reason? Here is my (musical senseless) dummy-file: <CsoundSynthesizer> <CsOptions> -odevaudio -Ma -b400 -m0d -+rtaudio=jack -i adc -o dac ; the output is routed to Jack ;-odevaudio -M1 -b400 ; for realtime-midi </CsOptions> <CsInstruments> sr = 44100 kr = 2205 ksmps = 20 nchnls = 2 ipch = 8.02 iequal = 12 massign 1, 1 ; midi channel one is for instr. 2 massign 2, 2 ; midi channel two for instr. 2 massign 10,3 ; midi channel 10 for instr. number 3; pgmassign 2, 1; program two for inst. 1 pgmassign 3, 2; program three for instr. 2 pgmassign 1, 3 ; program one for instr. 3 instr 1 ituningtable = 10 imnn notnum indx = imnn * 2 + 1 ; values in table alternate between ; Midi note nums and frequencies icps table indx, ituningtable iamp ampmidi 10000 ; defining the envelopes iatt = 0.01 idec = 1.5 islev = 0 irel = 0.01 kenv madsr iatt, idec, islev, irel icar = 1 imod = 1 ifmindex = 8 a1 foscil kenv*iamp, icps, icar, imod, kenv*ifmindex, 1 outs a1, a1 endin ;;;;;;;;;;;;;;;; the 2nd instrument ;;;;;;;;;;;;;; instr 2 ituningtable = 10 imnn notnum indx = imnn * 2 + 1 ; values in table alternate between ; Midi note nums and frequencies icps table indx, ituningtable iamp ampmidi 10000 ; defining the envelopes iatt = 0.01 idec = 1.5 islev = 0 irel = 0.01 kenv madsr iatt, idec, islev, irel icar = 1 imod = 1.4 ifmindex = 8 a2 foscil kenv*iamp, icps, icar, imod, kenv*ifmindex, 1 outs a2, a2 endin ;;;;;;;;;; the 3rd instrument instr 3 ituningtable = 10 imnn notnum indx = imnn * 2 + 1 ; values in table alternate between ; Midi note nums and frequencies icps table indx, ituningtable iamp ampmidi 10000 adrum pluck iamp, icps, icps*0.81, 1, 3, .5 outs adrum, adrum endin </CsInstruments> ; defining the "score" <CsScore> f1 0 8193 10 1 f 10 0 256 -23 "12tet.cps" ; normal tempered scale i1 0 3600 i2 0 3600 i3 0 3600 </CsScore> </CsoundSynthesizer> |
Date | 2010-03-30 09:43 |
From | Rory Walsh |
Subject | [Csnd] Re: massign, pgmassign |
I reported a similar problem yesterday on the dev list. Same thing really, anything I play on channel one will start instrument two playing. On 30 March 2010 09:39, Stefan Thomas |