Csound Csound-dev Csound-tekno Search About

Re: HRTFs on PC

Date1997-04-08 13:24
FromSteven Curtin
SubjectRe: HRTFs on PC
At 12:38 PM 4/8/97 GMT, you wrote:
>Hi again,
>        This is just a request for information on whether the HRTFs 
>opcode that John fixed for PCs is included in Csound for PC on the 
>Bath server yet,

I have a version here compiled with HRTFer under MSVC 4.0 that I've
uploaded to the Bath site- I don't know if it's been posted yet.  It also
has the Mills interpolating soundin opcodes that I've renamed to
"soundini".  The version string will say "3.451".  

One problem I've had with HRTFer is clicks and pops on the output when
using John's example score- it seems that there are interpolation errors
when sweeping the different positions.  Fixed positions are not a problem,
although if you specified a position where the interpolation was having
troubles you might distortion on the output.  

Have other people had similar experiences on other platforms or is this a
PC-only problem?  John was pointing out that HRTFer started out as a
student project and so it might need some polishing.  I'm willing to do
some of this but would like to know if other people already have some fixes
to prevent duplicate efforts.

regards,

Steven Curtin

--------------------------------------------------------------
Steven Curtin  
http://www.emf.org/people_curtin.html
Lucent Technologies - Bell Labs Innovations
rm. 3C-208, 200 Laurel Ave S
Middletown, NJ 07748-4801  U S A
ph: (908)957-2996   fax: (908)957-6878
--------------------------------------------------------------



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09329;
          8 Apr 97 14:48 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa18366;
          8 Apr 97 14:48 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 14:48:17 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (NAA23390);
          Tue, 8 Apr 1997 13:23:38 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 14:23:28 +0100
Received: from cbgw1.lucent.com [192.20.239.133] by hermes via SMTP (NAA23379);
          Tue, 8 Apr 1997 13:23:24 GMT
Received: from mtm3.mt.lucent.com 
          by cbig1.firewall.lucent.com (SMI-8.6/EMS-L sol2)	id JAA15905;
          Tue, 8 Apr 1997 09:15:33 -0400
Received: from sdcpc2.mt.lucent.com 
          by mtm3.mt.lucent.com (5.x/EMS-L sol2)	id AA00363;
          Tue, 8 Apr 1997 09:23:02 -0400
Message-Id: <3.0.32.19970408092239.006a2890@mtm3.mt.lucent.com>
X-Sender: sdcurtin@mtm3.mt.lucent.com
X-Mailer: Windows Eudora Pro Version 3.0 (32)
Date: Tue, 08 Apr 1997 09:22:41 -0400
To: csound@maths.ex.ac.uk
From: Steven Curtin 
Subject: re: HRTFer on PC
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

At 12:38 PM 4/8/97 GMT, you wrote:
>Hi again,
>        This is just a request for information on whether the HRTFs
>opcode that John fixed for PCs is included in Csound for PC on the
>Bath server yet,

I have a version here compiled with HRTFer under MSVC 4.0 that I've
uploaded to the Bath site- I don't know if it's been posted yet.  It
also has the Mills interpolating soundin opcodes that I've renamed to
"soundini".  The version string will say "3.451".

One problem I've had with HRTFer is clicks and pops on the output when
using John's example score- it seems that there are interpolation errors
when sweeping the different positions.  Fixed positions are not a
problem,although if you specified a position where the interpolation was
having
troubles you might distortion on the output.

Have other people had similar experiences on other platforms or is this
aPC-only problem?  John was pointing out that HRTFer started out as a
student project and so it might need some polishing.  I'm willing to do
some of this but would like to know if other people already have some
fixes to prevent duplicate efforts.

regards,

Steven Curtin


--------------------------------------------------------------
Steven Curtin  
http://www.emf.org/people_curtin.html
Lucent Technologies - Bell Labs Innovations
rm. 3C-208, 200 Laurel Ave S
Middletown, NJ 07748-4801  U S A
ph: (908)957-2996   fax: (908)957-6878
--------------------------------------------------------------



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09556;
          8 Apr 97 16:09 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa19625;
          8 Apr 97 16:09 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 16:09:14 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (OAA29121);
          Tue, 8 Apr 1997 14:50:24 GMT
Received: from exub by maths.exeter.ac.uk; Tue, 8 Apr 97 15:50:08 +0100
Received: from root@december.real.net.au [203.25.56.1] by exub 
          via ESMTP (PAA00309); Tue, 8 Apr 1997 15:50:03 +0100
Received: from [203.25.59.127] (sydney27.real.net.au [203.25.59.127]) 
          by december.real.net.au (8.6.12/8.6.9) with SMTP id AAA29791 
          for ; Wed, 9 Apr 1997 00:38:40 +1000
X-Sender: mogambo@pop.real.net.au (Unverified)
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Wed, 9 Apr 1997 00:34:13 +1000
To: csound@maths.ex.ac.uk
From: Arne Hanna 
Subject: Mathematica
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

If anyone knows the URL for Mathematica, I
would be very grateful.
Cheers
Arne





Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09801;
          8 Apr 97 16:39 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa20542;
          8 Apr 97 16:39 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 16:38:48 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (PAA00411);
          Tue, 8 Apr 1997 15:08:15 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 16:08:05 +0100
Received: from aiguemarine.unice.fr [192.134.39.66] by hermes 
          via ESMTP (PAA00397); Tue, 8 Apr 1997 15:08:04 GMT
Received: (from desnogue@localhost) by aiguemarine.unice.fr (8.8.3/8.6.10) 
          id RAA03372; Tue, 8 Apr 1997 17:07:52 +0100
Date: Tue, 8 Apr 1997 17:07:52 +0100
Message-Id: <199704081607.RAA03372@aiguemarine.unice.fr>
From: Laurent Desnogues 
To: mogambo@pop.real.net.au
Cc: csound@maths.ex.ac.uk
In-Reply-To:  (mogambo@pop.real.net.au)
Subject: Re: Mathematica
Comments: Hyperbole mail buttons accepted, v04.01.
Mime-Version: 1.0 (generated by tm-edit 7.94)
Content-Type: text/plain; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

> If anyone knows the URL for Mathematica, I
> would be very grateful.

   http://www.wri.com


		Laurent



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10163;
          8 Apr 97 19:09 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa22107;
          8 Apr 97 19:09 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 19:08:55 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA22788);
          Tue, 8 Apr 1997 18:01:36 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 19:05:12 +0100
Received: from strowger.pass.theplanet.net [194.152.64.68] by hermes 
          via ESMTP (SAA22769); Tue, 8 Apr 1997 18:01:26 GMT
Received: from default(really [194.152.70.194]) 
          by strowger.pass.theplanet.net	via sendmail 
          with esmtp	id 	for ;
          Tue, 8 Apr 97 19:00:15 +0100 (BST)	(/\##/\ Smail3.1.30.16 #30.4 built 29-jan-96)
Message-Id: 
From: Steve Bussey 
To: csound mailing list 
Subject: Eliminating Noise
Date: Tue, 8 Apr 1997 18:58:56 +0100
X-Msmail-Priority: Normal
X-Priority: 3
X-Mailer: Microsoft Internet Mail 4.70.1157
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Help

Can anybody advise me how to get really CLEAN sounding .ORCs???
I have been through all the sounds in the ACCCI library and they all sound
somewhat noisy, even though I am using sr = kr = 44100. The noise is not
there in between notes, it is only during the note and is particularly
noticable during the decay. This is with all type of sound generation
including FM and wavetable.

I am using Winsound v3.44, set for 16 bit .WAV files.

Any ideas??

Steve Bussey
steve@bussey.softnet.co.uk




Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10281;
          8 Apr 97 19:50 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa22406;
          8 Apr 97 19:49 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 19:49:41 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA24298);
          Tue, 8 Apr 1997 18:42:17 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 19:42:05 +0100
Received: from talisker.pact.srf.ac.uk [193.37.225.1] by hermes 
          via ESMTP (SAA24293); Tue, 8 Apr 1997 18:42:04 GMT
Received: (from rwd@localhost) by talisker.pact.srf.ac.uk (8.7.5/8.7.3) 
          id TAA25917 for csound@noether.ex.ac.uk;
          Tue, 8 Apr 1997 19:36:37 +0100 (BST)
From: Richard Dobson 
Message-Id: <199704081836.TAA25917@talisker.pact.srf.ac.uk>
Subject: Re: Newbie Question
To: csound@maths.ex.ac.uk
Date: Tue, 8 Apr 1997 19:36:36 +0100 (BST)
X-Mailer: ELM [version 2.4 PL22]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Its really a case of 'yes and no'. The first three pfields in the score
are required for all instruments (instr number, start time, and
duration). Therefore, in principle, scores with just these three should
work with all orchestras. All other pfields are defined by the composer
to suit a particular instrument.

Strangely enough, it has never been the case that 'every orchestra plays every
score', even in the rarefied world of real musicians. However hard I try,
I cannot play more than one note at a time on my flute, so I will never be able
to play a piano piece - I cannot play anything outside my flute's range, either.
Similarly, a piano cannot make a crescendo or swell on a note once it has been
started, so playing vocal or strings-oriented music is impossible on a piano.
Remember that an 'orchestra' is nothing more, or less, than a set of one (or more)
instruments, each with abilities, inabilities, and limitations. To play ANY
instrument, and to write for it, you must know :
	1: what it can do
	2: what it cannot do
	3: what information it needs to do it
	4: how it needs that information to be presented


And, guess what - this is called COMPOSING!!! :-)





Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10287;
          8 Apr 97 19:51 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa22416;
          8 Apr 97 19:50 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 19:50:33 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (SAA24260);
          Tue, 8 Apr 1997 18:41:27 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 19:41:17 +0100
Received: from ulysses.Stanford.EDU [36.49.0.124] by hermes 
          via ESMTP (SAA24250); Tue, 8 Apr 1997 18:41:13 GMT
Received: (from tkunze@localhost) 
          by ulysses.stanford.edu (950413.SGI.8.6.12/950213.SGI.AUTOCF) 
          id LAA26429; Tue, 8 Apr 1997 11:40:10 -0700
From: Tobias Kunze 
Message-Id: <9704081140.ZM26428@ulysses.stanford.edu>
Date: Tue, 8 Apr 1997 11:40:10 -0700
In-Reply-To: "Steve Bussey"         "Eliminating Noise" (Apr  8,  6:58pm)
References: 
Reply-To: t@ulysses.stanford.edu
X-Url: http://www.stanford.edu/~tkunze
X-Mailer: Z-Mail (3.2.3 08feb96 MediaMail)
To: Steve Bussey , 
    csound mailing list 
Subject: Re: Eliminating Noise
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


The use of a control rate other than kr = sr introduces a not
insignificant amount of noise.  Try enveloping an oscillator
and watch the result with your favorite spctrum analyzer.  The
signal is clean at kr = sr only.  I get ~20dB sidelobes at
ksmps = 100.


-- 

______________________________________________________________________

Tobias Kunze                       t@kunze.stanford.edu
CCRMA, Stanford University         http://www.stanford.edu/~tkunze




Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10534;
          8 Apr 97 22:51 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa23065;
          8 Apr 97 22:51 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Tue, 8 Apr 1997 22:51:22 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (VAA00418);
          Tue, 8 Apr 1997 21:46:35 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Tue, 8 Apr 97 22:53:58 +0100
Received: from rumpleteazer.UCSC.EDU [128.114.129.45] by hermes 
          via ESMTP (VAA00413); Tue, 8 Apr 1997 21:46:25 GMT
Received: from am.UCSC.EDU (26942@am.UCSC.EDU [128.114.129.26])          
          by cats.ucsc.edu (8.8.5/8.8.4.cats-athena) with SMTP	  id OAA19340 
          for ; Tue, 8 Apr 1997 14:46:30 -0700 (PDT)
Received: by am.UCSC.EDU (8.6.13/4.7) id OAA00259;
          Tue, 8 Apr 1997 14:46:25 -0700
Date: Tue, 8 Apr 1997 14:46:24 -0700 (PDT)
From: John Francis Beahan 
X-Sender: jfbeahan@am.UCSC.EDU
To: csound mail list 
Subject: research on unpitch sound
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Has anybody done extensive research on creating unpitched sound with 
csound?  I have heard instruments creating white noise and such but I was 
wondering 
if any work was done on more complex sounds like engines, fire burning, 
sirens, ocean sounds, etc... 

Any help would be apreciated,  John Beahan



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id a


Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa12184;
          9 Apr 97 6:49 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa24276;
          9 Apr 97 6:48 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Wed, 9 Apr 1997 06:48:39 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (FAA12171);
          Wed, 9 Apr 1997 05:46:03 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Wed, 9 Apr 97 06:53:29 +0100
Received: from redvax1.dgsca.unam.mx [132.248.104.4] by hermes 
          via SMTP (FAA12166); Wed, 9 Apr 1997 05:45:52 GMT
Received: from cs2-7.modems.unam.mx 
          by servidor.dgsca.unam.mx (5.0/SMI-SVR4)	id tf;
          Wed, 9 Apr 1997 00:49:15 +0600
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Wed, 9 Apr 1997 00:47:41 -0600
To: csound@maths.ex.ac.uk
From: Pablo Silva 
Subject: Re: Eliminating Noise
Content-Length: 1009
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello, CSounders:

On April 8, 1997 Tobias Kunze wrote:

>The use of a control rate other than kr = sr introduces a not
>insignificant amount of noise.  Try enveloping an oscillator
>and watch the result with your favorite spctrum analyzer.  The
>signal is clean at kr = sr only.  I get ~20dB sidelobes at
>ksmps = 100.

I'm relatively new to CSound,  still this seems a bit strange... All
examples that come with the tutorials set the sr to kr ratio at 10/1 which
would mean a ksamp of 10. Does this mean we would need to have a kr of the
same value as the sr to get truly clean results? This, it seems to me,
would make the difference between control signals and audio signals moot,
and of course would dramatically increment computation time... Am I missing
something here?

Pablo

______________________________________________________________________

Pablo Silva
hpsilva@servidor.unam.mx
Escuela Nacional de Musica, UNAM, Mexico
______________________________________________________________________






Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13185;
          9 Apr 97 8:32 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa24722;
          9 Apr 97 8:31 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Wed, 9 Apr 1997 08:31:50 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (HAA14502);
          Wed, 9 Apr 1997 07:28:23 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Wed, 9 Apr 97 08:28:15 +0100
Received: from root@www.snafu.de [194.121.224.3] by hermes via SMTP (HAA14492);
          Wed, 9 Apr 1997 07:28:03 GMT
Received: by berlin.snafu.de (Smail3.2)	  from rubo.snafu.de (192.109.99.53) 
          with smtp	  id ;
          Wed, 9 Apr 1997 09:27:52 +0200 (MET DST)
Message-Id: <3.0.16.19970409082543.08c7aba0@berlin.snafu.de>
X-Sender: rubo@berlin.snafu.de
X-Mailer: Windows Eudora Pro Version 3.0 (16)
Date: Wed, 09 Apr 1997 08:26:12 +0200
To: Richard Dobson 
From: Ruediger Borrmann 
Subject: Re: Newbie Question
Cc: csound@maths.ex.ac.uk
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

>Remember that an 'orchestra' is nothing more, or less, than a set of one
(or more)
>instruments, each with abilities, inabilities, and limitations. To play ANY
>instrument, and to write for it, you must know :
>	1: what it can do
>	2: what it cannot do
>	3: what information it needs to do it
>	4: how it needs that information to be presented
>
>
>And, guess what - this is called COMPOSING!!! :-)
>

In general yes, BUT ...
some of us (possibly the majority) like to walk around
and try all instruments we find on our way around the world.
We like to use them just to play a little bit around with them.
Call it try and error and not composing, but it's fun and
really ENJOYBLE, although we'll never be experts on any instrument. :-)

Ruediger Borrmann

P.S.
And fortunately some of our fun is also fun to listen to!
Ups, we're going to start a copyright discussion ...






--
Ruediger Borrmann - rubo@berlin.snafu.de - http://www.snafu.de/~rubo
 



Received: from stork2.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa13852;
          9 Apr 97 11:09 BST
Received: from goggins.bath.ac.uk by stork.maths.Bath.AC.UK id aa26615;
          9 Apr 97 11:09 BST
Received: from hermes.ex.ac.uk by goggins.bath.ac.uk with SMTP (PP);
          Wed, 9 Apr 1997 11:09:02 +0100
Received: from noether [144.173.8.10] by hermes via SMTP (JAA21437);
          Wed, 9 Apr 1997 09:58:39 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk;
          Wed, 9 Apr 97 10:58:28 +0100
Received: from dns.doruk.net.tr [195.174.34.101] by hermes via SMTP (JAA21412);
          Wed, 9 Apr 1997 09:58:25 GMT
From: omni 
To: csound@maths.ex.ac.uk
Subject: LPC on Csound
Date: Wed, 9 Apr 97 12:41:14
Comment: Turkce karekter filtresinden gecirildi.
Content-Type: text/plain; charset="us-ascii"
Message-Id:  <9704091244.aa04665@bbs.doruk.com.tr>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk



Dear Sirs,

I have some difficulties with LPC on Csound. 
The csound manual doesn't help me much,so I couldn't gather my theory with
Csound LPC commands.

We know the traditional LPC definition is y(n)=x(n)+sigma(i=1,M)bi*y(n-i)

So far as I understand, x(n) is here the "asig" argument for lpreson .
But what use do have the krmsr,krmso,kerr,kcps parameters of lpread and how do
we use them. It will be helpful for me,if someone mails me also an example
.orc and .sco.

Thanks for your interest.

Best regards,

Sinan Boekesoy
E-mail:omni@doruk.com.tr