| > Can anyone direct me to an example instrument for use with RT Audio
> in,
> as i've been having problems making it work.Im using a Pentium 120,
> running Windows95, can anyone with similar setup give me any advice on
>
> how to get decent results.
Here is a simple echo instrument that implements AUDIO IN. It works fine
with RTsound 1.9 and a couple of soundblaster16 (with RTsound you must
call csound.exe with -i flag without following data):
;**** ---------DELAY.ORC-----------
;****
;**** AUDIO IN TEST file
;****
;**** if you have a full duplex soundblaster try to run this example
with the
;**** following flags :
;****
;**** csound.exe -e -q -p12 -b200 -i delay.orc delay.sco
;****
;****
;**** I had found empirically that these are the minimal buffer length
for
;**** the relative sampling rates when using WAVE IN in parallel with
WAVE OUT
;**** with a soundblaster 16:
;****
;**** sampling rate | '-p' flag setting | '-q' flag setting
;**** --------------|-------------------|------------------
;**** 44100 | 12 | 525
;**** 40000 | 12 | 250
;**** 32000 | 12 | 200
;**** 22050 | 12 | 500
;**** 20000 | 12 | 400
;**** 16000 | 10 | 100
;**** 11025 | 12 | 150
;**** 10000 | 10 | 150
;****
;**** Maybe there are better combinations, but I didn't try all.
;**** If you find better results, please inform me!
;****
;**** Warning! Sound quality is deteriorated when using SB16 with in
full-duplex
;**** mode because the input is forced to operate at 8 bit resolution.
;**** To eliminate this problem I have plugged two soundblasters in my
computer,
;**** one for the IN and the other for the OUT.
;****
;****
;****
;**** If you have another AUDIO card try to change sr and buffer length
for better
;**** results (see readmeXX.txt)
sr = 441000
kr = 441
ksmps = 100
nchnls = 1
instr 1
a1 in
a2 init 0
a2 delay a1+a2*.7,.35
out a1+a2
endin
instr 2 ;**** dummy instr for printing max amp each 2 secs
endin
;------------------------------- DELAY.SCO --------------------
i1 0 3600 ;*** allows one hour of realtime performance
i2 0 2 ;**** dummy instr for printing maxamp each two seconds
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
i. +
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
http://www.geocities.com/SiliconValley/Way/7041/home2.htm
|