Csound Csound-dev Csound-tekno Search About

Re: RT audio in

Date1997-06-03 01:10
FromJohn Boyd
SubjectRe: RT audio in
This is intriguing..

Matt Loper wrote:
> 
> 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

Hmmm...  I always use "-odac" for real-time audio output in Linux.  The
-odevaudio has never worked correctly for me.  

> 
> 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.

I remember that devaudio would work but it was very noisy...

> 
> 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.
> 

I don't recall, but was the gus pnp truly full duplex?  I ended up
buying
the Audiotrix Pro from Mediatrix just for that reason.  My digital audio 
software for Win95 suggested that I buy either the Card-D, Audiotrix
Pro,
or the Turtle Beach Multisound in order to get full duplex.  After I
found
Linux drivers for the Audiotrix board (using OSS from 4front tech), the
decision 
was easy..

I'd be curious to find out where all this goes..  This could lead to
some
powerful csound capabilities!

jsb

_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
     John Boyd (jboyd@protozoa.com)
Better to keep your mouth closed and thought a 
fool, than to leave it open and remove all doubt.  
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-