Newbie question re cpspch
Date | 2005-10-24 20:14 |
From | "Barry Griffin (sent by Nabble.com)" |
Subject | Newbie question re cpspch |
Hi again,
I wish to bend a note down one semitone using - kf line 0,p3,-0.01 asig oscili ampdb(p4),cpspch(p5+kf),1 The problem though is that the note 8.0 (8.0=p5) will become 7.99 rather than 7.11. Is there any way of handling this without having to use cpsoct? thanks very much for your help, Barry. Sent from the Csound - General forum at Nabble.com. |
Date | 2005-10-25 09:51 |
From | Istvan Varga |
Subject | Re: Newbie question re cpspch |
Aidan Collins wrote: > ipitch = cpspch(p5) > ibend = p6/12 ;in number of semitones > > imult pow 2, ibend > ipitchb = ipitch*imult You can also use the semitone function for this: ipitch = cpspch(p5) ipitchb = ipitch * semitone(p6) > kf linseg ipitch, p3*0.8, ipitchb An exponential envelope is better suited for pitch values: kf expseg ipitch, p3*0.8, ipitchb, p3*0.2, ipitchb |