Csound Csound-dev Csound-tekno Search About

a C++ question

Date1998-02-02 15:57
FromDave Phillips
Subjecta C++ question
Greetings:

  I'm trying to compile Mara Helmuth's Patchmix for g++ under Linux. I
finally found and compiled the Lamont X Toolkit library, now I'm running
into this problem:

  brutus:~/tmp/pmix/g++# make -f Makefile.linux
  g++ -O -fstrength-reduce -finline-functions -DBIGENDIAN -DXSET
-I/usr/include/g++   -c patch.c -o patch.o
  In file included from plus.h:48,
                 from patch.c:22:
  inst.h:21: syntax error before `*'

Lines 1 through 17 are all comments or blank lines. And here's what's in
inst.h at line 21:

  class instrument
    {
       private:
-->        FILE* fp;

I know next to nothing about C++ programming, so am I missing something
obvious here ? I figure there must be some good C++ programmers on this
list, I hope no-one minds my asking here...

== Dave Phillips

       http://www.bright.net/~dlphilp/index.html
   http://www.bright.net/~dlphilp/linux_soundapps.html



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08921;
          2 Feb 98 17:20 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa02561;
          2 Feb 98 17:20 GMT
Received: (qmail 262 invoked from network); 2 Feb 1998 16:59:52 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 16:59:52 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA07074); Mon, 2 Feb 1998 16:27:02 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 16:26:32 GMT
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (QAA26890); Mon, 2 Feb 1998 16:26:24 GMT
Received: (qmail 24801 invoked from network); 2 Feb 1998 16:22:32 -0000
Received: from unknown (HELO igor) (194.117.146.109)
  by jaguars with SMTP; 2 Feb 1998 16:22:32 -0000
Message-Id: <34D5F15F.26E47371@cableinet.co.uk>
Date: Mon, 02 Feb 1998 16:16:31 +0000
From: Richard Dobson 
Reply-To: RWD@cableinet.co.uk
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.01 [en] (Win95; I)
Mime-Version: 1.0
To: Dave Phillips 
Cc: csound@maths.ex.ac.uk
Subject: Re: a C++ question
X-Priority: 3 (Normal)
References: <34D5ED07.638B7666@bright.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Unless there is in fact something awry earlier, the most likely reason
for this is that FILE has not been defined - it's normally defined (a
macro) in the header file . So you would need to check the
#include list at the top of the file, and check those, etc.

Richard Dobson



Dave Phillips wrote:

> Greetings:
>
>   I'm trying to compile Mara Helmuth's Patchmix for g++ under Linux. I
>
> finally found and compiled the Lamont X Toolkit library, now I'm
> running
> into this problem:
>
>   brutus:~/tmp/pmix/g++# make -f Makefile.linux
>   g++ -O -fstrength-reduce -finline-functions -DBIGENDIAN -DXSET
> -I/usr/include/g++   -c patch.c -o patch.o
>   In file included from plus.h:48,
>                  from patch.c:22:
>   inst.h:21: syntax error before `*'
>
> Lines 1 through 17 are all comments or blank lines. And here's what's
> in
> inst.h at line 21:
>
>   class instrument
>     {
>        private:
> -->        FILE* fp;
>
> I know next to nothing about C++ programming, so am I missing
> something
> obvious here ? I figure there must be some good C++ programmers on
> this
> list, I hope no-one minds my asking here...
>
> == Dave Phillips
>
>        http://www.bright.net/~dlphilp/index.html
>    http://www.bright.net/~dlphilp/linux_soundapps.html






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08973;
          2 Feb 98 17:37 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa03941;
          2 Feb 98 17:37 GMT
Received: (qmail 1705 invoked from network); 2 Feb 1998 17:18:12 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 17:18:12 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (QAA18482); Mon, 2 Feb 1998 16:37:13 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 16:36:53 GMT
Received: from Thuban.AC.HMC.Edu [134.173.53.8] (may be forged) by hermes via SMTP (QAA00207); Mon, 2 Feb 1998 16:36:33 GMT
Received: from [134.173.38.61] (Spjut.Eng.HMC.Edu)
 by THUBAN.AC.HMC.EDU (PMDF V5.1-7 #25450)
 with ESMTP id <01IT3J9ESOZGBB2ZZK@THUBAN.AC.HMC.EDU> for
 csound@maths.ex.ac.uk; Mon, 2 Feb 1998 08:29:18 PST
Date: Mon, 02 Feb 1998 08:30:57 -0800
From: Erik Spjut 
Subject: Re: instrument design?
In-Reply-To: <19980202120956.21236.rocketmail@send1c.yahoomail.com>
X-Sender: spjut@thuban.ac.hmc.edu
To: Qian Chen , Csound 
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

At 4:09 AM -0800 2/2/98, Qian Chen wrote:
>Hi, there
>
>Since I first got intersted in csound and dsp, I have always been
>wondering whether there are some methods when I want to generate a
>specific sound?

Inverse problems are often very difficult. Csound and other related
technologies are very good at answering the question: If I use this
algorithm, what will it sound like? The inverse problem: If I want this
sound, what algorithm do I use?, has an infinite number of solutions, and
an infinitely larger number of non-solutions. Those who are best at it tend
to use a combination of intuition, analysis, and a trained ear.

My personal heuristics are:

1) If I want the sound of a physical instrument (e.g., a violin) I hunt
down someone who knows how to play one, and with liberal quantities of food
and beverages (and promises of fame and glory) try to persuade them to play
it for me.

2) If I want lots of close-to-physical instruments, I use samples of the
same. I'll occasionally use hetero/adsyn, lpanal/lpread, or pvanal/pvoc on
the samples to get what I want.

3) If I want synthy-electronicky sounds I rely on my 25+ years of
experience with oscillators, signal generators, and analog synths, and my
15+ years of experienc with digital synthesis to pick a starting point, and
then I tinker until it's close enough.

4) I play with all of the new opcodes in Csound when I have the time (I'm
presently way behind).

5) When someone poses an interesting question on the list I spend a little
time looking for a solution or two.

If you know enough about your sound to describe it EXACTLY in terms of
frequency content versus time, there are a number of methods in Csound to
realize it exactly. Unfortunately, people usually think of sounds like: I
want a cross between a piccolo and a tuba that plucks and pitch-bends like
a guitar, but I want it to sing Swahili and sound like it's being played in
the National Cathedral. All of the experienced Csounders already have their
minds going on how to do it, but there is NO general algorithm to get
there. Sorry.

-------------------------------------------------------------------------------
Erik Spjut (rhymes with cute) - Acting Director,The Center for Design Education
and/or Associate Professor of Engineering
Harvey Mudd College, Claremont, CA 91711  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 aa09096;
          2 Feb 98 18:09 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa06464;
          2 Feb 98 18:09 GMT
Received: (qmail 7316 invoked from network); 2 Feb 1998 18:09:50 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 18:09:50 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA04714); Mon, 2 Feb 1998 18:01:00 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 18:00:36 GMT
Received: from sparticus.bright.net [205.212.123.14] by hermes via ESMTP (SAA02637); Mon, 2 Feb 1998 18:00:28 GMT
Received: from brutus (root@find4-cs-14.dial.bright.net [205.212.145.194]) by sparticus.bright.net (8.8.7/8.8.7/FNG) with SMTP id MAA28499; Mon, 2 Feb 1998 12:56:05 -0500 (EST)
Message-Id: <34D60BBD.61A2F620@bright.net>
Date: Mon, 02 Feb 1998 13:09:01 -0500
From: Dave Phillips 
X-Mailer: Mozilla 3.0 (X11; I; Linux 2.0.29 i486)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Re: a C++ question
References: <34D5ED07.638B7666@bright.net> <34D5F15F.26E47371@cableinet.co.uk>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Many thanks to all who responded. I had indicated stdio.h in plus.h, but
I had a bad path. I have new problems now, but at least the first object
has compiled. Thank you !

== Dave Phillips

       http://www.bright.net/~dlphilp/index.html
   http://www.bright.net/~dlphilp/linux_soundapps.html



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09402;
          2 Feb 98 19:10 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa11715;
          2 Feb 98 19:09 GMT
Received: (qmail 11610 invoked from network); 2 Feb 1998 19:10:05 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 19:10:05 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA22276); Mon, 2 Feb 1998 19:03:10 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 19:02:41 GMT
Received: from [193.121.99.70] by hermes via ESMTP (TAA21221); Mon, 2 Feb 1998 19:02:33 GMT
Received: from nobody ([193.74.7.94]) by hurricane.netgate.be
          (post.office MTA v2.0 0813 ID# 0-32575U60) with ESMTP id AAD316
          for ; Mon, 2 Feb 1998 20:06:16 +0100
From: David Schuyeteneer 
To: csound mailing list 
Subject: HETERO/ADSYN ??
Date: Mon, 2 Feb 1998 20:01:47 +0100
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: <19980202190606562.AAD316@nobody>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

For what purpose are hetero and the other executables that come with the
Csound executable ??

Spectral analysis ?


David.





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09692;
          2 Feb 98 21:34 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa22773;
          2 Feb 98 21:34 GMT
Received: (qmail 18815 invoked from network); 2 Feb 1998 21:34:16 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 21:34:16 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA00526); Mon, 2 Feb 1998 21:29:34 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 21:29:17 GMT
Received: from endeavor.flash.net [209.30.0.40] by hermes via ESMTP (VAA14686); Mon, 2 Feb 1998 21:29:10 GMT
Received: from flash.net (fwasc2-88.flash.net [209.30.14.88])
	by endeavor.flash.net (8.8.7/8.8.5) with ESMTP id PAA11562;
	Mon, 2 Feb 1998 15:29:02 -0600 (CST)
Message-Id: <34D63AB9.8C9DDBD8@flash.net>
Date: Mon, 02 Feb 1998 15:29:30 -0600
From: pete moss 
Organization: pete moss GmbH
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Mime-Version: 1.0
To: Qian Chen , csound 
Subject: Re: instrument design?
References: <19980202120956.21236.rocketmail@send1c.yahoomail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

i think you have just hit on the main problem of synthesis.  i often use
a three tiered approach to get the sound i want.

1) use my vastly limited knowledge of sound synthesis techniques and
tinker around with some things that might have some particular quality i
am looking for.

2) listen to other sources.  the other day i heard a bell like sound in
a video game i was playing.  i took the recording, filtered out all the
nonessential junk with cool edit pro, and analized the spectrum,
envelope, etc. and reconstructed the sound in csound, so well in fact
that i can barely tell the difference.  of course, if i had given it 5
minutes thought, i could have done it from scratch, but it is so fun to
tinker with analysis.

3) take my minidisc recorder and find someone who plays an instrument
with a similar sound to what i am thinking of.  then i tinker with that
sound and usually screw it all up to create my new sound.

basically i just use a little intuition and creative thinking to achieve
my sounds.  of course, many great sounds i have discovered by accident.
i have come to realize that the art of sound synthesis is 50%
ineptitude.

pete



Qian Chen wrote:

> Hi, there
>
> If this is off topic, please let me know.
>
> Since I first got intersted in csound and dsp, I have always been
> wondering whether there are some methods when I want to generate a
> specific sound?  As a programmer, I know that there are a lot of
> algorithms to realize some result I expect.  But as for sound
> generation, I have learned AM, FM, waveshaping... but have no idea
> about what to do when I really think out of a sound.  What I have to
> do is just trying again and again.  Sometimes I got what I want, but
> it is very seldom for me.  Could someone tell me what to do?
>
> Regards
>
> ==
> Qian Chen
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09698;
          2 Feb 98 21:34 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa22779;
          2 Feb 98 21:34 GMT
Received: (qmail 16314 invoked from network); 2 Feb 1998 21:34:35 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 2 Feb 1998 21:34:35 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA03290); Mon, 2 Feb 1998 21:31:46 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 21:31:23 GMT
Received: from endeavor.flash.net [209.30.0.40] by hermes via ESMTP (VAA01305); Mon, 2 Feb 1998 21:31:14 GMT
Received: from flash.net (fwasc2-88.flash.net [209.30.14.88])
	by endeavor.flash.net (8.8.7/8.8.5) with ESMTP id PAA12197
	for ; Mon, 2 Feb 1998 15:31:15 -0600 (CST)
Message-Id: <34D63B3F.BBA9C78C@flash.net>
Date: Mon, 02 Feb 1998 15:31:43 -0600
From: pete moss 
Organization: pete moss GmbH
X-Mailer: Mozilla 4.04 [en] (Win95; I)
Mime-Version: 1.0
To: csound 
Subject: randomize rnd()???
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

does anyone know how to randomize and/or set a seed value for the new
rnd(x) function?  i keep getting the same series of numbers every time i
run a score.

pete




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa09813;
          2 Feb 98 22:39 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa27407;
          2 Feb 98 22:39 GMT
Received: (qmail 22005 invoked from network); 2 Feb 1998 22:39:09 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 2 Feb 1998 22:39:09 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA09521); Mon, 2 Feb 1998 22:34:02 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Mon, 2 Feb 98 22:33:46 GMT
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (WAA11133); Mon, 2 Feb 1998 22:33:40 GMT
Received: (qmail 5928 invoked from network); 2 Feb 1998 22:29:53 -0000
Received: from unknown (HELO igor) (194.117.146.55)
  by jaguars with SMTP; 2 Feb 1998 22:29:53 -0000
Message-Id: <34D64780.C40E23B8@cableinet.co.uk>
Date: Mon, 02 Feb 1998 22:24:00 +0000
From: Richard Dobson 
Reply-To: RWD@cableinet.co.uk
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.01 [en] (Win95; I)
Mime-Version: 1.0
To: Qian Chen 
Cc: Csound 
Subject: Re: instrument design?
X-Priority: 3 (Normal)
References: <19980202120956.21236.rocketmail@send1c.yahoomail.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

This is such a big question, and the story of my life, that I don't
think any short reply can really deal with it! I like Paul Lansky's
statement to the effect that 'we are not limited by our imagination, we
are limited by our ability to describe sound'. So the problem is mapping
our internal description of a sound to an available (or
able-to-be-described) instrument. Description depends on a vocabulary,
and unfortunately the gulf between our everyday musical/sonic vocabulary
and that associated with computer synthesis is very large. Musicians,
composers especially, are very opportunistic - they exploit and explore
what is available, with a fair amount of trial and error, and thus new
instruments, new sounds, arise incrementally. Very often the 'errors'
prove to be the key - for example, multiphonics on wind instruments can
be seen as wrong fingerings and poor technique raised to an art form.
Those sounds weere always there, but they had to wait until someone said
'wow! what a great sound' instead of 'ugh! what a horrible sound'. There
is even a motto amongst African Drummers - 'every wrong note is a new
style'.

So, important as theories and methods are, trial and error as a
technique has the strength of history behind it - many would say that in
most cases, it is the prime mover, and the trials simply get better, and
the errors more interesting, with practice. So stick with it!


Richard Dobson

PS: I think this is very much 'on topic'!


Qian Chen wrote:

> Hi, there
>
> If this is off topic, please let me know.
>
> Since I first got intersted in csound and dsp, I have always been
> wondering whether there are some methods when I want to generate a
> specific sound?  As a programmer, I know that there are a lot of
> algorithms to realize some result I expect.  But as for sound
> generation, I have learned AM, FM, waveshaping... but have no idea
> about what to do when I really think out of a sound.  What I have to
> do is just trying again and again.  Sometimes I got what I want, but
> it is very seldom for me.  Could someone tell me what to do?
>
> Regards
>
> ==
> Qian Chen


Qian Chen wrote:

> Hi, there
>
> If this is off topic, please let me know.
>
> Since I first got intersted in csound and dsp, I have always been
> wondering whether there are some methods when I want to generate a
> specific sound?  As a programmer, I know that there are a lot of
> algorithms to realize some result I expect.  But as for sound
> generation, I have learned AM, FM, waveshaping... but have no idea
> about what to do when I really think out of a sound.  What I have to
> do is just trying again and again.  Sometimes I got what I want, but
> it is very seldom for me.  Could someone tell me what to do?
>
> Regards
>
> ==
> Qian Chen
>
> _________________________________________________________
> DO YOU YAHOO!?
> Get your free @yahoo.com address at http://mail.yahoo.com






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10180;
          3 Feb 98 2:23 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa13738;
          3 Feb 98 2:23 GMT
Received: (qmail 547 invoked from network); 3 Feb 1998 02:23:53 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 3 Feb 1998 02:23:53 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (CAA00079); Tue, 3 Feb 1998 02:20:46 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 02:20:30 GMT
Received: from howl.werewolf.net [206.103.224.20] by hermes via SMTP (CAA11110); Tue, 3 Feb 1998 02:20:24 GMT
Received: from @werewolf.net by howl.werewolf.net via SMTP (950413.SGI.8.6.12/940406.SGI)
	for  id UAA02479; Mon, 2 Feb 1998 20:20:29 -0600
Message-Id: <3.0.3.16.19980202202117.0a3ff5b0@werewolf.net>
X-Sender: hljmm@werewolf.net
X-Mailer: QUALCOMM Windows Eudora Light Version 3.0.3 (16)
Date: Mon, 02 Feb 1998 20:21:17
To: Csound 
From: Hans Mikelson 
Subject: Re: instrument design?
In-Reply-To: <34D64780.C40E23B8@cableinet.co.uk>
References: <19980202120956.21236.rocketmail@send1c.yahoomail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hi,

One technique I've been using lately is to look at the frequency analysis
and use a combination of fof and filtered noise to match the frequencies
present in the sound I'm trying to synthesize.

Another technique is to try and think about what is happening and come up
with some type of "physical model" of the sound.  This usually doesn't pan
out too well for me.

If I want new sounds I often look to mathematics especially books by
Clifford Pickover, Martin Gardner & A. K. Dewdney and others.  Look for
patterns in the universe that will sound good.  A function that is too busy
will just sound like noise, something too simple is not very interesting.
Look for functions or phenomena that lie somewhere in between.  Something
that generates a fairly simple waveform but evolves over time or with
respect to some input parameters.

Experience in programming synthesizers helps a lot because there you can
get instant feed back on your changes and develop an intuitive feel for
what will happen with things like attack, decay, filter frequency cut-off,
resonance, low frequency oscillators, FM synthesis etc.

Bye,
Hans Mikelson




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10342;
          3 Feb 98 4:11 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa25539;
          3 Feb 98 4:11 GMT
Received: (qmail 18029 invoked from network); 3 Feb 1998 04:11:12 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Feb 1998 04:11:12 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA20253); Tue, 3 Feb 1998 04:07:42 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 04:07:25 GMT
Received: from mtigwc03.worldnet.att.net [204.127.131.34] by hermes via ESMTP (EAA27233); Tue, 3 Feb 1998 04:07:19 GMT
Received: from LOCALNAME ([12.66.6.135]) by mtigwc03.worldnet.att.net
          (post.office MTA v2.0 0613 ) with SMTP id AAA8613;
          Tue, 3 Feb 1998 04:06:52 +0000
X-Sender: Sad.Planet@postoffice.worldnet.att.net
X-Mailer: Windows Eudora Light Version 1.5.2
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: Qian Chen 
From: Roger King 
Subject: Re: instrument design?
Cc: csound@maths.ex.ac.uk
Date: Tue, 3 Feb 1998 04:06:52 +0000
Message-Id: <19980203040647.AAA8613@LOCALNAME>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Chen, you asked about instrument design.
Have you checked out the FTP index containing 
the works of John Fitch, Richard Boulanger, Russ Pinkston
and others?  How about Jeff Harrington's DX7 .orc file?
ftp://ftp.maths.bath.ac.uk/pub/dream/platforms/pc/orchestras+scores/compositions
Some of those examples may be too complicated, but if you
read the .orc from the 'out' back up through all the perf
passes you begin to get a feel for the differences between
software synthesis and hardware synthesis. 
        Boulanger, for example, names an instrument 
        after an actual colour: upon analysis you can see how the
        generated signal gets transformed into something
        distinct.
As you know, the typical analog hardware instrument sports a
voltage control oscillator, voltage control filter, envelope
generator, and voltage control amplifier. In Csound you find
some of those controls in both the .orc and .sco files. The
path of the signal through the system is not as clear; however,
through proper commenting you can attempt to achieve a 
tranquel perspective of what effects signal output.
;-------------- "Pink and Blue" ----------------------
sr = 44100
kr = 441
ksmps = 100
nchnls = 2

instr 1

;VOLTAGE CONTROL AMPLIFIER
irub = p4
kline linseg  1,0.03,1500, p3,800,p3/2,0
kramp line 1, p3, 1011 
;FREQUENCY MODULATOR
i1 = p5
islide = p7
i2 = p6
k1	phasor     i1
k3      phasor     i2
kpch	table  k1 * 4, 1
kpch2   table  k1 * 4, 3 
kpch3   table  k1 * 4, 5
kpch4   table  k3 * 4, 7	
kpch5   table  k3 * 4,10
kbw     table  k1 * 4, 9
;VOLTAGE CONTROL OSCILATOR
a1	oscil    kline*islide, cpspch(kpch*irub), 2	
a2	oscil    kline, cpspch(kpch2*irub), 4
a3      oscil    kline,cpspch(kpch*irub),2
a3a	buzz     kramp, cpspch(kpch3), 3, 6
k2 = cpspch(kpch4)
krand   randh  1,10 
a4      oscil  kline, cpsoct(krand+k2), 8
a5	pluck   kline+1500, cpspch(kpch4),1760 , 0, 1
a6	pluck   kline+1500, cpspch(kpch5),1760 , 0, 1
;VOLTAGE CONTROL FILTER
a3b	balance   a3a, a1
a4b     balance   a4, a1	
a1l =  a6 + a3b + a2
a1r =  a5 + a4b + a3
aleft   balance   a1l, a1
asig1   tone	aleft, 440
aright  balance   a1r, a1
asighi   atone   aright, 440 
asig2    reson   asighi, 1760, 2000 
outs	asig1,asig2
endin
;---------------- .sco -------------------------
f1 0 64 2 8.04  5.07 9.09 7.10  
f2 0 8192 10  0 10 0 
f3 0 64 2 4.10 10.09 7.10 9.09  
f4 0 8192 10  10  0  10
f5 0 64  2  8.09  9.01 4.05  10.03 
f6 0 2049  10    7    3   0
f7 0 64 2  8.04  5.02 9.04  10.07  
f8 0 2049 10  0  2.5  5  10 0
f9 0 64 2 400 40  4  0.4  0.04
f10 0 64 2 10.05  11.01 10.05  10.03  

t 0 180 4 150 6 90 8 60

;p1 p2 p3  p4		p5	p6        p7
;i on dur  rub      phase 1  phase 2  amp slide 
i1 0 8   4.58697   	4	4         1
i1 4 6   1.237475	2	1         >
i1 6 5   3.5982		1	3         >
i1 7 4   1.4		3	2         3
i1 8 3   2.5868		2	5         1
e





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10692;
          3 Feb 98 9:14 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26682;
          3 Feb 98 9:14 GMT
Received: (qmail 13618 invoked from network); 3 Feb 1998 09:14:10 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 3 Feb 1998 09:14:10 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA06506); Tue, 3 Feb 1998 09:09:00 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 09:08:42 GMT
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (JAA18108); Tue, 3 Feb 1998 09:08:35 GMT
Received: (qmail 27558 invoked by uid 1964); 3 Feb 1998 01:08:03 -0800
Date: Tue, 3 Feb 1998 01:08:03 -0800 (PST)
From: "Matt J. Ingalls" 
Cc: Csound 
Subject: Re: instrument design?
In-Reply-To: <34D64780.C40E23B8@cableinet.co.uk>
Message-Id: 
Mime-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


(please pardon my english)

> instruments, new sounds, arise incrementally. Very often the 'errors'
> prove to be the key - for example, multiphonics on wind instruments can
> be seen as wrong fingerings and poor technique raised to an art form.
	
	i am presently fascinated by 'poor technique' (both in my clarinet
playing and eamus) although i dont like your (Richard's) metaphor - i
think
multiphonics require a lot of technique - much more than squeaks,
badTone, "microtones" from wrong fingerings, etc...

in compMus -> digital pops,clicks, distortion, -noise- i find much more
interesting than "traditional" synthesis sonically (esp. experiencing 
pops almost "visually" resting on the speaker cone).  plus they have
attached meanings (being "bad technique") and inherently digital.

and what is this obsession with technique in "art"(academic?) electronic
music?  i dont think its going to last very long.  our tools are becoming
so powerful and accessible that almost anyone can make "cool sounds" with
a click of a mouse these days.  how can the elite (#include myself) keep 
their status?   f(Ear)??
					this is just me spouTing off the
CrusT of my head...


anyway - i want to request that everyone *please* use discretion when
doing their "sound design" with CSound:  there is enough
sequencer-trigger-pitch-domination-music already in the world.  thinking
about it, i think the best csound piece would have one i-statement in the
score (or at least one per instrument) OR have 128*dur(in sec)
i-statements per instrument in the score

> 'wow! what a great horrible sound'

-matt

(i wish cw3=tb! (sp?) was on this list!)




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10763;
          3 Feb 98 9:51 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa15728;
          3 Feb 98 9:51 GMT
Received: (qmail 19453 invoked from network); 3 Feb 1998 09:51:53 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Feb 1998 09:51:53 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA05319); Tue, 3 Feb 1998 09:44:33 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 09:44:13 GMT
Received: from thorn.meto.gov.uk [151.170.240.16] by hermes via ESMTP (JAA22083); Tue, 3 Feb 1998 09:44:07 GMT
From: vkirk@meto.gov.uk
Received: from thorn.meto.gov.uk (MEADOW)
 by thorn.meto.gov.uk (PMDF V5.1-9 #26370)
 with ESMTP id <01IT504ZTIE8002JP7@thorn.meto.gov.uk> for
 csound@maths.ex.ac.uk; Tue, 3 Feb 1998 09:42:53 GMT
Received: from ccmail.meto.gov.uk by meadow.meto.gov.uk (PMDF V5.1-9 #26370)
 id <01IT5051D6O0002VXD@meadow.meto.gov.uk>; Tue,
 03 Feb 1998 09:43:05 +0000 (GMT)
Date: Tue, 03 Feb 1998 09:38 +0000 (GMT)
Subject: Re: randomize rnd()???
To: kaeru@flash.net, csound@maths.ex.ac.uk
Message-Id: <01IT5058INL0002VXD@meadow.meto.gov.uk>
Mime-Version: 1.0
Content-Type: TEXT/PLAIN
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


     You could try getting the seed from the current time for a simple 
     solution.
     
     Vic.


______________________________ Reply Separator _________________________________
Subject: randomize rnd()???
Author:  kaeru@flash.net at internet
Date:    02/02/98 21:31


does anyone know how to randomize and/or set a seed value for the new 
rnd(x) function?  i keep getting the same series of numbers every time i 
run a score.
     
pete



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10777;
          3 Feb 98 9:54 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa17524;
          3 Feb 98 9:54 GMT
Received: (qmail 19489 invoked from network); 3 Feb 1998 09:54:38 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Feb 1998 09:54:38 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA04707); Tue, 3 Feb 1998 09:45:30 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 09:45:09 GMT
Received: from ns.lms.be [193.121.76.65] by hermes via ESMTP (JAA03523); Tue, 3 Feb 1998 09:45:00 GMT
Received: from lmsnit.be (jedi.lmsnit.be [192.168.1.20]) by ironman.lms.be with SMTP (8.7.1/8.7.1) id KAA09076; Tue, 3 Feb 1998 10:43:49 +0100 (MET)
Received: from jedi by lmsnit.be (4.1/SMI-4.1)
	id AA15018; Tue, 3 Feb 98 10:43:01 +0100
Message-Id: <34D6E6A4.2781E494@ping.be>
Date: Tue, 03 Feb 1998 10:43:01 +0100
From: Marc Resibois 
Organization: Solar Flare
X-Mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4c)
Mime-Version: 1.0
To: "Matt J. Ingalls" 
Cc: Csound 
Subject: Re: instrument design?
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Matt J. Ingalls wrote:

> how can the elite (#include myself) keep their stat

Just by always going further than others, by daring and understanding...

Marc.



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10811;
          3 Feb 98 10:02 GMT
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa22296;
          3 Feb 98 10:02 GMT
Received: (qmail 19544 invoked from network); 3 Feb 1998 10:02:40 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by mercury.bath.ac.uk with SMTP; 3 Feb 1998 10:02:40 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (JAA22687); Tue, 3 Feb 1998 09:54:47 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 09:53:36 GMT
Received: from imo19.mx.aol.com [198.81.19.176] by hermes via ESMTP (JAA11413); Tue, 3 Feb 1998 09:53:17 GMT
From: SteinersT1@aol.com
Received: from SteinersT1@aol.com
	by imo19.mx.aol.com (IMOv12/Dec1997) id LTTKa22846
	for ; Tue, 3 Feb 1998 04:53:10 -0500 (EST)
Message-Id: 
Date: Tue, 3 Feb 1998 04:53:10 EST
To: csound@maths.ex.ac.uk
Mime-Version: 1.0
Subject: Re: instrument design?
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Mailer: Windows AOL sub 65
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello,

its the same as computerprogramming. In the beginning everything seems to be
difficult, but later you will learn to transform your imagination into
functioning code. As programmer you will discover how and what you do need to
approach but in the first time you will got a lot of frustrations. But with
this in mind I even got FM synthesis nearly handled :)

The difficult with CSound is that the parameters are not scaled like in
commercial synthesizers. Their parameters got a limited range which leads
imidently to musical sounds but they are totaly depend on the views of the
manufacturer. In cSound everything is possible and so often you render pure
noise or silence. But don't give up, it is a feature and freedom!

With friendly greetings,

               Malte

--------------------------------------------------
Notstandskomitee / Das Kombinat
       Industrial Electronic Art
http://members.aol.com/block4k7
--------------------------------------------------



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10974;
          3 Feb 98 12:10 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa24175;
          3 Feb 98 12:10 GMT
Received: (qmail 1671 invoked from network); 3 Feb 1998 12:10:40 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 3 Feb 1998 12:10:40 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA24291); Tue, 3 Feb 1998 11:34:41 GMT
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Tue, 3 Feb 98 11:34:02 GMT
Received: from jaguars-int.cableinet.net [193.38.113.9] by hermes via SMTP (LAA14540); Tue, 3 Feb 1998 11:33:49 GMT
Received: (qmail 16881 invoked from network); 3 Feb 1998 11:29:47 -0000
Received: from unknown (HELO igor) (194.117.146.24)
  by jaguars with SMTP; 3 Feb 1998 11:29:47 -0000
Message-Id: <34D6FE4D.873B05C9@cableinet.co.uk>
Date: Tue, 03 Feb 1998 11:23:57 +0000
From: Richard Dobson 
Reply-To: RWD@cableinet.co.uk
Organization: Composers Desktop Project
X-Mailer: Mozilla 4.01 [en] (Win95; I)
Mime-Version: 1.0
To: Csound 
Subject: Re: instrument design?
X-Priority: 3 (Normal)
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Matt J. Ingalls wrote:

>         i am presently fascinated by 'poor technique' (both in my
> clarinet
> playing and eamus) although i dont like your (Richard's) metaphor - i
> think
> multiphonics require a lot of technique - much more than squeaks,
> badTone, "microtones" from wrong fingerings, etc...

Oh yes, I agree; sorry, my comment was deliberately just a little
frivolous. I am a flute player, and I was amused to see that one
multiphonic in the Bartolozzi book was simply a normal top D fingering,
underblown - something us teachers try to stop our young Grade3 players
from doing!

> and what is this obsession with technique in "art"(academic?)
> electronic
> music?

My definition of 'technique' is simply 'the ability to achieve a goal',
with a subscript - 'as efficiently and economically as possible'. Anyone
who has goals, especially in making something, needs technique, because
resources and time (for us) are finite.

> -matt
>
> (i wish cw3=tb! (sp?) was on this list!)

Richard Dobson