Csound Csound-dev Csound-tekno Search About

Re: [CUD] oss/csound full duplex

Date1999-07-01 23:08
FromSteve Kersten
SubjectRe: [CUD] oss/csound full duplex
Dave Phillips wrote:

> If I'm correct about its operation, I hold down a MIDI key, speak into
> my mic, and altering a mod wheel will do a frequency sweep. Right ?
> Unfortunately my testing keyboard is a Casio CZ101 with only a
> pitch-bend wheel (no mod). I tried using the 'pchbend' opcode but it
> didn't seem to do anything. I'm probably missing something and will keep
> hacking.

Right. Try twiddling the -b and -B options. I believe the following
worked for me:

csound --sked -odevaudio -idevaudio -b-1 -B128 -M/dev/midi1
full-midi.orc full-midi.sco

-b-1 takes the buffer size from ksmps (I think, correct me if I'm
wrong). Also try setting sr=kr, since this also had an effect.

I had to try several times, at first only hearing a loud click from the
speakers. And it was during combined audio/midi I encountered the
XServer crash. So be careful, at least with your speakers ;-)

> works great. I've got full-duplex from Csound but not without
> intolerable latency.

How slow is it? I tried with a synth signal sent through Csound
(resonant filters at last!) and experienced almost no delay between key
pressure and actual sounding.

> Btw, I'm using the OSS/Linux drivers for a system including an MQX32M
> MIDI interface, a SoundBlaster AWE64, and a SoundBlaster PCI128. I
> tested the examples only on the PCI128 so far.

Please also try to select two different devices in getlongopts.c, since
I only have one soundcard.

[steve]

-- 

contact     steve-k@gmx.net
visit       http://w3.to/K-Hornz

Date1999-07-02 10:25
FromSteve Kersten
SubjectRe: [CUD] oss/csound full duplex
clarification of my last message:

> How slow is it? I tried with a synth signal sent through Csound
> (resonant filters at last!) and experienced almost no delay between key
> pressure and actual sounding.

Without midi, that is, just pure audio I/O.

contact     steve-k@gmx.net  		       
            kerstens@cs.tu-berlin.de          
 
visit       http://cs.tu-berlin.de/~kerstens