| This orc and sco should produce a stereo global reverb in realtime to a
stereo soundsource..
However, there is a very annoying "flanging" effect in the output.
I use Maldonado's RTsound 1.9 with Win95, SB16ASP card and Windows'
CDplayer as soundsource
David.
The orchestra :
---------" test.orc "-----------------------------cut this
line-----------------------------------------------------
sr = 32000 ;samplerate
kr = 200 ;control samplerate
ksmps = 160 ;sr / kr
nchnls = 2 ;1=mono, 2=stereo
galreverb init 0
garreverb init 0
instr 12
ilfxsend = p5
irfxsend = p6
alsignal, arsignal ins ; stereo signal from audioinput
galreverb = galreverb + (alsignal*ilfxsend)
garreverb = garreverb + (arsignal*irfxsend)
albalance balance galreverb,alsignal/2
arbalance balance garreverb,arsignal/2
galreverb = albalance
garreverb = arbalance
endin
instr 99
alsignal reverb2 galreverb,p5,0
arsignal reverb2 garreverb,p5,0
outs alsignal,arsignal
gareverb = 0
endin
----------------------------------------------cut this
line-----------------------------------------------------------
The Score:
----------" test.sco "--------------------------cut this
line-----------------------------------------------------------
; P1 P2 P3 P4 P5
; tablenum starttime size GEN strenght
f 1 0 256 10 1
; F3:= SAMPLEDATA (GEN 01)
; tablenum start size GEN inputfile skip format extra
zero
;f 3 0 131072 1 "sample.aif" 0 0 0
; F4:= GRAIN AMPLITUDE ENVELOPE (GEN 20)
; tablenum start size GEN window
; (5= 4-term Blackmann-Harris)
;f 4 0 1024 20 5
; start duration amp revtime
i 99 0 80 0 10
; instrnum starttime duration amp fxsend left fxsend right
; P1 P2 P3 P4 p5 p6
i 12 0 60 0 0.5 0.8
e
----------------------------------------------cut this
line-----------------------------------------------------------
The batchfile that calls RTsound to run in realtime properly on my pentium
166 :
using sr=32000 and kr=200
------"process.bat"-----------------------------cut this
line-----------------------------------------------------------
rem -W => output is a WAV file
rem -d, -m0, -O => no display
rem -i without args => realtime wave input
rem -p => # of wave buffers
rem -b => wave buffer length in bytes
rem -q => wave device
rem -e => allows any samplerate
csound -d -m0 -O -p12 -b1024 -q -e -i %1.orc %1.sco
----------------------------------------------cut this
line-----------------------------------------------------------
|