[Csnd] Re: Re: Re: Re: Re: different pitches during a live-midi performance
Date | 2009-07-05 19:48 |
From | "Art Hunkins" |
Subject | [Csnd] Re: Re: Re: Re: Re: different pitches during a live-midi performance |
Stefan,
Please tell us which lines are #30 and #31, and
what the specific error messages are.
If any German commentary is involved, please
translate for me; ich verstehe deutsch nicht so gut.
I do see one error:
icps = (ipedal
> 0? icps - (icps * .9): icps + (icps * .1))
(This may be the problem - or one of them.) Art Hunkins
|
Date | 2009-07-06 19:01 |
From | Stefan Thomas |
Subject | [Csnd] Re: Re: Re: Re: Re: Re: different pitches during a live-midi performance |
Attachments | 17tet.cps |
Dear Art, thanks for Your anwer. I guess I changed something in my file, but I dont know what. Now I get the following error message: INIT ERROR in instr 0: ? [illegal channel number? [m ?[m massign 64, 2 When I erase the line number 14 in the file, I can hear a sound, but I can't, off course, change any pitch. What I don't understand is: Is it right, that 64 should be a number of controller, not of a channel? If so, how can I tell csound this? Here is, again, the whole file, without german comments. Thank You very much, Stefan <CsoundSynthesizer> <CsOptions> -odevaudio -M1 -b400 </CsOptions> <CsInstruments> sr = 44100 kr = 2205 ksmps = 20 nchnls = 2 gkpedal init 0 ipch = 8.02 iequal = 12 massign 0, 1 ; assign all midi events to instr 1, massign 64, 2 pgmassign 0, 1 ; also all program changes instr 1 ipedal = i(gkpedal) ituningtable = 10 ; the number of the f-table imnn notnum indx = imnn * 2 + 1 ; values in table alternate between ; Midi note nums and frequencies icps table indx, ituningtable if imnn != 61 && imnn != 63 && imnn !=66 igoto skip icps = (ipedal > 0? icps - (icps * .9): icps + (icps * .1)) skip: iamp ampmidi 10000 ; now defining the envelopes inach = 0.1 ;the volume at the end iend = 0.0000000001 ;the time, the partial needs until it reaches its peak iein = 0.0030 ; the different decay times for each partial iabkling1 = 4.5*2 iabkling2 = 7.22*2 iabkling3 = 9.26*2 iabkling4 = 9.42*2 ;the volume at the beginning ianfang = 0.001 ;the volume of the reverberation iweiterkling = 0.00000000000001 ;the individual peaks ilautfaktor = 0.8 imax1 = 1 imax2 = ilautfaktor imax3= ilautfaktor^2 imax4 = ilautfaktor^3 ;and now: the individual envelopes kenv1 expsegr ianfang, iein, imax1, iabkling1, iend, inach, iweiterkling kenv2 expsegr ianfang, iein, imax2, iabkling2, iend, inach, iweiterkling kenv3 expsegr ianfang, iein, imax3, iabkling3, iend, inach, iweiterkling kenv4 expsegr ianfang, iein, imax4, iabkling4, iend, inach, iweiterkling ;the frequencies for the partials ifundamental = icps ipartialB =icps*2; partial 2 ipartialC = icps*3 ;partial 3 ipartialD = icps*4 ; partial 4 a1 oscil kenv1*iamp, ifundamental, 1 a2 oscil kenv2*iamp, ipartialB, 1 a3 oscil kenv3*iamp, ipartialC, 1 a4 oscil kenv4*iamp, ipartialD, 1 aton = a1+a2+a3+a4 ;velocity controlled tone control icutoff_oct veloc 6, 14 ;lowpass filter our audio signal alautfilter tone aton, cpsoct(icutoff_oct) ;k1 linenr 0.01, 0.03, 0.1, 0.01 outs alautfilter, alautfilter endin instr 2 gkpedal ctrl7 1, 64, 0, 1 endin </CsInstruments> ; the score <CsScore> f1 0 8193 10 1 f 10 0 256 -23 "17tet.cps" i1 0 3600 i2 0 3600 </CsScore> </CsoundSynthesizer> 2009/7/5 Art Hunkins <abhunkin@uncg.edu>
|
Date | 2009-07-06 20:14 |
From | Iain McCurdy |
Subject | [Csnd] RE: Re: Re: Re: Re: Re: Re: different pitches during a live-midi performance |
Hi Stefan massign 64, 2 You are assigning MIDI note events on channel 64 to instr 2; but MIDI channels only go from 1-16 (or 0-15). Bye, Iain Date: Mon, 6 Jul 2009 20:01:16 +0200 From: kontrapunktstefan@googlemail.com To: csound@lists.bath.ac.uk Subject: [Csnd] Re: Re: Re: Re: Re: Re: different pitches during a live-midi performance Dear Art, thanks for Your anwer. I guess I changed something in my file, but I dont know what. Now I get the following error message: INIT ERROR in instr 0: ? [illegal channel number? [m ?[m massign 64, 2 When I erase the line number 14 in the file, I can hear a sound, but I can't, off course, change any pitch. What I don't understand is: Is it right, that 64 should be a number of controller, not of a channel? If so, how can I tell csound this? Here is, again, the whole file, without german comments. Thank You very much, Stefan <CsoundSynthesizer> <CsOptions> -odevaudio -M1 -b400 </CsOptions> <CsInstruments> sr = 44100 kr = 2205 ksmps = 20 nchnls = 2 gkpedal init 0 ipch = 8.02 iequal = 12 massign 0, 1 ; assign all midi events to instr 1, massign 64, 2 pgmassign 0, 1 ; also all program changes instr 1 ipedal = i(gkpedal) ituningtable = 10 ; the number of the f-table imnn notnum indx = imnn * 2 + 1 ; values in table alternate between ; Midi note nums and frequencies icps table indx, ituningtable if imnn != 61 && imnn != 63 && imnn !=66 igoto skip icps = (ipedal > 0? icps - (icps * .9): icps + (icps * .1)) skip: iamp ampmidi 10000 ; now defining the envelopes inach = 0.1 ;the volume at the end iend = 0.0000000001 ;the time, the partial needs until it reaches its peak iein = 0.0030 ; the different decay times for each partial iabkling1 = 4.5*2 iabkling2 = 7.22*2 iabkling3 = 9.26*2 iabkling4 = 9.42*2 ;the volume at the beginning ianfang = 0.001 ;the volume of the reverberation iweiterkling = 0.00000000000001 ;the individual peaks ilautfaktor = 0.8 imax1 = 1 imax2 = ilautfaktor imax3= ilautfaktor^2 imax4 = ilautfaktor^3 ;and now: the individual envelopes kenv1 expsegr ianfang, iein, imax1, iabkling1, iend, inach, iweiterkling kenv2 expsegr ianfang, iein, imax2, iabkling2, iend, inach, iweiterkling kenv3 expsegr ianfang, iein, imax3, iabkling3, iend, inach, iweiterkling kenv4 expsegr ianfang, iein, imax4, iabkling4, iend, inach, iweiterkling ;the frequencies for the partials ifundamental = icps ipartialB =icps*2; partial 2 ipartialC = icps*3 ;partial 3 ipartialD = icps*4 ; partial 4 a1 oscil kenv1*iamp, ifundamental, 1 a2 oscil kenv2*iamp, ipartialB, 1 a3 oscil kenv3*iamp, ipartialC, 1 a4 oscil kenv4*iamp, ipartialD, 1 aton = a1+a2+a3+a4 ;velocity controlled tone control icutoff_oct veloc 6, 14 ;lowpass filter our audio signal alautfilter tone aton, cpsoct(icutoff_oct) ;k1 linenr 0.01, 0.03, 0.1, 0.01 outs alautfilter, alautfilter endin instr 2 gkpedal ctrl7 1, 64, 0, 1 endin </CsInstruments> ; the score <CsScore> f1 0 8193 10 1 f 10 0 256 -23 "17tet.cps" i1 0 3600 i2 0 3600 </CsScore> </CsoundSynthesizer> 2009/7/5 Art Hunkins <abhunkin@uncg.edu>
Insert movie times and more without leaving Hotmail®. See how. |