| Hi,
Pablo Sotuyo Blanco and Robin Whittle have been discussing
binaural opcode, but I was under the impression that HRTF opcode
based on MIT's compact data is included in the latest postings of
CSound, although it does not work on the PC platform yet. Am I wrong
in this ?
Pete Kearton
*************************************************
Peter Kearton,
University of Surrey Psychology Department,
Guildford,
United Kingdom.
GU2 5XH
Tel. UK (01483) 300800 Ext.3346
e-mail - P.kearton@surrey.ac.uk
*************************************************
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17085;
17 Apr 97 14:23 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa27187;
17 Apr 97 14:22 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 14:22:54 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (NAA00614);
Thu, 17 Apr 1997 13:54:55 +0100
Received: from exub by maths.exeter.ac.uk; Thu, 17 Apr 97 13:47:11 +0100
Received: from agora.stm.it [194.20.43.1] by exub via ESMTP (NAA12175);
Thu, 17 Apr 1997 13:47:07 +0100
Received: from x (ppp03_10.stm.it [194.20.251.74])
by agora.stm.it (8.7.5/8.6.6) with SMTP id OAA01095;
Thu, 17 Apr 1997 14:44:51 +0200 (ITADST)
Message-Id: <33561ACB.3356@agora.stm.it>
Date: Thu, 17 Apr 1997 14:42:51 +0200
From: Gabriel Maldonado
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: "Dr. Andreas Mahling"
Cc: Csound Mailing List
Subject: Re: MIDI out opcodes in Realtime Csound
References: <33548702.CE8@arsnova.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
A member of this list wrote:
> Concerning i would prefer two versions: one with MIDI-IN and
> MIDI-OUT opcodes only (and accurate timing) and one that would contain
> the DA-Ugens too.
I finished to implement MIDI OUT in csound: only one version with a new
flag that can optionally disable DAC output for best timing precision.
You can run two istances of Csound at the same time, one which handles
MIDI only and the other with midi in and DAC operations enabled. It is
possible to send the output of the first instance to the input of the
second by means of a MIDI router such as "Hubi's midiloopback".
> Generally, a MIDI-OUT extension will be very interesting for me ....
> Although MIDI-OUT-Csound would lack a graphical user interface and has almost no
> debugging facilities i think the MIDI-OUT option could be a good
> starting point for private experimentation.
I will upload the new version (1.7) within one or two weeks to the
internet.
Bye and happy csounding.
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17112;
17 Apr 97 14:24 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa27214;
17 Apr 97 14:24 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 14:24:16 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (NAA00529);
Thu, 17 Apr 1997 13:54:04 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
Thu, 17 Apr 97 13:46:23 +0100
Received: from agora.stm.it [194.20.43.1] by hermes via ESMTP (NAA00510);
Thu, 17 Apr 1997 13:53:41 +0100
Received: from x (ppp03_10.stm.it [194.20.251.74])
by agora.stm.it (8.7.5/8.6.6) with SMTP id OAA01112;
Thu, 17 Apr 1997 14:44:56 +0200 (ITADST)
Message-Id: <33561AD2.7211@agora.stm.it>
Date: Thu, 17 Apr 1997 14:42:58 +0200
From: Gabriel Maldonado
X-Mailer: Mozilla 3.01 (Win95; I)
Mime-Version: 1.0
To: Greg Sullivan
Cc: Csound Mailing List
Subject: Re: Win95 realtime Csound
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Last Thu, 17 Apr at 17:08:55
Greg Sullivan wrote:
> - What is the typical polyphony for wavetable synthesis, on, say, a Pentium
> 133, outputting at 44.1kHz, when it is used with real time MIDI input
> events to drive it? (just a rough idea will do)
If for 'wavetable synthesis' you mean simple sample reading and
amplitude envelope without filters, polyphony depends by cache size
installed to your computer. With small samples, a polyphony of up to 50
voices (or more if no interpolation is used) should be achieved if
buffer and cache are big enaugh (cache size must be greater than sample
size). Ideally a computer should have only cache and no standard ram for
the best performance with realtime Csound. If not, I suppose EDO ram
should help a bit.
> - Is there a noticeable delay between a MIDI input event (e.g note-on)
> to the resultant output?
Yes, there is
> Can this delay be reduced by reducing
> the output buffer size?
Yes, the delay can be reduced a lot if you use rounded sr and kr(i.e.
sr=40000hz and kr=400, sr=32000hz and kr=320, sr=10000hz and kr=100)
setting the -e flag with soundcard supporting non standard sample rates.
In my p133 computer I reduced the delay to less than 1/30 of second with
sr=40000hz.
> Is the polyphony reduced if the buffer
> size is reduced (within reason)?
Yes, a bit.
> - Please confirm that it uses the generic Windows 95 WAV output
> drivers - i.e, that it doesn't use a more direct method to
> output to the soundcard.
Yes this version uses standard win95 card drivers.
Bye and...happy Csounding
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17828;
17 Apr 97 16:07 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29065;
17 Apr 97 16:07 BST
Received: from wally.uncg.edu by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 16:06:59 +0100
Received: from ds370510.uncg.edu (ds370510.uncg.edu [152.13.231.24])
by wally.uncg.edu (8.8.3/8.7.3) with SMTP id LAA14453;
Thu, 17 Apr 1997 11:04:20 -0400 (EDT)
Message-ID: <33566890.5832@hamlet.uncg.edu>
Date: Thu, 17 Apr 1997 11:14:40 -0700
From: Art Hunkins
Reply-To: abhunkin@hamlet.uncg.edu
Organization: Univ. of N. C. at Greensboro
X-Mailer: Mozilla 3.0 (Win16; I)
MIME-Version: 1.0
To: csound@noether.ex.AC.UK, jpff@maths.bath.ac.uk
Subject: Basic Questions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello John and other Csounders--
I'm relatively new to the list and have recently been brushing up my
Csound materials, skills, etc. I've also been trying to get Csound up
and running on several Electronic Music Studio 286 clones (real oldies).
I have the following questions:
1) John, you told me recently that the .wav filelength error ("off by
4") had been fixed (in the .wav header info). Earlier I had found the
problem only in the 286 with coprocessor version (not higher). In
working with this same version (only *updated* from your site) a few
days ago, I find the problem still exists. (I know it is the same
problem because I wrote a short C routine to correct the error, and the
same routine still fixes the problem!) Can you shed some light on this
situation? (The computer involved is a Zenith 286 with math coprocessor;
also see further below.)
2) The same machine and software combo, when Csound starts up, gives a
host of "sread: requests more memory" messages (20 or more). This is
prior to f-table generation. I think there is about 4Meg of extended
memory in the machine, though I am not sure of the configuration--it may
not be all useable as it's on an expansion card. In any case the program
continues executing normally, though seemingly at a snail's pace (of
course I've become accustomed to *much* faster machines).
3) Our studio also has a couple of Tandy 1000(ex?)'s with coprocessors,
on which I'm attempting to run the same latest 286 (with coprocessor)
version of Csound. The first problem is that Csound doesn't even really
get started. Even before the startup *version* display I get the message
(something like) "can't find output device AUX." And stop. What does
this mean and what is the solution?
4) Believe it or not the 286 Tandy 1000's (they were a "gift," believe
me) have only 8-bit slots, so we are using 8-bit original Sound Blaster
cards. So we need 8-bit WAV output from Csound. The 8-bit needs to be
*unsigned* too. I noticed that a recent upgrade to Csound added 8-bit
unsigned output, but the necessary command line flag is not indicated in
the documentation. What is the new flag, and is it incorporated into the
286 with coprocessor version?
Thanks in advance to whoever can help with these questions. And John, I
appreciate very much being able to talk with you at SEAMUS and all the
help and support *you* have given me and many other composer Csound
enthusiasts. Your work is invaluable. Your extensive involvement in the
major Csound download package from "KeyBoard" (www.keyboardmag.com) was
also noticed and highly appreciated. Best regards.
Art Hunkins
UNCG Electronic Music Studios
(Greensboro, NC, USA)
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17828;
17 Apr 97 16:07 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29065;
17 Apr 97 16:07 BST
Received: from wally.uncg.edu by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 16:06:59 +0100
Received: from ds370510.uncg.edu (ds370510.uncg.edu [152.13.231.24])
by wally.uncg.edu (8.8.3/8.7.3) with SMTP id LAA14453;
Thu, 17 Apr 1997 11:04:20 -0400 (EDT)
Message-ID: <33566890.5832@hamlet.uncg.edu>
Date: Thu, 17 Apr 1997 11:14:40 -0700
From: Art Hunkins
Reply-To: abhunkin@hamlet.uncg.edu
Organization: Univ. of N. C. at Greensboro
X-Mailer: Mozilla 3.0 (Win16; I)
MIME-Version: 1.0
To: csound@noether.ex.AC.UK, jpff@maths.bath.ac.uk
Subject: Basic Questions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello John and other Csounders--
I'm relatively new to the list and have recently been brushing up my
Csound materials, skills, etc. I've also been trying to get Csound up
and running on several Electronic Music Studio 286 clones (real oldies).
I have the following questions:
1) John, you told me recently that the .wav filelength error ("off by
4") had been fixed (in the .wav header info). Earlier I had found the
problem only in the 286 with coprocessor version (not higher). In
working with this same version (only *updated* from your site) a few
days ago, I find the problem still exists. (I know it is the same
problem because I wrote a short C routine to correct the error, and the
same routine still fixes the problem!) Can you shed some light on this
situation? (The computer involved is a Zenith 286 with math coprocessor;
also see further below.)
2) The same machine and software combo, when Csound starts up, gives a
host of "sread: requests more memory" messages (20 or more). This is
prior to f-table generation. I think there is about 4Meg of extended
memory in the machine, though I am not sure of the configuration--it may
not be all useable as it's on an expansion card. In any case the program
continues executing normally, though seemingly at a snail's pace (of
course I've become accustomed to *much* faster machines).
3) Our studio also has a couple of Tandy 1000(ex?)'s with coprocessors,
on which I'm attempting to run the same latest 286 (with coprocessor)
version of Csound. The first problem is that Csound doesn't even really
get started. Even before the startup *version* display I get the message
(something like) "can't find output device AUX." And stop. What does
this mean and what is the solution?
4) Believe it or not the 286 Tandy 1000's (they were a "gift," believe
me) have only 8-bit slots, so we are using 8-bit original Sound Blaster
cards. So we need 8-bit WAV output from Csound. The 8-bit needs to be
*unsigned* too. I noticed that a recent upgrade to Csound added 8-bit
unsigned output, but the necessary command line flag is not indicated in
the documentation. What is the new flag, and is it incorporated into the
286 with coprocessor version?
Thanks in advance to whoever can help with these questions. And John, I
appreciate very much being able to talk with you at SEAMUS and all the
help and support *you* have given me and many other composer Csound
enthusiasts. Your work is invaluable. Your extensive involvement in the
major Csound download package from "KeyBoard" (www.keyboardmag.com) was
also noticed and highly appreciated. Best regards.
Art Hunkins
UNCG Electronic Music Studios
(Greensboro, NC, USA)
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17828;
17 Apr 97 16:07 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29065;
17 Apr 97 16:07 BST
Received: from wally.uncg.edu by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 16:06:59 +0100
Received: from ds370510.uncg.edu (ds370510.uncg.edu [152.13.231.24])
by wally.uncg.edu (8.8.3/8.7.3) with SMTP id LAA14453;
Thu, 17 Apr 1997 11:04:20 -0400 (EDT)
Message-ID: <33566890.5832@hamlet.uncg.edu>
Date: Thu, 17 Apr 1997 11:14:40 -0700
From: Art Hunkins
Reply-To: abhunkin@hamlet.uncg.edu
Organization: Univ. of N. C. at Greensboro
X-Mailer: Mozilla 3.0 (Win16; I)
MIME-Version: 1.0
To: csound@noether.ex.AC.UK, jpff@maths.bath.ac.uk
Subject: Basic Questions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hello John and other Csounders--
I'm relatively new to the list and have recently been brushing up my
Csound materials, skills, etc. I've also been trying to get Csound up
and running on several Electronic Music Studio 286 clones (real oldies).
I have the following questions:
1) John, you told me recently that the .wav filelength error ("off by
4") had been fixed (in the .wav header info). Earlier I had found the
problem only in the 286 with coprocessor version (not higher). In
working with this same version (only *updated* from your site) a few
days ago, I find the problem still exists. (I know it is the same
problem because I wrote a short C routine to correct the error, and the
same routine still fixes the problem!) Can you shed some light on this
situation? (The computer involved is a Zenith 286 with math coprocessor;
also see further below.)
2) The same machine and software combo, when Csound starts up, gives a
host of "sread: requests more memory" messages (20 or more). This is
prior to f-table generation. I think there is about 4Meg of extended
memory in the machine, though I am not sure of the configuration--it may
not be all useable as it's on an expansion card. In any case the program
continues executing normally, though seemingly at a snail's pace (of
course I've become accustomed to *much* faster machines).
3) Our studio also has a couple of Tandy 1000(ex?)'s with coprocessors,
on which I'm attempting to run the same latest 286 (with coprocessor)
version of Csound. The first problem is that Csound doesn't even really
get started. Even before the startup *version* display I get the message
(something like) "can't find output device AUX." And stop. What does
this mean and what is the solution?
4) Believe it or not the 286 Tandy 1000's (they were a "gift," believe
me) have only 8-bit slots, so we are using 8-bit original Sound Blaster
cards. So we need 8-bit WAV output from Csound. The 8-bit needs to be
*unsigned* too. I noticed that a recent upgrade to Csound added 8-bit
unsigned output, but the necessary command line flag is not indicated in
the documentation. What is the new flag, and is it incorporated into the
286 with coprocessor version?
Thanks in advance to whoever can help with these questions. And John, I
appreciate very much being able to talk with you at SEAMUS and all the
help and support *you* have given me and many other composer Csound
enthusiasts. Your work is invaluable. Your extensive involvement in the
major Csound download package from "KeyBoard" (www.keyboardmag.com) was
also noticed and highly appreciated. Best regards.
Art Hunkins
UNCG Electronic Music Studios
(Greensboro, NC, USA)
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa17984;
17 Apr 97 16:35 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29383;
17 Apr 97 16:35 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 16:34:55 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (QAA10523);
Thu, 17 Apr 1997 16:06:36 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
Thu, 17 Apr 97 16:06:29 +0100
Received: from wally.uncg.edu [152.13.2.1] by hermes via ESMTP (QAA10514);
Thu, 17 Apr 1997 16:06:24 +0100
Received: from ds370510.uncg.edu (ds370510.uncg.edu [152.13.231.24])
by wally.uncg.edu (8.8.3/8.7.3) with SMTP id LAA14453;
Thu, 17 Apr 1997 11:04:20 -0400 (EDT)
Message-Id: <33566890.5832@hamlet.uncg.edu>
Date: Thu, 17 Apr 1997 11:14:40 -0700
From: Art Hunkins
Reply-To: abhunkin@hamlet.uncg.edu
Organization: Univ. of N. C. at Greensboro
X-Mailer: Mozilla 3.0 (Win16; I)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk, jpff@maths.bath.ac.uk
Subject: Basic Questions
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hello John and other Csounders--
I'm relatively new to the list and have recently been brushing up my
Csound materials, skills, etc. I've also been trying to get Csound up
and running on several Electronic Music Studio 286 clones (real oldies).
I have the following questions:
1) John, you told me recently that the .wav filelength error ("off by
4") had been fixed (in the .wav header info). Earlier I had found the
problem only in the 286 with coprocessor version (not higher). In
working with this same version (only *updated* from your site) a few
days ago, I find the problem still exists. (I know it is the same
problem because I wrote a short C routine to correct the error, and the
same routine still fixes the problem!) Can you shed some light on this
situation? (The computer involved is a Zenith 286 with math coprocessor;
also see further below.)
2) The same machine and software combo, when Csound starts up, gives a
host of "sread: requests more memory" messages (20 or more). This is
prior to f-table generation. I think there is about 4Meg of extended
memory in the machine, though I am not sure of the configuration--it may
not be all useable as it's on an expansion card. In any case the program
continues executing normally, though seemingly at a snail's pace (of
course I've become accustomed to *much* faster machines).
3) Our studio also has a couple of Tandy 1000(ex?)'s with coprocessors,
on which I'm attempting to run the same latest 286 (with coprocessor)
version of Csound. The first problem is that Csound doesn't even really
get started. Even before the startup *version* display I get the message
(something like) "can't find output device AUX." And stop. What does
this mean and what is the solution?
4) Believe it or not the 286 Tandy 1000's (they were a "gift," believe
me) have only 8-bit slots, so we are using 8-bit original Sound Blaster
cards. So we need 8-bit WAV output from Csound. The 8-bit needs to be
*unsigned* too. I noticed that a recent upgrade to Csound added 8-bit
unsigned output, but the necessary command line flag is not indicated in
the documentation. What is the new flag, and is it incorporated into the
286 with coprocessor version?
Thanks in advance to whoever can help with these questions. And John, I
appreciate very much being able to talk with you at SEAMUS and all the
help and support *you* have given me and many other composer Csound
enthusiasts. Your work is invaluable. Your extensive involvement in the
major Csound download package from "KeyBoard" (www.keyboardmag.com) was
also noticed and highly appreciated. Best regards.
Art Hunkins
UNCG Electronic Music Studios
(Greensboro, NC, USA)
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18258;
17 Apr 97 17:25 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29858;
17 Apr 97 17:25 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 17:24:57 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (RAA14003);
Thu, 17 Apr 1997 17:00:34 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
Thu, 17 Apr 97 17:00:23 +0100
Received: from lt@westnet.com [206.24.6.2] by hermes via ESMTP (QAA13935);
Thu, 17 Apr 1997 16:59:59 +0100
Received: from localhost (lt@localhost) by westnet.com (8.8.5/8.7.3) with SMTP
id LAA08140; Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
Date: Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
From: Lawrence Troxler
To: Gabriel Maldonado
Cc: Greg Sullivan ,
Csound Mailing List
Subject: realtime Csound - determining cache needs, etc.
In-Reply-To: <33561AD2.7211@agora.stm.it>
Message-Id:
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hi Gabriel. I've been trying to get realtime-Csound to work
satisfactorily as well, not on Win95, but on Linux.
Many of the problems are the same.
On Thu, 17 Apr 1997, Gabriel Maldonado wrote:
> With small samples, a polyphony of up to 50
> voices (or more if no interpolation is used) should be achieved if
> buffer and cache are big enaugh (cache size must be greater than sample
> size).
I think that that's a good approximation if the sample size is much larger
than ksamps. You still would like to cache all the other ram usage - the
audio rate var arrays, etc. And I think this is true if you're not also
doing any other disk I/O. I was hoping to set something up where I can
play one voice in real-time while mixing it with a soundfile of previously
recorded voices, and also saving the real-time audio to disk for future
"overdbubs". Sort-of a primitive multi-track deck using Csound. Does
anyone have any idea how to minimize cache needs on Linux in this
scenario? I suppose that it would be a difficult situation.
Also, as far as cache size goes, I wonder, if in cases that do not involve
large wavetables read from disk, if using smaller ksamps
might significantly help cache needs, due to the smaller audio arrays.
Oh wait, (thinking as I type), what about code accesses? These get cached
too, don't they? How does this figure in?
> Yes, the delay can be reduced a lot if you use rounded sr and kr(i.e.
> sr=40000hz and kr=400, sr=32000hz and kr=320, sr=10000hz and kr=100)
> setting the -e flag with soundcard supporting non standard sample rates.
> In my p133 computer I reduced the delay to less than 1/30 of second with
> sr=40000hz.
>
What's your opinion of the "feel" of the 33ms delay? I guess it wouldn't
feel like a delay, but still would give a "sluggish" feeling?
And I'm curious to know why "rounded" kr and sr would help! Is this
something to do with the Win95 driver? What?
> > Is the polyphony reduced if the buffer
> > size is reduced (within reason)?
>
> Yes, a bit.
>
Is this due to the instrument setup time causing dropouts? Some tests on
my P100 Linux box with strace showed that simple instruments could take 10
or 20 ms to get setup, but I think that this is only for new allocations.
So I've been pre-allocation the voices by firing of as many as I need
simultaneously, at time 0 in the score, at zero volume.
In general, Gabriel, and anyone else, what is your experience with
dropouts? Linux appears to have some problems with scheduling somewhere,
so that other tasks are stealing too much time from Csound. I'm actually
considering implementing something in rtlinux instead.
Larry
-- Larry Troxler -- lt@westnet.com -- Patterson, NY USA --
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18258;
17 Apr 97 17:25 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29858;
17 Apr 97 17:25 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 17:24:57 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (RAA14003);
Thu, 17 Apr 1997 17:00:34 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
Thu, 17 Apr 97 17:00:23 +0100
Received: from lt@westnet.com [206.24.6.2] by hermes via ESMTP (QAA13935);
Thu, 17 Apr 1997 16:59:59 +0100
Received: from localhost (lt@localhost) by westnet.com (8.8.5/8.7.3) with SMTP
id LAA08140; Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
Date: Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
From: Lawrence Troxler
To: Gabriel Maldonado
Cc: Greg Sullivan ,
Csound Mailing List
Subject: realtime Csound - determining cache needs, etc.
In-Reply-To: <33561AD2.7211@agora.stm.it>
Message-Id:
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hi Gabriel. I've been trying to get realtime-Csound to work
satisfactorily as well, not on Win95, but on Linux.
Many of the problems are the same.
On Thu, 17 Apr 1997, Gabriel Maldonado wrote:
> With small samples, a polyphony of up to 50
> voices (or more if no interpolation is used) should be achieved if
> buffer and cache are big enaugh (cache size must be greater than sample
> size).
I think that that's a good approximation if the sample size is much larger
than ksamps. You still would like to cache all the other ram usage - the
audio rate var arrays, etc. And I think this is true if you're not also
doing any other disk I/O. I was hoping to set something up where I can
play one voice in real-time while mixing it with a soundfile of previously
recorded voices, and also saving the real-time audio to disk for future
"overdbubs". Sort-of a primitive multi-track deck using Csound. Does
anyone have any idea how to minimize cache needs on Linux in this
scenario? I suppose that it would be a difficult situation.
Also, as far as cache size goes, I wonder, if in cases that do not involve
large wavetables read from disk, if using smaller ksamps
might significantly help cache needs, due to the smaller audio arrays.
Oh wait, (thinking as I type), what about code accesses? These get cached
too, don't they? How does this figure in?
> Yes, the delay can be reduced a lot if you use rounded sr and kr(i.e.
> sr=40000hz and kr=400, sr=32000hz and kr=320, sr=10000hz and kr=100)
> setting the -e flag with soundcard supporting non standard sample rates.
> In my p133 computer I reduced the delay to less than 1/30 of second with
> sr=40000hz.
>
What's your opinion of the "feel" of the 33ms delay? I guess it wouldn't
feel like a delay, but still would give a "sluggish" feeling?
And I'm curious to know why "rounded" kr and sr would help! Is this
something to do with the Win95 driver? What?
> > Is the polyphony reduced if the buffer
> > size is reduced (within reason)?
>
> Yes, a bit.
>
Is this due to the instrument setup time causing dropouts? Some tests on
my P100 Linux box with strace showed that simple instruments could take 10
or 20 ms to get setup, but I think that this is only for new allocations.
So I've been pre-allocation the voices by firing of as many as I need
simultaneously, at time 0 in the score, at zero volume.
In general, Gabriel, and anyone else, what is your experience with
dropouts? Linux appears to have some problems with scheduling somewhere,
so that other tasks are stealing too much time from Csound. I'm actually
considering implementing something in rtlinux instead.
Larry
-- Larry Troxler -- lt@westnet.com -- Patterson, NY USA --
Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa18258;
17 Apr 97 17:25 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa29858;
17 Apr 97 17:25 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
Thu, 17 Apr 1997 17:24:57 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (RAA14003);
Thu, 17 Apr 1997 17:00:34 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
Thu, 17 Apr 97 17:00:23 +0100
Received: from lt@westnet.com [206.24.6.2] by hermes via ESMTP (QAA13935);
Thu, 17 Apr 1997 16:59:59 +0100
Received: from localhost (lt@localhost) by westnet.com (8.8.5/8.7.3) with SMTP
id LAA08140; Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
Date: Thu, 17 Apr 1997 11:59:21 -0400 (EDT)
From: Lawrence Troxler
To: Gabriel Maldonado
Cc: Greg Sullivan ,
Csound Mailing List
Subject: realtime Csound - determining cache needs, etc.
In-Reply-To: <33561AD2.7211@agora.stm.it>
Message-Id:
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hi Gabriel. I've been trying to get realtime-Csound to work
satisfactorily as well, not on Win95, but on Linux.
Many of the problems are the same.
On Thu, 17 Apr 1997, Gabriel Maldonado wrote:
> With small samples, a polyphony of up to 50
> voices (or more if no interpolation is used) should be achieved if
> buffer and cache are big enaugh (cache size must be greater than sample
> size).
I think that that's a good approximation if the sample size is much larger
than ksamps. You still would like to cache all the other ram usage - the
audio rate var arrays, etc. And I think this is true if you're not also
doing any other disk I/O. I was hoping to set something up where I can
play one voice in real-time while mixing it with a soundfile of previously
recorded voices, and also saving the real-time audio to disk for future
"overdbubs". Sort-of a primitive multi-track deck using Csound. Does
anyone have any idea how to minimize cache needs on Linux in this
scenario? I suppose that it would be a difficult situation.
Also, as far as cache size goes, I wonder, if in cases that do not involve
large wavetables read from disk, if using smaller ksamps
might significantly help cache needs, due to the smaller audio arrays.
Oh wait, (thinking as I type), what about code accesses? These get cached
too, don't they? How does this figure in?
> Yes, the delay can be reduced a lot if you use rounded sr and kr(i.e.
> sr=40000hz and kr=400, sr=32000hz and kr=320, sr=10000hz and kr=100)
> setting the -e flag with soundcard supporting non standard sample rates.
> In my p133 computer I reduced the delay to less than 1/30 of second with
> sr=40000hz.
>
What's your opinion of the "feel" of the 33ms delay? I guess it wouldn't
feel like a delay, but still would give a "sluggish" feeling?
And I'm curious to know why "rounded" kr and sr would help! Is this
something to do with the Win95 driver? What?
> > Is the polyphony reduced if the buffer
> > size is reduced (within reason)?
>
> Yes, a bit.
>
Is this due to the instrument setup time causing dropouts? Some tests on
my P100 Linux box with strace showed that simple instruments could take 10
or 20 ms to get setup, but I think that this is only for new allocations.
So I've been pre-allocation the voices by firing of as many as I need
simultaneously, at time 0 in the score, at zero volume.
In general, Gabriel, and anyone else, what is your experience with
dropouts? Linux appears to have some problems with scheduling somewhere,
so that other tasks are stealing too much time from Csound. I'm actually
considering implementing something in rtlinux instead.
Larry
-- Larry Troxler -- lt@westnet.com -- Patterson, NY USA --
|