[Csnd] first trial with follow and midi
Date | 2011-02-15 20:22 |
From | Stefan Thomas |
Subject | [Csnd] first trial with follow and midi |
Dear community, I've made my first experiment with the follow opcode. I don't know why, but in my below quoted example, the key-velocity of the midi-keyboard doesn't seem to have any influence. What could by the reason? <CsoundSynthesizer> ;<CsOptions> ;</CsOptions> ; ============================================== <CsInstruments> sr = 44100 ksmps = 100 nchnls = 2 0dbfs = 1 gisine ftgen 0,0,2^10, 10, 1 instr 1 inote notnum ilaut veloc iamp ampmidi 2 icps cpsmidi asinus poscil 1, icps, gisine ; jetzt mit follow die Hüllkurve machen akantele soundin "kantele.wav" aenv follow akantele, 0.01 aout = iamp*aenv*asinus outs aout, aout endin </CsInstruments> ; ============================================== <CsScore> f 0 3600 i1 0 3600 </CsScore> </CsoundSynthesizer> |
Date | 2011-02-16 00:41 |
From | Aidan Collins |
Subject | Re: [Csnd] first trial with follow and midi |
Hi Stefan, It looks like you are reading the velocity into a variable called 'ilaut' but you aren't using that variable anywhere. Perhaps that is conflicting with the ampmidi opcode? A Sent from my iPhone On Feb 15, 2011, at 3:22 PM, Stefan Thomas |
Date | 2011-02-16 07:47 |
From | Andres Cabrera |
Subject | Re: [Csnd] first trial with follow and midi |
Hi, You don't need to turn on instrument 1 in the score (just use f 0 3600 to make sure it's going without notes). But I don't think that's your problem here... Cheers, Andres On Wed, Feb 16, 2011 at 12:41 AM, Aidan Collins |