| I try to pitchdown a loscil unit with a line opcode but it sweeps back
pitching up !!
I don't understand this because i clearly set the idur of the line to p3
and not p3/2 or something...
Please explain me this fellow Csounders...
orc & sco are included below and the needed soundfile was 710kb, a little
too much...so create
a soundfile yourself of 363791 sampleframes at 16bit at 44100 Hz.
David.
*** ORC *********************
*******************************
sr = 44100
kr = 441
ksmps = 100
nchnls = 1
;---------------------------------------------------------------------------
-------
;
; loscil test instrument.
;
;---------------------------------------------------------------------------
-------
instr 1
khold oscil 50,0.3,2
kvib randh 1,abs(khold)
kdown line 1,p3,-5
; loscil xamp, kcps, ifn,[ibasefreq,][imod1, ibeg, iend]
a1 loscil 10000, 1+kvib, 1, 1 , 1, 0, 363790
a2 loscil 10000, kdown, 1, 1 , 1, 0, 363790
out a1+a2
endin
*** SCO *********************
*******************************
;GEN 01 : soundfile input
;f# time size 1 filcod skiptime format channel
f1 0 0 1 "speak3.aif" 0 0 0
f2 0 256 10 1
i1 0 30
e
|