Csound Csound-dev Csound-tekno Search About

Re: gain, balance

Date1998-08-21 15:53
FromErik Spjut
SubjectRe: gain, balance
Could you repeat the question? Do you want to take an existing soundfile
and set the peak value to 90% of 32767? Do you want to take an existing
soundfile and scale it to 90% of its present amplitude? Are you generating
a sound that you want to envelope-track to an existing soundfile but at 90%
of the volume? Could you tell us exactly what it is that you're trying to
do?

The first two don't require gain or balance. The last one does.

At 10:40 AM -0500 8/21/98, tolve wrote:
>not exactly a sexy topic here. but please speak slowly and clearly.
>
>both gain and balance require a control signal. but is there a way to
>normalize to 90% without a control signal? or do i input a dummy file that
>goes nowhere using soundin. that is to say, a file known to be normalized
>to 90% -just to use for comparison?
>
>tolve


-------------------------------------------------------------------------------
Erik Spjut (pronounce ju as long u or yew) - Associate Professor of Engineering
and  Associate Director for Engineering Computing,  Center for Design Education
Harvey Mudd College, Claremont, CA 91711-5990  USA
Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967

Date1998-08-21 16:40
Fromtolve
Subjectgain, balance
not exactly a sexy topic here. but please speak slowly and clearly.

both gain and balance require a control signal. but is there a way to
normalize to 90% without a control signal? or do i input a dummy file that
goes nowhere using soundin. that is to say, a file known to be normalized
to 90% -just to use for comparison?

tolve




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12270;
          21 Aug 98 15:50 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa18943;
          21 Aug 98 15:50 BST
Received: (qmail 12576 invoked from network); 21 Aug 1998 14:50:06 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 21 Aug 1998 14:50:06 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA12791); Fri, 21 Aug 1998 15:46:38 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 21 Aug 1998 15:46:26 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via ESMTP (PAA13117); Fri, 21 Aug 1998 15:46:25 +0100 (BST)
Received: from [138.38.99.25] (helo=maths.Bath.AC.UK ident=mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.92 #2)
	id 0z9s8p-00054Q-00; Fri, 21 Aug 1998 15:26:11 +0100
Date:     Fri, 21 Aug 98 15:26:08 BST
From: jpff@maths.bath.ac.uk
Subject:  Re: tone in winsound 3.484
To: luisjure@adinet.com.uy, csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 20 Aug 1998 20:44:58 -0400
--- Copy of mail to gelida@intercom.es ---

Can you tell me about the "some problems with the Winsound windows
interface..."?  I am aware of the tone/port/reson problems, and have
some fixes for some of them.
==John ffitch


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12349;
          21 Aug 98 16:02 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa20219;
          21 Aug 98 16:02 BST
Received: (qmail 11402 invoked from network); 21 Aug 1998 15:02:44 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 21 Aug 1998 15:02:44 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA27854); Fri, 21 Aug 1998 15:52:06 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 21 Aug 1998 15:51:55 +0100
Received: from Thuban.AC.HMC.Edu [134.173.53.8] (may be forged) by hermes via ESMTP (PAA04602); Fri, 21 Aug 1998 15:51:53 +0100 (BST)
Received: from [134.173.38.61] (Spjut.Eng.HMC.Edu)
 by THUBAN.AC.HMC.EDU (PMDF V5.1-7 #28820)
 with ESMTP id <01J0UW95U1128WWG9R@THUBAN.AC.HMC.EDU> for
 csound@maths.ex.ac.uk; Fri, 21 Aug 1998 07:51:56 PST
Date: Fri, 21 Aug 1998 07:53:59 -0700
From: Erik Spjut 
Subject: Re: gain, balance
In-reply-to: 
X-Sender: spjut@thuban.ac.hmc.edu
To: tolve , csound@maths.ex.ac.uk
Message-id: 
MIME-version: 1.0
Content-type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Could you repeat the question? Do you want to take an existing soundfile
and set the peak value to 90% of 32767? Do you want to take an existing
soundfile and scale it to 90% of its present amplitude? Are you generating
a sound that you want to envelope-track to an existing soundfile but at 90%
of the volume? Could you tell us exactly what it is that you're trying to
do?

The first two don't require gain or balance. The last one does.

At 10:40 AM -0500 8/21/98, tolve wrote:
>not exactly a sexy topic here. but please speak slowly and clearly.
>
>both gain and balance require a control signal. but is there a way to
>normalize to 90% without a control signal? or do i input a dummy file that
>goes nowhere using soundin. that is to say, a file known to be normalized
>to 90% -just to use for comparison?
>
>tolve


-------------------------------------------------------------------------------
Erik Spjut (pronounce ju as long u or yew) - Associate Professor of Engineering
and  Associate Director for Engineering Computing,  Center for Design Education
Harvey Mudd College, Claremont, CA 91711-5990  USA
Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13364;
          21 Aug 98 22:49 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa01991;
          21 Aug 98 22:49 BST
Received: (qmail 5502 invoked from network); 21 Aug 1998 21:49:44 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 21 Aug 1998 21:49:44 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA10549); Fri, 21 Aug 1998 22:46:58 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 21 Aug 1998 22:46:47 +0100
Received: from mail.infohouse.com [206.30.88.4] by hermes via ESMTP (WAA07171); Fri, 21 Aug 1998 22:46:47 +0100 (BST)
Received: from [208.151.41.206] by milhouse.infohouse.com
          (Post.Office MTA v3.5.1 release 219 ID# 141-53521U2500L250S0V35)
          with ESMTP id com; Fri, 21 Aug 1998 17:38:18 -0400
X-Sender: ic11748@mail.infohouse.com
Message-Id: 
In-Reply-To: 
References: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Fri, 21 Aug 1998 17:52:37 -0500
To: Erik Spjut , csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.stork
From: tolve 
Subject: Re: gain, balance
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

generating a single sound using many FOF's without the use of any existing
soundfiles. would like the sound i generate to be automatically scaled to
90% of 32767 at the end of the process regardless of the amplitude settings
for the individual FOF's.

seems like this would be a universally useful tool. figure there must be a
simple and elegant way to scale without using a control signal (any
existing soundfile). no?

tolve

>Could you repeat the question? Do you want to take an existing soundfile
>and set the peak value to 90% of 32767? Do you want to take an existing
>soundfile and scale it to 90% of its present amplitude? Are you generating
>a sound that you want to envelope-track to an existing soundfile but at 90%
>of the volume? Could you tell us exactly what it is that you're trying to
>do?
>
>The first two don't require gain or balance. The last one does.
>
>At 10:40 AM -0500 8/21/98, tolve wrote:
>>not exactly a sexy topic here. but please speak slowly and clearly.
>>
>>both gain and balance require a control signal. but is there a way to
>>normalize to 90% without a control signal? or do i input a dummy file that
>>goes nowhere using soundin. that is to say, a file known to be normalized
>>to 90% -just to use for comparison?
>>
>>tolve
>
>
>-------------------------------------------------------------------------------
>Erik Spjut (pronounce ju as long u or yew) - Associate Professor of
>Engineering
>and  Associate Director for Engineering Computing,  Center for Design
>Education
>Harvey Mudd College, Claremont, CA 91711-5990  USA
>Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13456;
          21 Aug 98 23:48 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa05030;
          21 Aug 98 23:48 BST
Received: (qmail 6841 invoked from network); 21 Aug 1998 22:48:05 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 21 Aug 1998 22:48:05 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA13839); Fri, 21 Aug 1998 23:45:22 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Fri, 21 Aug 1998 23:45:12 +0100
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (XAA03529); Fri, 21 Aug 1998 23:45:11 +0100 (BST)
Received: (qmail 7789 invoked from network); 21 Aug 1998 22:45:33 -0000
Received: from unknown (HELO cableinet.co.uk) (194.117.146.77)
  by jaguars with SMTP; 21 Aug 1998 22:45:33 -0000
Message-ID: <35DDF67A.E434B2A3@cableinet.co.uk>
Date: Fri, 21 Aug 1998 23:36:42 +0100
From: Richard Dobson 
Organization: Composers Desktop project
X-Mailer: Mozilla 4.04 [en] (Win95; I)
MIME-Version: 1.0
To: tolve 
CC: csound@maths.ex.ac.uk
Subject: Re: gain, balance
References:  
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Surely this is fundamentally a post-processing issue. 'Normalization', after
all, is usually defined as rescaling of the file as a whole, so that the
existing peak sample value (which might of course be right at the end of the
file) is scaled to just below maximum (or, arguably better, -3dB, which is 70%,
not 90%). So you need a simple 'normalization instrument' taking a single
amplitude pfield, which is the maxamp as reported by Csound for the synthesis
pass.

Balance, rms, etc, on the other hand, are designed to do dynamic rescaling (eg
of the results of filtering), block by block. With balance, especially,
modulation side effects have been noted. A post-processing normalization pass
will have no such problems.

One of these days, Csound will be so reentrant that it will become quite usual
to manage this sort of rescaling within a single execution - Csound will
'rewind' at the end of the synthesis pass, reopen the file and do the rescaling.

Richard Dobson


tolve wrote:
> 
> generating a single sound using many FOF's without the use of any existing
> soundfiles. would like the sound i generate to be automatically scaled to
> 90% of 32767 at the end of the process regardless of the amplitude settings
> for the individual FOF's.
> 
> seems like this would be a universally useful tool. figure there must be a
> simple and elegant way to scale without using a control signal (any
> existing soundfile). no?
> 
> tolve
> 
> >Could you repeat the question? Do you want to take an existing soundfile
> >and set the peak value to 90% of 32767? Do you want to take an existing
> >soundfile and scale it to 90% of its present amplitude? Are you generating
> >a sound that you want to envelope-track to an existing soundfile but at 90%
> >of the volume? Could you tell us exactly what it is that you're trying to
> >do?
> >
> >The first two don't require gain or balance. The last one does.
> >
> >At 10:40 AM -0500 8/21/98, tolve wrote:
> >>not exactly a sexy topic here. but please speak slowly and clearly.
> >>
> >>both gain and balance require a control signal. but is there a way to
> >>normalize to 90% without a control signal? or do i input a dummy file that
> >>goes nowhere using soundin. that is to say, a file known to be normalized
> >>to 90% -just to use for comparison?
> >>
> >>tolve
> >
> >
> >-------------------------------------------------------------------------------
> >Erik Spjut (pronounce ju as long u or yew) - Associate Professor of
> >Engineering
> >and  Associate Director for Engineering Computing,  Center for Design
> >Education
> >Harvey Mudd College, Claremont, CA 91711-5990  USA
> >Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967


Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13512;
          22 Aug 98 0:06 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa06170;
          22 Aug 98 0:06 BST
Received: (qmail 2408 invoked from network); 21 Aug 1998 23:06:08 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 21 Aug 1998 23:06:08 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA16173); Sat, 22 Aug 1998 00:03:45 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 00:03:34 +0100
Received: from nmol.com [206.162.11.2] by hermes via SMTP (AAA09256); Sat, 22 Aug 1998 00:03:32 +0100 (BST)
X-ROUTED: Fri, 21 Aug 1998 17:16:14 -0600
X-TCP-IDENTITY: Mikeb
Received: from nmol.com [206.162.11.155] by nmol.com with smtp
	id BBAPBGDM ; Fri, 21 Aug 1998 17:15:22 -0600
Message-ID: <35DDFE47.F8539D6C@nmol.com>
Date: Fri, 21 Aug 1998 17:09:59 -0600
From: Mike Berry 
X-Mailer: Mozilla 4.05 (Macintosh; I; PPC)
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: gain, balance
References:  
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

The PowerPC version lets you write the file in floats and then automatically
post-normalize to 16 bits.  We assume post-normallization to 100%, but I don't
think it would be too hard to make this settable.
-- 
Mike Berry
mikeb@nmol.com
http://www.nmol.com/users/mikeb




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13627;
          22 Aug 98 1:41 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa11264;
          22 Aug 98 1:41 BST
Received: (qmail 10594 invoked from network); 22 Aug 1998 00:41:23 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 00:41:23 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (BAA01692); Sat, 22 Aug 1998 01:39:00 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 01:38:50 +0100
Received: from 0@blackhole.dimensional.com [208.206.176.10] by hermes via ESMTP (BAA03853); Sat, 22 Aug 1998 01:38:49 +0100 (BST)
Received: from dimensional.com (p23.pm3c07.pm.dimcom.net [206.124.6.152])
	by blackhole.dimensional.com (8.8.8/8.8.nospam) with ESMTP id SAA15590
	for ; Fri, 21 Aug 1998 18:38:44 -0600 (MDT)
Message-ID: <35DE036F.BD7CE43E@dimensional.com>
Date: Fri, 21 Aug 1998 18:31:59 -0500
From: Stuart Felenstein 
X-Mailer: Mozilla 4.05 [en] (Win95; I)
MIME-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Anyone know the status of Cecilia for Win95?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

This would be the non-Analog Devices version.

Thank you,
Stuart Felenstein
stuartf@dimensional.com



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13817;
          22 Aug 98 3:44 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa18046;
          22 Aug 98 3:44 BST
Received: (qmail 6749 invoked from network); 22 Aug 1998 02:44:39 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 22 Aug 1998 02:44:39 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (DAA21699); Sat, 22 Aug 1998 03:42:16 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 03:42:05 +0100
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (DAA27505); Sat, 22 Aug 1998 03:42:04 +0100 (BST)
Received: (qmail 18765 invoked by uid 1964); 21 Aug 1998 19:41:41 -0700
Date: Fri, 21 Aug 1998 19:41:40 -0700 (PDT)
From: "Matt J. Ingalls" 
Reply-To: "Matt J. Ingalls" 
To: Mike Berry 
cc: csound@maths.ex.ac.uk
Subject: Re: gain, balance
In-Reply-To: <35DDFE47.F8539D6C@nmol.com>
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


i mentioned this a couple of weeks ago, with no response --
if people would like Dave's feature Mike talks about below,
i could "port" it to be in canonical sources..
 (just needs a few mac->unix file things
and printf instead of progress dialog..)

would just be an option flag,
-matt



On Fri, 21 Aug 1998, Mike Berry wrote:

> The PowerPC version lets you write the file in floats and then automatically
> post-normalize to 16 bits.  We assume post-normallization to 100%, but I don't
> think it would be too hard to make this settable.
> -- 
> Mike Berry
> mikeb@nmol.com
> http://www.nmol.com/users/mikeb
> 
> 
> 



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13867;
          22 Aug 98 4:34 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa19055;
          22 Aug 98 4:34 BST
Received: (qmail 15332 invoked from network); 22 Aug 1998 03:34:21 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 03:34:21 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA22317); Sat, 22 Aug 1998 04:31:54 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 04:31:44 +0100
Received: from root@jason04.u.washington.edu [140.142.78.5] by hermes via ESMTP (EAA20356); Sat, 22 Aug 1998 04:31:42 +0100 (BST)
Received: from dante32.u.washington.edu (bbattey@dante32.u.washington.edu [140.142.15.106])
          by jason04.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with ESMTP
	  id UAA35382; Fri, 21 Aug 1998 20:31:46 -0700
Received: from localhost (bbattey@localhost)
          by dante32.u.washington.edu (8.8.4+UW97.07/8.8.4+UW98.06) with SMTP
	  id UAA75178; Fri, 21 Aug 1998 20:31:45 -0700
Date: Fri, 21 Aug 1998 20:31:45 -0700 (PDT)
From: "B. Battey" 
To: "Matt J. Ingalls" 
cc: csound@maths.ex.ac.uk
Subject: Re: gain, balance
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


Given the time that I've expended just this evening fighting the
amplitude-containment battle via trial and error on a slow pvoc-based
instrument, I think such a feature would be very worthwhile. 

-=Bret

On Fri, 21 Aug 1998, Matt J. Ingalls wrote:

> 
> i mentioned this a couple of weeks ago, with no response --
> if people would like Dave's feature Mike talks about below,
> i could "port" it to be in canonical sources..
>  (just needs a few mac->unix file things
> and printf instead of progress dialog..)
> 
> would just be an option flag,
> -matt
> 
> 
> 
> On Fri, 21 Aug 1998, Mike Berry wrote:
> 
> > The PowerPC version lets you write the file in floats and then automatically
> > post-normalize to 16 bits.  We assume post-normallization to 100%, but I don't
> > think it would be too hard to make this settable.
> > -- 
> > Mike Berry
> > mikeb@nmol.com
> > http://www.nmol.com/users/mikeb
> > 
> > 
> > 
> 
> 



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14082;
          22 Aug 98 8:26 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa21589;
          22 Aug 98 8:26 BST
Received: (qmail 11314 invoked from network); 22 Aug 1998 07:26:33 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 22 Aug 1998 07:26:33 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA17282); Sat, 22 Aug 1998 08:22:26 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 08:22:15 +0100
Received: from root@ax-nicb.axnet.it [194.184.60.149] by hermes via ESMTP (IAA11155); Sat, 22 Aug 1998 08:22:12 +0100 (BST)
Received: (from nicb@localhost)
	by ax-nicb.axnet.it (8.8.8/8.8.8) id JAA21102;
	Sat, 22 Aug 1998 09:18:19 +0200
Date: Sat, 22 Aug 1998 09:18:17 +0200 (MET DST)
From: Nicola Bernardini 
To: Csound mailing list 
Subject: option flag (was Re: gain, balance)
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On Fri, 21 Aug 1998, Matt J. Ingalls wrote:

[snip]
> i mentioned this a couple of weeks ago, with no response --
> if people would like Dave's feature Mike talks about below,
> i could "port" it to be in canonical sources..

it could be a very nice idea...

[snip]
> would just be an option flag,

speaking of which, in 3.484 some funny things happened: a -Q option appeared
in the Mac/Metrowerks version and a -Q option disappeared in the linux/unix
version (I put that back in the linux sources distributed by me and Dave
Phillips). The two -Q options bear no relation to each other, so we're ending
up having incompatible command lines. Is there a good reason for this?
If name space pollution is the problem, we could adopt the gnu getopt package
that allows long names and is free (I would think it would compile on
all platforms).

Nicola

------------------------------------------------------------------------
Nicola Bernardini
E-mail: nicb@axnet.it
 
Re graphics: A picture is worth 10K words -- but only those to describe
the picture.  Hardly any sets of 10K words can be adequately described
with pictures.



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14225;
          22 Aug 98 11:41 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa24419;
          22 Aug 98 11:41 BST
Received: (qmail 16545 invoked from network); 22 Aug 1998 10:41:12 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 10:41:12 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA22286); Sat, 22 Aug 1998 11:38:39 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 11:38:29 +0100
Received: from mailout05.btx.dtag.de [194.25.2.153] by hermes via SMTP (LAA21035); Sat, 22 Aug 1998 11:38:27 +0100 (BST)
Received: from fwd06.btx.dtag.de (fwd06.btx.dtag.de [194.25.2.166])
	by mailout05.btx.dtag.de with smtp 
	id 0zAB3B-0003mo-00; Sat, 22 Aug 1998 12:37:37 +0200
Received: from pC19F7A16.dip.t-online.de (0402102285-0001(btxid)@[193.159.122.22]) 
	by fwd06.btx.dtag.de with smtp
	id ; Sat, 22 Aug 1998 12:37:23 +0200
To: Stuart Felenstein 
Cc: csound@maths.ex.ac.uk
Subject: Re: Anyone know the status of Cecilia for Win95?
Date: Sat, 22 Aug 1998 10:38:39 GMT
Message-ID: <35de9f49.2603553@pop.btx.dtag.de>
References: <35DE036F.BD7CE43E@dimensional.com>
In-Reply-To: <35DE036F.BD7CE43E@dimensional.com>
X-Mailer: Forte Agent 1.5/32.452
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-Sender: 0402102285-0001@t-online.de
From: Jens Reimer 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

On Fri, 21 Aug 1998 18:31:59 -0500, you wrote:
as far as i know (the cecilia homepage said) there is no win95 version..
only mac,linux,irix

anything new

>This would be the non-Analog Devices version.
>
>Thank you,
>Stuart Felenstein
>stuartf@dimensional.com

Und Tsch=FCss
Jens Reimer

Email:
jens.reimer@t-online.de

Date1998-08-21 23:52
Fromtolve
SubjectRe: gain, balance
generating a single sound using many FOF's without the use of any existing
soundfiles. would like the sound i generate to be automatically scaled to
90% of 32767 at the end of the process regardless of the amplitude settings
for the individual FOF's.

seems like this would be a universally useful tool. figure there must be a
simple and elegant way to scale without using a control signal (any
existing soundfile). no?

tolve

>Could you repeat the question? Do you want to take an existing soundfile
>and set the peak value to 90% of 32767? Do you want to take an existing
>soundfile and scale it to 90% of its present amplitude? Are you generating
>a sound that you want to envelope-track to an existing soundfile but at 90%
>of the volume? Could you tell us exactly what it is that you're trying to
>do?
>
>The first two don't require gain or balance. The last one does.
>
>At 10:40 AM -0500 8/21/98, tolve wrote:
>>not exactly a sexy topic here. but please speak slowly and clearly.
>>
>>both gain and balance require a control signal. but is there a way to
>>normalize to 90% without a control signal? or do i input a dummy file that
>>goes nowhere using soundin. that is to say, a file known to be normalized
>>to 90% -just to use for comparison?
>>
>>tolve
>
>
>-------------------------------------------------------------------------------
>Erik Spjut (pronounce ju as long u or yew) - Associate Professor of
>Engineering
>and  Associate Director for Engineering Computing,  Center for Design
>Education
>Harvey Mudd College, Claremont, CA 91711-5990  USA
>Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967


Date1998-08-22 16:29
FromErik Spjut
SubjectRe: gain, balance
Normalization is inherently a two-pass process. The first pass is to
calculate the maximum value generated in the sound file creation. For all
but trivial examples there is no a priori (ahead of time) method to
calculate the maximum value which is going to be generated. The second pass
then scales all of the sound samples by some chosen fraction of the maximum.

You can get around this limitation somewhat if you know exactly what
envelope your sound should have. You can then use your given envelope and
the gain ugen to normalize your sound. The limitation is that gain works on
the RMS of the signal and not on the peak value. Experimentation would
still be required to get an approximate relationship between RMS and peak.
The relationship would always vary from sound source to sound source.

Our best hope is some variant of the Mills PPC float->16-bit normalized,
but that requires source code modification.

Tolve, if my explanation isn't in simple enough English, let me know. I'm
always willing to try again (even in halting Swedish if you'd like).

-------------------------------------------------------------------------------
Erik Spjut (pronounce ju as long u or yew) - Associate Professor of Engineering
and  Associate Director for Engineering Computing,  Center for Design Education
Harvey Mudd College, Claremont, CA 91711-5990  USA
Erik_Spjut@hmc.edu      Ph & Voice mail (909) 607-3890      Fax (909) 621-8967




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14690;
          22 Aug 98 16:31 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29478;
          22 Aug 98 16:31 BST
Received: (qmail 20671 invoked from network); 22 Aug 1998 15:31:34 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 22 Aug 1998 15:31:34 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA26377); Sat, 22 Aug 1998 16:29:07 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 16:28:56 +0100
Received: from mail.infohouse.com [206.30.88.4] by hermes via ESMTP (QAA17452); Sat, 22 Aug 1998 16:28:55 +0100 (BST)
Received: from [208.151.41.203] by milhouse.infohouse.com
          (Post.Office MTA v3.5.1 release 219 ID# 141-53521U2500L250S0V35)
          with ESMTP id com; Sat, 22 Aug 1998 11:19:31 -0400
X-Sender: ic11748@mail.infohouse.com
Message-Id: 
In-Reply-To: 
References: <35DDFE47.F8539D6C@nmol.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sat, 22 Aug 1998 11:34:42 -0500
To: "Matt J. Ingalls" , csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.stork
From: tolve 
Subject: Re: gain, balance
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

hmm yes you did, and i didn't. but i am now. please sir can we have this
feature? complete with option to specify percentage? it would be most
appreciated!

tolve

>i mentioned this a couple of weeks ago, with no response --
>if people would like Dave's feature Mike talks about below,
>i could "port" it to be in canonical sources..
> (just needs a few mac->unix file things
>and printf instead of progress dialog..)
>
>would just be an option flag,
>-matt
>
>
>
>On Fri, 21 Aug 1998, Mike Berry wrote:
>
>> The PowerPC version lets you write the file in floats and then automatically
>> post-normalize to 16 bits.  We assume post-normallization to 100%, but I
>>don't
>> think it would be too hard to make this settable.
>> --
>> Mike Berry
>> mikeb@nmol.com
>> http://www.nmol.com/users/mikeb
>>
>>
>>





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14708;
          22 Aug 98 16:59 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29799;
          22 Aug 98 16:59 BST
Received: (qmail 21225 invoked from network); 22 Aug 1998 15:59:52 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 22 Aug 1998 15:59:52 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA20802); Sat, 22 Aug 1998 16:57:27 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 16:57:16 +0100
Received: from mail.infohouse.com [206.30.88.4] by hermes via ESMTP (QAA10851); Sat, 22 Aug 1998 16:57:15 +0100 (BST)
Received: from [208.151.41.203] ([208.151.41.73]) by milhouse.infohouse.com
          (Post.Office MTA v3.5.1 release 219 ID# 141-53521U2500L250S0V35)
          with ESMTP id com; Sat, 22 Aug 1998 11:47:54 -0400
X-Sender: ic11748@mail.infohouse.com
Message-Id: 
In-Reply-To: 
 
References: 
Mime-Version: 1.0
Content-Type: text/enriched; charset="us-ascii"
Date: Sat, 22 Aug 1998 12:03:05 -0500
To: "B. Battey" , csound@maths.ex.ac.uk
MMDF-Warning:  Parse error in original version of preceding line at UK.AC.Bath.maths.stork
From: tolve 
Subject: Re: gain, balance
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

have been resorting to soundhack myself.

ftp://music.calarts.edu/pub/SoundHack/


tolve


>Given the time that I've expended just this evening fighting the

>amplitude-containment battle via trial and error on a slow pvoc-based

>instrument, I think such a feature would be very worthwhile. 

>

>-=Bret

>

>On Fri, 21 Aug 1998, Matt J. Ingalls wrote:

>

>> 

>> i mentioned this a couple of weeks ago, with no response --

>> if people would like Dave's feature Mike talks about below,

>> i could "port" it to be in canonical sources..

>>  (just needs a few mac->unix file things

>> and printf instead of progress dialog..)

>> 

>> would just be an option flag,

>> -matt

>> 

>> 

>> 

>> On Fri, 21 Aug 1998, Mike Berry wrote:

>> 

>> > The PowerPC version lets you write the file in floats and then
automatically

>> > post-normalize to 16 bits.  We assume post-normallization to 100%,
but I don't

>> > think it would be too hard to make this settable.

>> > -- 

>> > Mike Berry

>> > mikeb@nmol.com

>> > http://www.nmol.com/users/mikeb

>> > 

>> > 

>> > 

>> 

>> 






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14820;
          22 Aug 98 17:57 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa00488;
          22 Aug 98 17:57 BST
Received: (qmail 22534 invoked from network); 22 Aug 1998 16:57:28 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 22 Aug 1998 16:57:28 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (RAA20692); Sat, 22 Aug 1998 17:54:47 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 17:54:35 +0100
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (RAA25125); Sat, 22 Aug 1998 17:54:34 +0100 (BST)
Received: (qmail 13843 invoked by uid 1964); 22 Aug 1998 09:54:03 -0700
Date: Sat, 22 Aug 1998 09:54:03 -0700 (PDT)
From: "Matt J. Ingalls" 
To: tolve 
cc: csound@maths.ex.ac.uk
Subject: Re: gain, balance
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


i might add that the AIFF-C is supported on all platforms now..
actually, its part of AIFF, but when you select 32-bit floats,
AIFF-C is created, which is basically AIFF file with an extra
info containing max-amp value.

i will take a look into the rescale code today..
(the flag will be -e)


-matt






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa14832;
          22 Aug 98 18:04 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa00596;
          22 Aug 98 18:04 BST
Received: (qmail 13432 invoked from network); 22 Aug 1998 17:04:14 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 17:04:14 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA02412); Sat, 22 Aug 1998 18:01:11 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 18:01:00 +0100
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (RAA07630); Sat, 22 Aug 1998 17:59:53 +0100 (BST)
Received: (qmail 14107 invoked by uid 1964); 22 Aug 1998 09:59:19 -0700
Date: Sat, 22 Aug 1998 09:59:19 -0700 (PDT)
From: "Matt J. Ingalls" 
Reply-To: "Matt J. Ingalls" 
To: Nicola Bernardini 
cc: Csound mailing list 
Subject: Re: option flag (was Re: gain, balance)
In-Reply-To: 
Message-ID: 
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


there's gonna have to be some flags that are platform-specific.
maybe if we agree on what they are
i've had to change mac-specific flags a handful of times to accomodate
new ones.  but now looks like all platforms are #ifdef-d now
(i.e. MAC) so it should be easier..
(could also consolidate flags into one -- like sample-size and
(headers, etc..)

i dont know why the linux flag dissappeared...

-matt

On Sat, 22 Aug 1998, Nicola Bernardini wrote:

> On Fri, 21 Aug 1998, Matt J. Ingalls wrote:
> 
> [snip]
> > i mentioned this a couple of weeks ago, with no response --
> > if people would like Dave's feature Mike talks about below,
> > i could "port" it to be in canonical sources..
> 
> it could be a very nice idea...
> 
> [snip]
> > would just be an option flag,
> 
> speaking of which, in 3.484 some funny things happened: a -Q option appeared
> in the Mac/Metrowerks version and a -Q option disappeared in the linux/unix
> version (I put that back in the linux sources distributed by me and Dave
> Phillips). The two -Q options bear no relation to each other, so we're ending
> up having incompatible command lines. Is there a good reason for this?
> If name space pollution is the problem, we could adopt the gnu getopt package
> that allows long names and is free (I would think it would compile on
> all platforms).
> 
> Nicola
> 
> ------------------------------------------------------------------------
> Nicola Bernardini
> E-mail: nicb@axnet.it
>  
> Re graphics: A picture is worth 10K words -- but only those to describe
> the picture.  Hardly any sets of 10K words can be adequately described
> with pictures.
> 
> 



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15333;
          22 Aug 98 19:18 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa01511;
          22 Aug 98 19:18 BST
Received: (qmail 18852 invoked from network); 22 Aug 1998 18:18:47 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 18:18:47 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA00533); Sat, 22 Aug 1998 19:16:19 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 19:16:08 +0100
Received: from alpha2.axp.mdx.ac.uk [158.94.2.9] by hermes via ESMTP (TAA12513); Sat, 22 Aug 1998 19:16:07 +0100 (BST)
Received: from CONVERSION-DAEMON by mdx.ac.uk (PMDF V5.1-12 #29138)
 id <01J0WYIXFBMO8Y7WHT@mdx.ac.uk> for Csound@maths.ex.ac.uk; Sat,
 22 Aug 1998 19:18:40 BST
Received: from default (stu-dialup9.mdx.ac.uk)
 by mdx.ac.uk (PMDF V5.1-12 #29138) with SMTP id <01J0WYIW7CEE8Y87SE@mdx.ac.uk>
 for Csound@maths.ex.ac.uk; Sat, 22 Aug 1998 19:18:39 +0100 (BST)
Date: Sat, 22 Aug 1998 19:07:30 +0100
From: Jamie Bullock 
Subject: Granule documentation question
To: Csound List 
Message-id: <000201bdcdf7$eb587120$33015e9e@default>
MIME-version: 1.0
X-Mailer: Microsoft Outlook Express 4.72.2106.4
Content-type: text/plain; charset=iso-8859-1
Content-transfer-encoding: 7BIT
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4
X-Priority: 3
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I'm sure this is a really obvious question and I'm going to kick myself when
I find the answer, but where do the values for ipitch1-4 come from in the
example provided with the 'granule' documentation? The helpfile I have gives
1.42 for a
fifth up and .29 for a 7th down.
Surely it should be around 1.5 for a fifth up (equal tempered would be about
1.49). 1.42 gives roughly a diminished fifth (I think my ears confirm
this!). .29 as a value for a 7th down is even more puzzling, the
documentation implies that .9 would give an octave down (surely .5 is an
octave down), and what kind of seventh, major or minor?

Yours confusedly,

JamieB




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa15628;
          23 Aug 98 0:00 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa04594;
          23 Aug 98 0:00 BST
Received: (qmail 3780 invoked from network); 22 Aug 1998 23:00:25 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 22 Aug 1998 23:00:25 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA12579); Sat, 22 Aug 1998 23:57:33 +0100 (BST)
Received: from exeter.ac.uk by maths.ex.ac.uk; Sat, 22 Aug 1998 23:57:23 +0100
Received: from [193.121.99.70] by hermes via ESMTP (XAA22096); Sat, 22 Aug 1998 23:57:22 +0100 (BST)
Received: from turing.hogent.be ([193.190.88.183]) by hurricane.netgate.be
          (post.office MTA v2.0 0813 ID# 0-32575U60) with ESMTP id AAF286
          for ; Sun, 23 Aug 1998 01:03:23 +0200
From: David Schuyeteneer 
To: Csound List 
Subject: [??] Japanese Noise site 
Date: Sun, 23 Aug 1998 00:55:20 +0200
X-MSMail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1155
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Message-ID: <19980822230241386.AAF286@turing.hogent.be>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I checked for records of AUBE and MERZBOW, and indeed, they are just
*great*.....I bought
"Substructural Penetration" (Aube) and "Space Metalizer" (Merzbow).....Is
there
any www site dedicated to this Japanese Noise ???? 



David.