Csound Csound-dev Csound-tekno Search About

Re: RT audio in

Date1997-06-02 03:02
FromMatt Loper
SubjectRe: RT audio in
Dave Phillips wrote:
> 
> > > Are there any plans for a soundin type module that would allow RT audio
> > > in (not from a file)?  This, in conjunction with RT audio out would
> > > facilitate Csound as a realtime signal processor.
> >
> > in, ins, inq

but what tricks are involved in getting a full-duplex, rt
signal-processor--is there a short piece of example-code anywhere? For
example, when I run csound as follows,

csound -i devaudio -o devaudio soundin.orc soundin.sco
 
I get: error while reading DSP device for audio

And when I run it without the '-o audio', data in the dispfft window is
clearly dependent upon the amplitude of the source, but is shaped
improperly, like a bowl with peaks at the extreme left and right.

Here's my main instrument, which should at least illustrate my
intentions (not much of an fx box yet):
intr 1
	ainput in
	ar=ainput
	ag=ar
	dispfft ainput, .05, 1024
outs	ar, ag
	endin

If it matters, I have a redhat linux box with a gus pnp & the ultrasound
project drivers.

Thanks!

Matt Loper
Matthew@loper.org                    
http://www.loper.org