| Javier Ruiz wrote:
>
> ar shaker kamp, kfreq, kbeans, kdamp, knum, ktimes (, idecay)
> but ktimes should be itimes and idecay is not recognized
One of knum and ktimes were redundant, so knum was removed in 3.49.
Unfortunately, the removal in the code was not complete, so some
data will be zero at the wrong time, and so csound will crash
if you try to run it with correct arguments.
Code fix:
Remove struct member *numshake from line 21 in Shaker.h.
re
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03550;
11 Feb 99 17:07 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10AzZw-0007MQ-00; Thu, 11 Feb 1999 17:07:04 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA16788); Thu, 11 Feb 1999 16:41:41 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 16:41:26 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (QAA13213); Thu, 11 Feb 1999 16:41:25 GMT
Received: from [138.38.97.36] (helo=maths.Bath.AC.UK ident=mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
for csound@maths.ex.ac.uk
id 10AzB7-0007Go-00; Thu, 11 Feb 1999 16:41:25 +0000
Date: Thu, 11 Feb 99 16:41:24 GMT
From: J P Fitch
To: csound@maths.ex.ac.uk
Subject: Re: Bugs in Shaker opcode?, PPC version 3.51
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Thius variable was removed in my sources some time ago; after all I use
shaker rather too much! Is this a Mac problem?
==John
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03759;
11 Feb 99 18:09 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B0Y2-00003c-00; Thu, 11 Feb 1999 18:09:10 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA02469); Thu, 11 Feb 1999 17:48:36 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 17:48:22 GMT
Received: from root@mail.pclink.com [204.72.134.12] by hermes via ESMTP (RAA07879); Thu, 11 Feb 1999 17:48:18 GMT
Received: from robertsc (pm5-20 [206.11.2.28])
by pclink.com (8.9.2/8.9.0) with SMTP id LAA17314
for ; Thu, 11 Feb 1999 11:48:11 -0600 (CST)
Message-Id: <3.0.5.32.19990211115037.0079f960@pclink.com>
X-Sender: schrepel@pclink.com
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.5 (32)
Date: Thu, 11 Feb 1999 11:50:37 -0600
To: csound@maths.ex.ac.uk
From: Robert Schrepel
Subject: Re: new to the game
In-Reply-To: <9902102327223U.10699@weba1.iname.net>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Welcome, steb. You'll find that the list is more responsive
when you provide details of your problem (relevant orc/sco
sections, exact content of error messages, etc.). There are
a number of experts on the list (I'm not one of them), but they
won't be able to help out unless they know exactly the nature
of your situation. Even then, sometimes you'll get an answer,
and sometimes you won't. Just a friendly note from
a sympathetic person. Oh, and...
-- I don't use Silence--can't help you there.
-- Yes, many people use Csound in realtime successfully.
-- You should provide details of your DirectCsound/MIDI problem.
Bob
At 11:27 PM 2/10/99 -0500, you wrote:
>I new to csound and seem to be very interested in
>silence but I'm am not sure how to set it up?
>does anyone have detailed install directions
>for this? The instructions on the web site just don't
>do it for me!? as I said I am new to this stuff
>I am also very interested in using csound
>in reatime! Has anyone had musch success with this?
>I know about directsound 2.6 but keep getting error
>messages about my MIDI setup. I am running Csound
>on a PI 233MMX with a Awe64 and Layla audio cards.
>thank,
>steb.
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03786;
11 Feb 99 18:29 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B0rk-00004o-00; Thu, 11 Feb 1999 18:29:32 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA13873); Thu, 11 Feb 1999 18:13:24 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 18:13:09 GMT
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (SAA11070); Thu, 11 Feb 1999 18:13:03 GMT
Received: from agora.stm.it (ppp02-04.dial-access.stm.it [195.62.37.68]) by agora.stm.it (8.9.2/8.8.5) with ESMTP id TAA25959; Thu, 11 Feb 1999 19:12:19 +0100 (ITA)
Message-ID: <36C31C27.BB974520@agora.stm.it>
Date: Thu, 11 Feb 1999 19:06:31 +0100
From: Gabriel Maldonado
X-Mailer: Mozilla 4.06 [en] (Win95; I)
MIME-Version: 1.0
To: steb@startrekmail.com
CC: csound@maths.ex.ac.uk
Subject: Re: new to the game
References: <9902102327223U.10699@weba1.iname.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
What kind of MIDI setup error messages do you get from DirectCsound 2.6? Is it possible
that your card driver are a bit incompatible with DirectCsound? Have you tried to pipe the
midi input to the Hubi's loopback virtual midi ports?
--
Gabriel Maldonado
http://www.agora.stm.it/G.Maldonado/home2.htm
steb@startrekmail.com wrote:
>
> I new to csound and seem to be very interested in
> silence but I'm am not sure how to set it up?
> does anyone have detailed install directions
> for this? The instructions on the web site just don't
> do it for me!? as I said I am new to this stuff
> I am also very interested in using csound
> in reatime! Has anyone had musch success with this?
> I know about directsound 2.6 but keep getting error
> messages about my MIDI setup. I am running Csound
> on a PI 233MMX with a Awe64 and Layla audio cards.
> thank,
> steb.
>
> -------------------------------
> Beam to http://www.StarTrek.com
> Now featuring the Star Trek Store and
> the official site for Star Trek: Insurrection.
> ------------------------------
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa03920;
11 Feb 99 19:33 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B1rK-00008D-00; Thu, 11 Feb 1999 19:33:10 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA12247); Thu, 11 Feb 1999 19:21:58 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 19:21:50 GMT
Received: from adinet.analog.com [137.71.23.3] by hermes via SMTP (TAA18022); Thu, 11 Feb 1999 19:21:47 GMT
Received: by adinet.analog.com id OAA22563
(InterLock SMTP Gateway 3.0 for csound@noether.ex.ac.uk);
Thu, 11 Feb 1999 14:21:16 -0500
Received: by adinet.analog.com (Internal Mail Agent-1);
Thu, 11 Feb 1999 14:21:16 -0500
Message-Id:
From: "Vercoe, Scotty"
To: Erez Webman
Cc: CSOUND
Subject: RE: Sharc and "extended csound" ?
Date: Thu, 11 Feb 1999 14:21:34 -0500
X-Mailer: Internet Mail Service (5.5.2232.9)
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I know some people are waiting to this, but it really will be soon. I promise!
Scotty Vercoe
XTCsound Applications Consultant
Analog Devices Software & Systems Technology Division
Tel: (781) 461-3569 FAX: (781) 461-4291
Support: Csound.support@analog.com
Website: http://www.geocities.com/researchtriangle/thinktank/2138/
> ----------
> From: Erez Webman[SMTP:webman@piano.technion.ac.il]
> Sent: Tuesday, February 09, 1999 5:32 AM
> To: Richard Dobson
> Cc: Extended Csound Mailing List
> Subject: Re: Sharc and "extended csound" ?
>
> Richard,
>
> Do you know whether the non-beta version of XTCsound is available? I'm
> still using the old beta version which is just a little bit too buggy for
> me.
>
> Thanks,
> Erez Webman
>
>
> On Thu, 21 Jan 1999, Richard Dobson wrote:
>
> > There are webpages for XTCsound on the ADI site, but they are a little
> > hard to find!
> > try
> >
> > http://www.analog.com/industry/systems_solutions/audio/xtcsound.html
> >
> > and
> >
> >
> http://www.analog.com/publications/documentation/C_Sound_Manual/csoundman.html
> >
> > for the SDK manual.
> >
> > I have an SDK, and it all basically works very well, though the device
> > drivers are somewhat fragile. New 32bit drivers are on the way. We have
> > even been told recently that a multi-SHARC version was developed 'for a
> > customer'. In the SDK card XTCsound is downloaded as a SHARC executable,
> > linked with whatever orchestra modules you have designed.
> >
> > Richard Dobson
> >
> >
> > Tim Duncan wrote:
> > >
> > > Extended CSound does indeed exist. You are right about the opcode set,
> > > which contains both traditional opcodes and new ones, in particular,
> > > opcodes supporting real-time processing. An example is a "harmon," which
> is
> > > a real-time harmonizer.
> > >
> > > As far as I know, Extended CSound is only available in ROM on the Sphinx
> card,
> >
> > >
> >
> >
> > --
> > Test your DAW with my Soundcard Attrition Page!
> > http://wkweb5.cableinet.co.uk/rwd
> > CDP homepage: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm
> >
>
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04262;
11 Feb 99 22:08 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B4HX-0000GM-00; Thu, 11 Feb 1999 22:08:23 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA14428); Thu, 11 Feb 1999 22:03:53 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 22:03:41 GMT
Received: from ww181.netaddress.usa.net [204.68.24.81] by hermes via SMTP (WAA00924); Thu, 11 Feb 1999 22:03:38 GMT
Received: (qmail 29827 invoked by uid 60001); 11 Feb 1999 22:01:11 -0000
Message-ID: <19990211220111.29826.qmail@ww181.netaddress.usa.net>
Received: from 204.68.24.81 by ww181 via web-mailer(R2.6) on Thu Feb 11 22:01:10 GMT 1999
Date: 11 Feb 99 17:01:10 EST
From: Rick Mealey
To: csound@maths.ex.ac.uk
MMDF-Warning: Parse error in original version of preceding line at UK.AC.Bath.maths.omphalos
Subject: hrtfer: splitting hairs re manual definition
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: quoted-printable
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hello...
Having a look at the hrtfer page of the manual as I'm about to begin
experimenting with it, and I'm confused about something I'm seeing. Here'=
s how
the manual differentiates between kAz (azimuth) and kElev (elevation):
=3D=3D=3D
kAz - azimuth value in degrees. Positive values represent position on the=
right, negative values are positions on the left.
kElev - elevation value in degrees. Positive values represent position on=
the
right, negative values are positions on the left.
=3D=3D=3D
Surely both of these values can't be denoting positions on the left/right=
plane? Wouldn't one of them, say, kElev, actually be pointing to the up/d=
own
plane? And if so, would a positive value represent elevations above the e=
ar?
Or am I misreading this and the manual is correct?
Just asking,
Rick
____________________________________________________________________
More than just email--Get your FREE Netscape WebMail account today at htt=
p://home.netscape.com/netcenter/mail
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04371;
11 Feb 99 23:24 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B5Sj-0000KD-00; Thu, 11 Feb 1999 23:24:01 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA04309); Thu, 11 Feb 1999 23:16:48 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Thu, 11 Feb 1999 23:16:36 GMT
Received: from neptune.lyrick.com [38.227.100.46] by hermes via ESMTP (XAA04172); Thu, 11 Feb 1999 23:16:35 GMT
Received: by neptune.lyrick.com with Internet Mail Service (5.5.2448.0)
id <1MN9CP1F>; Thu, 11 Feb 1999 17:14:11 -0600
Message-ID: <283AABB8FD0DD21187C200A0C995F5DE0ECE45@neptune.lyrick.com>
From: David Boothe
To: 'Rick Mealey'
Cc: "Csound (E-mail)"
Subject: RE: hrtfer: splitting hairs re manual definition
Date: Thu, 11 Feb 1999 17:14:05 -0600
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)
Content-Type: text/plain;
charset="iso-8859-1"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I believe it should read something like:
kElev - elevation value in degrees. Positive values represent position above
the
horizontal plane, negative values are positions below the horizontal plane.
-David.
> -----Original Message-----
> From: Rick Mealey [mailto:rickmealey@netscape.net]
> Sent: Thursday, February 11, 1999 4:01 PM
> To: csound@maths.ex.ac.uk
> Subject: hrtfer: splitting hairs re manual definition
>
>
> Hello...
>
> Having a look at the hrtfer page of the manual as I'm about to begin
> experimenting with it, and I'm confused about something I'm
> seeing. Here's how
> the manual differentiates between kAz (azimuth) and kElev (elevation):
>
> ===
> kAz - azimuth value in degrees. Positive values represent
> position on the
> right, negative values are positions on the left.
>
> kElev - elevation value in degrees. Positive values represent
> position on the
> right, negative values are positions on the left.
> ===
>
> Surely both of these values can't be denoting positions on
> the left/right
> plane? Wouldn't one of them, say, kElev, actually be pointing
> to the up/down
> plane? And if so, would a positive value represent elevations
> above the ear?
>
> Or am I misreading this and the manual is correct?
>
> Just asking,
>
> Rick
>
> ____________________________________________________________________
> More than just email--Get your FREE Netscape WebMail account
> today at http://home.netscape.com/netcenter/mail
>
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04538;
12 Feb 99 0:39 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B6du-0007nn-00; Fri, 12 Feb 1999 00:39:38 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA00467); Fri, 12 Feb 1999 00:37:37 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 00:37:25 GMT
Received: from angel.algonet.se [194.213.74.112] by hermes via SMTP (AAA05926); Fri, 12 Feb 1999 00:37:24 GMT
Received: (qmail 6988 invoked from network); 12 Feb 1999 01:37:27 +0100
Received: from du150-91.ppp.algonet.se (HELO algonet.se) (195.100.91.150)
by angel.algonet.se with SMTP; 12 Feb 1999 01:37:27 +0100
From: Anders Andersson
Reply-To: pipe@algonet.se
To: CSound list
Date: Fri, 12 Feb 1999 01:25:06 +0100
Message-ID:
X-Mailer: YAM 1.3.5 [020] - Amiga Mailer by Marcel Beck
Organization: Nature
Subject: Floats to Ints
MIME-Version: 1.0
Content-Type: text/plain
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hello dear CSounders!
I'm writing a tool to convert float-samples to
integers, as a newbie project while I'm learning
C, but now I have a question about how to scale
a stream of floats correctly to fit to the full
integer range?
The problem is the assymetric integer-format,
as the range is from -32768 -> 32767 (16-bit).
What method should I use when scaling?
1. [output stream] = [stream of floats] * (32767/maxfloat)
2. [output stream] = [stream of floats] * (32767.5/maxfloat)-0.5
The second version will have a slight offset, but the resolution
will be better.. In this case I guess that the small offset
won't affext the soundquality at all?
Yes, I know we are talking about *extremly* small
values, that can't possibly be *heard* with even
the best speakers/amplifiers/da-converters!!!
But still! I'm a perfectionist!, and you should
also be able to output 8-bit integers, and there
may the difference be heard..
.--- -- - -
| Anders "Pipe/Nature" Andersson, pipe@algonet.se
| Proud member of the Amiga community, Nature and Mensa Sweden.
:
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04735;
12 Feb 99 2:24 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B8HX-00006g-00; Fri, 12 Feb 1999 02:24:39 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA00418); Fri, 12 Feb 1999 02:23:19 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 02:23:07 GMT
Received: from root@big.fishnet.net [204.89.144.3] by hermes via ESMTP (CAA05942); Fri, 12 Feb 1999 02:23:05 GMT
Received: from rcsreg.com (x206.core.fishnet.net [204.89.144.206])
by big.fishnet.net (8.9.2/8.8.5) with ESMTP id SAA15914;
Thu, 11 Feb 1999 18:27:15 -0800 (PST)
Message-ID: <36C3906B.A8A0A6E@rcsreg.com>
Date: Fri, 12 Feb 1999 02:22:35 +0000
From: Tobiah
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.2.0-final i586)
X-Accept-Language: en
MIME-Version: 1.0
To: pipe@algonet.se
CC: CSound list
Subject: Re: Floats to Ints
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
> 1. [output stream] = [stream of floats] * (32767/maxfloat)
>
> 2. [output stream] = [stream of floats] * (32767.5/maxfloat)-0.5
Do #1. You don't get to decide about the offset, because
everyone else on the planet already recognizes zero as silence.
You know, it would be nice if the ADC would use -32768 to
indicate a clip! That way, we could get nice instant
feedback about exceeding levels. Actually, I have at least
one program that looks for this already. If the value -32768 is
encountered, it cries clip. This is not as accurate as if
the ADC had explicitly set it to indicate a clip in either
direction, but it is pretty close in practice.
Toby
-There otta be a law-
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04764;
12 Feb 99 2:39 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B8Vs-00007K-00; Fri, 12 Feb 1999 02:39:28 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA07403); Fri, 12 Feb 1999 02:38:15 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 02:38:03 GMT
Received: from root@big.fishnet.net [204.89.144.3] by hermes via ESMTP (CAA03601); Fri, 12 Feb 1999 02:38:01 GMT
Received: from rcsreg.com (x206.core.fishnet.net [204.89.144.206])
by big.fishnet.net (8.9.2/8.8.5) with ESMTP id SAA16395;
Thu, 11 Feb 1999 18:42:31 -0800 (PST)
Message-ID: <36C393FF.C6E47C1D@rcsreg.com>
Date: Fri, 12 Feb 1999 02:37:51 +0000
From: Tobiah
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.2.0-final i586)
X-Accept-Language: en
MIME-Version: 1.0
To: pipe@algonet.se
CC: CSound list
Subject: Re: Cecilia vs CSound
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Anders Andersson wrote:
> Iv'e recently started to try out CSound for Linux,
> So my question is:
> What do I as a coder gain by using Cecilia instead of
> coding orc's and scores from scratch?
I'm a coder at heart as well, and had the same initial
reaction to Cecilia. Fortunately for me, I stuck with
the interface enough to become semi-facile with it. I
still go to the 'vi' editor when I am ready to make a
piece, but Cecilia is wonderful for trying out new ideas,
and getting settings and function generation values in
a real-time fashion.
I would look at Cecilia as a beautiful draftsman's tool
(Autocad?), and strict coding, along with wrapper programs
and Makefiles as the cranes, buldozers and trucks.
Now I've really lost it.
Toby
-There otta be a law-
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04949;
12 Feb 99 4:05 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10B9rF-0000BP-00; Fri, 12 Feb 1999 04:05:37 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA03019); Fri, 12 Feb 1999 04:04:17 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 04:04:05 GMT
Received: from lorica.ucc.usyd.edu.au [129.78.64.15] by hermes via ESMTP (EAA10839); Fri, 12 Feb 1999 04:03:58 GMT
Received: from mail.usyd.edu.au (mp-10-2.mp.usyd.edu.au [129.78.57.188])
by lorica.ucc.usyd.edu.au (8.9.1a/8.9.1) with ESMTP id PAA27335
for ; Fri, 12 Feb 1999 15:03:07 +1100 (EST)
Message-ID: <36C3A7B7.8CD7D655@mail.usyd.edu.au>
Date: Fri, 12 Feb 1999 15:02:12 +1100
From: Bob Douglas
Reply-To: rdouglas@mail.usyd.edu.au
Organization: Sydney Conservatorium
X-Mailer: Mozilla 4.03 (Macintosh; I; PPC)
MIME-Version: 1.0
To: CSound list
Subject: Re: Cecilia vs CSound - Working Method
References: <36C393FF.C6E47C1D@rcsreg.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Tobiah wrote:
> I'm a coder at heart as well, and had the same initial
> reaction to Cecilia. Fortunately for me, I stuck with
> the interface enough to become semi-facile with it. I
> still go to the 'vi' editor when I am ready to make a
> piece, but Cecilia is wonderful for trying out new ideas,
> and getting settings and function generation values in
> a real-time fashion.
>
> I would look at Cecilia as a beautiful draftsman's tool
> (Autocad?), and strict coding, along with wrapper programs
> and Makefiles as the cranes, buldozers and trucks.
Although familiar with Cecilia on a Mac, I'm not a coder, but I'm interested
in the process you describe.
I currently use Cynthia on an SGI O2, and don't run Csound directly from the
command line.
What sorts of things can be done by working this way, that can't be achieved
by working in an environment like Cecilia or Cynthia ?
For example, what is the advantage of creating a file in 'vi' etc., compared
to working in Cynthia/Cecilia.
Would it be possible to illustrate the other elements mentioned ie. strict coding,
wrapper programs and makefiles, by working through a simple example ?
The level of detail is up to you.
Thanks.
Bob Douglas
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05251;
12 Feb 99 7:20 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10BCtM-0000NT-00; Fri, 12 Feb 1999 07:20:00 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (HAA11186); Fri, 12 Feb 1999 07:17:04 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 07:16:51 GMT
Received: from crius.flash.net [209.30.0.49] by hermes via ESMTP (HAA12254); Fri, 12 Feb 1999 07:16:49 GMT
Received: from flash.net (p49.amax26.dialup.ftw1.flash.net [209.30.57.49])
by crius.flash.net (8.9.1/8.8.5) with ESMTP id BAA14158
for ; Fri, 12 Feb 1999 01:16:51 -0600 (CST)
Message-ID: <36C3D5C3.40175DD@flash.net>
Date: Fri, 12 Feb 1999 01:18:27 -0600
From: pete moss
Organization: pete moss GmbH
X-Mailer: Mozilla 4.5 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: csound
Subject: noise gate
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
anybody know of a method to filter out noise below a certain dB level?
for instance, i would like to generate white noise and remove every peak
below a certain cutoff. would the limit opcode be what i need?
pete
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05781;
12 Feb 99 12:09 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10BHPS-0000HW-00; Fri, 12 Feb 1999 12:09:26 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA13628); Fri, 12 Feb 1999 11:57:46 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 11:57:35 GMT
Received: from root@lix.intercom.es [194.179.21.2] by hermes via ESMTP (LAA09211); Fri, 12 Feb 1999 11:56:41 GMT
Received: from intercom.es (iv3-118.intercom.es [195.76.131.118]) by lix.intercom.es (8.7.3/8.6.12) with ESMTP id MAA29149; Fri, 12 Feb 1999 12:57:02 +0100
Message-ID: <36C3FCD4.82B2F894@intercom.es>
Date: Fri, 12 Feb 1999 11:05:08 +0100
From: Josep M Comajuncosas
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: pete moss
CC: csound
Subject: Re: noise gate
References: <36C3D5C3.40175DD@flash.net>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by exeter.ac.uk id LAA09211
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
rnd(ix-ifloor)+ifloor
should generate random values between ifloor and x ... (but only positive
values)
instead of "limit", which could priorize the low thereshold value, I woul=
d
suggest "mirror",
asig mirror birnd(ix), ifloor, ix
should generate values between [-ix,-ifloor] or [ifloor,ix] ... am I wron=
g ?
I=B4m not sure about the way "mirror" deals with negative values. Otherwi=
se it
should be used a trickier method...
pete moss wrote:
> anybody know of a method to filter out noise below a certain dB level?
> for instance, i would like to generate white noise and remove every pea=
k
> below a certain cutoff. would the limit opcode be what i need?
>
> pete
Received: from shaun.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05826;
12 Feb 99 12:35 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by shaun.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10BHox-0000Is-00; Fri, 12 Feb 1999 12:35:47 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA10985); Fri, 12 Feb 1999 12:21:59 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 12:21:41 GMT
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (MAA17942); Fri, 12 Feb 1999 12:21:40 GMT
Received: (qmail 1698 invoked from network); 12 Feb 1999 12:18:28 -0000
Received: from unknown (HELO cableinet.co.uk) (194.117.146.19)
by jaguars with SMTP; 12 Feb 1999 12:18:28 -0000
Message-ID: <36C41DB5.DAA18D94@cableinet.co.uk>
Date: Fri, 12 Feb 1999 12:25:25 +0000
From: Richard Dobson
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: pipe@algonet.se
CC: CSound list
Subject: Re: Floats to Ints
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Since this is a C-programming topic:
I agree: use method 1;
Division is usually much more expensive than multiplication, so you
would get better performance by multiplying by the constant 1/32767:
shorts to floats:
const float shortfac = (float) 1.0 / 32767.0;
outfloat = (float)inshort * shortfac;
going in the other direction obviously depends on whether the floatsams
are normalized ( within +- 1.0) or not.
It is a moot point whether one should scale right up to 32767 anyway - a
little bit of extra headroom would be good.
Ideally, when converting floats to shorts, which is a reduction in
resolution, you should dither the lowest bits with some form of noise
signal. But you should only do this if it is the last operation before
playing.
Note that the compiler cast from float to short (or double to int, etc)
can be surprisingly costly in processor cycles (especially with
Microsoft VC++, as they make a function call!); it is something to avoid
as much as possible! In this case an assembler routine can be a great
improvement, where cross-platform portability is not an issue.
Richard Dobson
Anders Andersson wrote:
>
> Hello dear CSounders!
>
> I'm writing a tool to convert float-samples to
> integers, as a newbie project while I'm learning
> C, but now I have a question about how to scale
> a stream of floats correctly to fit to the full
> integer range?
>
> The problem is the assymetric integer-format,
> as the range is from -32768 -> 32767 (16-bit).
>
> What method should I use when scaling?
>
> 1. [output stream] = [stream of floats] * (32767/maxfloat)
>
> 2. [output stream] = [stream of floats] * (32767.5/maxfloat)-0.5
>
> The second version will have a slight offset, but the resolution
> will be better.. In this case I guess that the small offset
> won't affext the soundquality at all?
>
> Yes, I know we are talking about *extremly* small
> values, that can't possibly be *heard* with even
> the best speakers/amplifiers/da-converters!!!
> But still! I'm a perfectionist!, and you should
> also be able to output 8-bit integers, and there
> may the difference be heard..
>
> .--- -- - -
> | Anders "Pipe/Nature" Andersson, pipe@algonet.se
> | Proud member of the Amiga community, Nature and Mensa Sweden.
> :
--
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd
CDP homepage: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm
Received: from wallace.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05926;
12 Feb 99 12:56 GMT
Received: from [144.173.6.14] (helo=exeter.ac.uk)
by wallace.maths.bath.ac.uk with esmtp (Exim 1.92 #2)
for jpff@maths.bath.ac.uk
id 10BI91-0000fi-00; Fri, 12 Feb 1999 12:56:31 +0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA18262); Fri, 12 Feb 1999 12:30:25 GMT
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 12 Feb 1999 12:30:09 GMT
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (MAA14342); Fri, 12 Feb 1999 12:30:08 GMT
Received: (qmail 2311 invoked from network); 12 Feb 1999 12:26:57 -0000
Received: from unknown (HELO cableinet.co.uk) (194.117.146.131)
by jaguars with SMTP; 12 Feb 1999 12:26:57 -0000
Message-ID: <36C41FB1.454796@cableinet.co.uk>
Date: Fri, 12 Feb 1999 12:33:53 +0000
From: Richard Dobson
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.5 [en] (WinNT; I)
X-Accept-Language: en
MIME-Version: 1.0
To: pipe@algonet.se
CC: CSound list
Subject: Re: Floats to Ints
References:
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Oops: since this is a C topic,
this is wrong:
> const float shortfac = (float) 1.0 / 32767.0;
this is right:
const float shortfac = (float) (1.0 / 32767.0);
perhaps I should have added; 'spot the deliberate mistake..." :->
Richard Dobson
--
Test your DAW with my Soundcard Attrition Page!
http://wkweb5.cableinet.co.uk/rwd
CDP homepage: http://www.bath.ac.uk/~masjpf/CDP/CDP.htm |