Hello,
I decided to deepen the study of Csound with CsoundQt.
I just spent three days on the linseg opcode to feed the diskin opcode to read the fox.wav sample.
I have succeeded 90% in mastering the linseg opcode but I can not control the reading time in reverse of the fox.wav sample with the minus sign.Attached is the diskin_io3.csd file I created. If anyone knows the trick, I’m all for it.
Thank you
<CsoundSynthesizer>
<CsOptions>
; Select audio/midi flags here according to platform
;-odac ;;;RT audio out
;-iadc ;;;uncomment -iadc if RT audio input is needed too
; For Non-realtime ouput leave only the line below:
-o io_io3.wav -W ;;; for file output any platform
</CsOptions>
<CsInstruments>
sr = 44100
ksmps = 32
nchnls = 1
0dbfs = 1
instr 1
ktrans linseg 1, 2.757, 1, 0, 1/2, (2.757*2), 1/2, 0, 2, (2.757/2), 2, 0, 1, 2.757, 1
a1 diskin "fox.wav", ktrans, 0, 1, 0, 32
outs a1, a1
endin
</CsInstruments>
<CsScore>
i 1 0 12.4065
e
</CsScore>
</CsoundSynthesizer>