Csound Csound-dev Csound-tekno Search About

[Csnd] first trial with follow and midi

Date2011-02-15 20:22
FromStefan 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>



Date2011-02-16 00:41
FromAidan Collins
SubjectRe: [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  wrote:

> 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?
> 
> 
> 
> ;
> ;
> ; ==============================================
> 
> 
> 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
> 
> 
> ; ==============================================
> 
> f 0 3600
> 
> i1 0 3600
> 
> 
> 
> 
> 
> 


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"


Date2011-02-16 07:47
FromAndres Cabrera
SubjectRe: [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
 wrote:
> 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  wrote:
>
>> 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?
>>
>>
>> 
>> ;
>> ;
>> ; ==============================================
>> 
>>
>> 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
>>
>> 
>> ; ==============================================
>> 
>> f 0 3600
>>
>> i1 0 3600
>>
>>
>> 
>> 
>>
>>
>
>
> Send bugs reports to the Sourceforge bug tracker
>            https://sourceforge.net/tracker/?group_id=81968&atid=564599
> Discussions of bugs and features can be posted here
> To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"
>
>


Send bugs reports to the Sourceforge bug tracker
            https://sourceforge.net/tracker/?group_id=81968&atid=564599
Discussions of bugs and features can be posted here
To unsubscribe, send email sympa@lists.bath.ac.uk with body "unsubscribe csound"