Csound Csound-dev Csound-tekno Search About

(pseudo) random generator

Date1997-12-14 15:53
FromMaurizio Giri
Subject(pseudo) random generator
Hi all,

a question from a new user: is there a way to obtain a longer cycle of
random numbers using the rand* generators?
If you try this orc/sco:

;randloop.orc
sr=44100
kr=441
ksmps=100
nchnls=1

instr 1
a1 rand 20
afilt reson a1, 439, 1
out afilt
endin

;randloop.sco
i1 0 10
e

you'll notice a loop in the resulting sound, that's maybe because of a
short cycle of random numbers (32000?) which is easily detectable at 44100
numbers per sec.
Any suggestion to avoid this loop? (I'm using the latest
csound.ppc/perf.ppc applications - not the 347beta)

TIA
Maurizio





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04841;
          14 Dec 97 18:57 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa07383;
          14 Dec 97 18:57 GMT
Received: (qmail 7896 invoked from network); 14 Dec 1997 18:57:17 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 14 Dec 1997 18:57:17 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA14499); Sun, 14 Dec 1997 18:48:36 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sun, 14 Dec 97 18:48:17 GMT
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (SAA18384); Sun, 14 Dec 1997 18:48:03 GMT
Received: (qmail 28341 invoked by uid 1964); 14 Dec 1997 10:50:39 -0800
Date: Sun, 14 Dec 1997 10:50:39 -0800 (PST)
From: "Matt J. Ingalls" 
To: Maurizio Giri 
Cc: csound@maths.ex.ac.uk
Subject: Re: (pseudo) random generator
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

try:


aunirand


-m










Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa04897;
          14 Dec 97 19:28 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa08079;
          14 Dec 97 19:28 GMT
Received: (qmail 9572 invoked from network); 14 Dec 1997 19:28:43 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 14 Dec 1997 19:28:43 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (TAA19708); Sun, 14 Dec 1997 19:22:05 GMT
Received: from [193.121.99.70] by maths.exeter.ac.uk; Sun, 14 Dec 97 19:21:46 GMT
Received: from nobody ([193.74.7.89]) by hurricane.netgate.be
          (post.office MTA v2.0 0813 ID# 0-32575U60) with ESMTP id AAB71
          for ; Sun, 14 Dec 1997 20:26:21 +0100
From: David Schuyeteneer 
To: csound mailing list 
Subject: NEW and DESPERATE
Date: Sun, 14 Dec 1997 20:22:32 +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: <19971214192612133.AAB71@nobody>
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Ok, I downloaded all the stuff I need to get started with Csound....inluded
the manual, lots of examples.....but...hey....still it's hard to get
started....
The syntax is really the most difficult I ever encountered considering
script
compiler programs...

Does anyone has tutorials or can explain me for a REAL beginner how to get
started with Csound ??  Ok, I do know how sound works : i know what
frequency
is, reverb, flange, harmonics, amplitude, filter etc....but not in the way
Csound
deals with it.....I especially need to know the SYSTEM Csound handles, not
a list of opcodes and features, but rather the syntax rules, the format of
the scripts...
so I can remind me that an oscil its third parameter has a different
meaning then
a grain opcode....That kind of things.....

special interests : - Textures and granular synthesis
                  	   - Timbral morphings 
                           - "almost" voices - sounds somewhere between a
voice and a
                                                       noise or
instrument...

				 
thanks.




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05294;
          14 Dec 97 22:01 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa12614;
          14 Dec 97 22:01 GMT
Received: (qmail 15435 invoked from network); 14 Dec 1997 22:01:00 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 14 Dec 1997 22:01:00 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (VAA05342); Sun, 14 Dec 1997 21:52:29 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sun, 14 Dec 97 21:52:13 GMT
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (VAA08988); Sun, 14 Dec 1997 21:52:01 GMT
Received: (qmail 2991 invoked by uid 2928); 14 Dec 1997 13:54:39 -0800
Date: Sun, 14 Dec 1997 13:54:39 -0800 (PST)
From: Mike Berry 
To: Burton Alexandre 
Cc: csound@maths.ex.ac.uk
Subject: Re: perf with OMS...
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

	The OMS implementation in perf.ppc is basic, to say the least.
perf opens a connection to all available real ports.  It does not create a
virtual destination since it is impractical to run it in any
interapplication manner since it MUST be in the front and will not behave
well with any other programs running.  It sounds to me like the choppy
performance is from an attempt to run csound in parallel with some MIDI
generating app.  As it stands now, perf turns your PPC into a dedicated
renderer.
	The are ways for us to rewrite perf to get around this, but they
require massive internal rewrite of csound and frankly aren't likely to
get done any time soon (unless there is another Mac programmer out there
who really wants to tackle it - I can tell you what you need to do).
Instead of trying myself, I wrote GrainWave which was designed from
scratch to be a real-time multitasking renderer.
	I am guessing from your address that this involved doing a PPC
port of Cecilia...?  It would be possible to add a connection dialog to
perf which allowed you to shut off ports.  And to add a virtual
destination for IAC.  But those are premised upon perf functioning in a
multi-app situation, which it simply won't.

 Mike Berry
mikeb@mills.edu





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05500;
          14 Dec 97 23:40 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa16010;
          14 Dec 97 23:40 GMT
Received: (qmail 19541 invoked from network); 14 Dec 1997 23:40:45 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 14 Dec 1997 23:40:45 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (XAA22699); Sun, 14 Dec 1997 23:33:52 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Sun, 14 Dec 97 23:33:35 GMT
Received: from pop.cs.wisc.edu [128.105.22.11] by hermes via ESMTP (XAA21117); Sun, 14 Dec 1997 23:33:29 GMT
Received: from haha (haha.cs.wisc.edu [128.105.101.31])
	by pop.cs.wisc.edu (8.8.6/8.8.6) with SMTP id RAA21256
	for ; Sun, 14 Dec 1997 17:36:37 -0600 (CST)
Message-Id: <34946CCB.167E@cs.wisc.edu>
Date: Sun, 14 Dec 1997 17:33:31 -0600
From: Zhenhai Lin 
Organization: University of Wisconsin-Madison
X-Mailer: Mozilla 3.01SGoldC-SGI (X11; I; IRIX 6.3 IP32)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Midi sound playing on SGI
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Dear all:

I am totally confused about MIDI.

I wonder how I can play midi sounds on SGI. I heard soundplayer can
handle midi sounds on IRIX6.2( which is what I am using). I tried to
play and it says I don't have a midi port. So I configured a midi port
on my machine but it plays without any sound at all.

So is MIDI an idea of controlling an external music instrument? Do I
really absolutely need some kind of external midi devise to play midi
sounds? Is it possible to convert to something that I can play just
using SGI's speaker (such as first convert it to csound file...)

Thank you very much!

-- 
Zhenhai Lin
Department of Computer Science, University of Wisconsin-Madison, USA
URL: http://www.cs.wisc.edu/~zhenhai
Email: zhenhai@cs.wisc.edu



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05878;
          15 Dec 97 4:21 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26198;
          15 Dec 97 4:21 GMT
Received: (qmail 28006 invoked from network); 15 Dec 1997 04:21:52 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 04:21:52 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA06814); Mon, 15 Dec 1997 04:09:33 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 04:09:15 GMT
Received: from relay.pathfinder.com [204.71.242.18] by hermes via ESMTP (EAA23758); Mon, 15 Dec 1997 04:09:08 GMT
Received: from 206.102.224.4 (ppp-remote2.pathfinder.com [206.102.224.4]) by pathfinder.com (*private*/SMI-SVR4) with ESMTP
	id XAA02215; Sun, 14 Dec 1997 23:11:13 -0500 (EST)
X-Authentication-Warning: relay.pathfinder.com: Host ppp-remote2.pathfinder.com [206.102.224.4] claimed to be 206.102.224.4
Message-Id: <34946789.79D312A9@panix.com>
Date: Sun, 14 Dec 1997 23:11:19 +0000
From: Michael Coble 
X-Mailer: Mozilla 4.01 (Macintosh; I; PPC)
Mime-Version: 1.0
To: Hans Pelleboer 
Cc: csound@maths.ex.ac.uk
Subject: Re: grapes and wine
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

Hans Pelleboer wrote:
> 
> Hello,
> 
> In recent weeks I have read a number of questions regarding
> stereo microphone techniques and the decomposing of auditory images
> in their constituting components. Usually the problem is worded somewhat
> as follows: How does one write a csound script to emulate a M-S microphone
> image? Or: how to derive center information out of a stereo recording?
> The attempts to answer these questions center around the simple arithmetic
> of phase relationships, as used in the summing-matrix for a M-S pair.
> What is glossed over here entirely is the problem: What is an auditory
> image, and how do we perceive one as such?
> In the process of the build-up to the illusion which we call `stereo,'
> auditory sources are imprinted --arbitrarily!, because set up through the
> subjective hands of a recording engineer-- 

[snip]
	Aha, If you will, let me recall the one of first major stereo recordings to
really punctuate the use of stereo... The Beatles with Rubber Soul for
example.  Listen to instruments isolated to channels and I see what seems to
be the point here.  The recording *doesn't* sound like a recording of a room
from a distance, but rather assigns tracks to different speakers.  So perhaps
todays' stereo sound tries to mimic a room, but still the point seems to be,
how can you get the middle of the sound when it is really an acoustic
invention of a sound engineer?  How does one reverse the artistic techniques
of the mix-down?  Maybe it could be done algorithmically using similar
techniques as a physical model, the physical model being parameters that
emulate the techniques of a mixing engineer:)

> manner, that play-back over loudspeakers gives us some suggestion of
> direction, size and distance. Even if we simplify drastically by leaving
> out all time relationships, as caused by reflections and such in real-world
> acoustical environments, then still the sound pressures picked up
> by a single pair of microphones are the resultants of a vectorial addition
> of a -long- row of terms.
> Just manipulating the resultants does not reach far enough to alter the
> underlying relations of their components -- for the same reason that you
> can't make grapes out of wine!
> 
> The idea, therefore, that there ever will be a simple operator --something
> like a reciprocal `pan' knob-- that will deduce a source from the complex
> streams that it generates, is probably futile.
> 
> A way more fruitful approach, I think, is to start from the other side of
> the loop and build auditory images through SYNTHESIS, not attempting to
> derive
> the essential parameters through analysis. This will not lead to a
> clean-cut acoustical model, but it will definitely generate a bundle of
> useful parameters for image synthesis, which will be close to the controls
> of
> a typical mixing console and peripherals.
> One can think of massaging the direct/reverb ratio, diffusion with
> allpass filters or through convolution with noise. Early reflections and
> such are easily made by adding different delays.
> For this type of synthesis, csound provides us with an ample set of tools.
> Multi channel output allows the use of discrete center channels and the
> like.
> 
> Hope these remarks will help to elucidate the issue somewhat.
> 
> Hans Pelleboer
> 

-- 
Michael Coble, Time Inc. New Media, Pathfinder
Gallery: http://www.panix.com/~coble,  representing various artists
Home:    http://pathfinder.com/pathfinder/staff/mcoble/
Work:    http://www.pathfinder.com/



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05884;
          15 Dec 97 4:26 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26238;
          15 Dec 97 4:26 GMT
Received: (qmail 28132 invoked from network); 15 Dec 1997 04:26:05 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 04:26:05 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA14521); Mon, 15 Dec 1997 04:16:06 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 04:15:32 GMT
Received: from relay.pathfinder.com [204.71.242.18] by hermes via ESMTP (EAA05473); Mon, 15 Dec 1997 04:15:26 GMT
Received: from 206.102.224.4 (ppp-remote2.pathfinder.com [206.102.224.4]) by pathfinder.com (*private*/SMI-SVR4) with ESMTP
	id XAA02925; Sun, 14 Dec 1997 23:18:03 -0500 (EST)
X-Authentication-Warning: relay.pathfinder.com: Host ppp-remote2.pathfinder.com [206.102.224.4] claimed to be 206.102.224.4
Message-Id: <34946922.4C2A4562@panix.com>
Date: Sun, 14 Dec 1997 23:18:11 +0000
From: Michael Coble 
X-Mailer: Mozilla 4.01 (Macintosh; I; PPC)
Mime-Version: 1.0
To: Hans Mikelson 
Cc: csound@maths.ex.ac.uk
Subject: Re: Opcode for Picture->Audio?
X-Priority: 3 (Normal)
References: <3.0.3.16.19971206163620.3a67941e@werewolf.net>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hans Mikelson wrote:
> 
> Hello,
> 
> One of the few features that Csound does not have is the ability to convert
> a picture into audio.  There are a few programs that do this, usually
> transforming x into time, y into frequency and color into
> amplitude/magnitude.  Perhaps this would best be implemented as a utility
> routine that would convert the audio into phase vocoder format.

	Soundhack for the Macintosh has a primitive version of this feature.  It
creates a lot of noise, but then again maybe that's a goal.  Essentially, it's
hard to draw a waveform (besides a sin wave) from scratch, and noisy to edit
an existing one.  Maybe it would work better if there was a very strong
interpolation algorithm behind the clunky abilities to draw with a mouse. 
Don't know.

> Just a suggestion for an ambitious soul...
> 
> Bye,
> Hans Mikelson

-- 
Michael Coble, Time Inc. New Media, Pathfinder
Gallery: http://www.panix.com/~coble,  representing various artists
Home:    http://pathfinder.com/pathfinder/staff/mcoble/
Work:    http://www.pathfinder.com/



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05901;
          15 Dec 97 4:42 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa26564;
          15 Dec 97 4:42 GMT
Received: (qmail 28550 invoked from network); 15 Dec 1997 04:41:59 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 04:41:59 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (EAA08996); Mon, 15 Dec 1997 04:35:14 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 04:34:56 GMT
Received: from root@xochi.tezcat.com [204.128.247.12] by hermes via ESMTP (EAA02610); Mon, 15 Dec 1997 04:34:48 GMT
Received: from [204.248.80.120] (antiorp.tezcat.com [204.248.80.120])
	by xochi.tezcat.com (8.8.5/8.8.5/tezcat-96091001) with SMTP id WAA16990
	for ; Sun, 14 Dec 1997 22:37:55 -0600 (CST)
Message-Id: <199712150437.WAA16990@xochi.tezcat.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Sun, 14 Dec 1997 22:38:59 -0600
To: csound@maths.ex.ac.uk
From: =cw4t7abs 
Subject: Re: Opcode for Picture->Audio?
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


>        Soundhack for the Macintosh has a primitive version of this feature.

1 kould utilize any drawing prgm 4 dis  matter.
+ open rezultz with sndhak + odr prgmz [bSt]


> It
>creates a lot of noise, but then again maybe that's a goal.  Essentially, it's
>hard to draw a waveform (besides a sin wave) from scratch, and noisy to edit
>an existing one.  Maybe it would work better if there was a very strong
>interpolation algorithm behind the clunky abilities to draw with a mouse.
>Don't know.


+ metasynth = spank matter also.





+ b 1-tgegrowhandlettimeypedmesz.
!n _new.interrupuzit
newanyex_ table_zbuthismp. f )_.     _ 0 f 0 0 0 3  humanzsuk[]
reproduss!ng finite segmentz
http://www.god-emil.dk/=cw4t7abs/krop3rom
http://www.god-emil.dk/=cw4t7abs






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa05984;
          15 Dec 97 5:32 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa27595;
          15 Dec 97 5:32 GMT
Received: (qmail 29751 invoked from network); 15 Dec 1997 05:32:02 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 05:32:02 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (FAA09826); Mon, 15 Dec 1997 05:24:06 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 05:23:49 GMT
Received: from endeavor.flash.net [209.30.0.40] by hermes via ESMTP (FAA08371); Mon, 15 Dec 1997 05:23:42 GMT
Received: from flash.net (fwasc7-77.flash.net [209.30.15.77])
	by endeavor.flash.net (8.8.7/8.8.5) with ESMTP id XAA00299;
	Sun, 14 Dec 1997 23:26:49 -0600 (CST)
Message-Id: <3494BFD7.D6E098CE@flash.net>
Date: Sun, 14 Dec 1997 23:27:52 -0600
From: pete moss 
Organization: pete moss GmbH
X-Mailer: Mozilla 4.03 [en] (Win95; U)
Mime-Version: 1.0
To: "Matt J. Ingalls" , csound 
Subject: Re: (pseudo) random generator
References: 
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

what is aunirand?

also, is there a method to obtain a single (irate) random number, say
between 0 and 1?
i dont want a series of random numbers but just a single one.

pete




Matt J. Ingalls wrote:

> try:
>
> aunirand
>
> -m






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06077;
          15 Dec 97 6:48 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29195;
          15 Dec 97 6:49 GMT
Received: (qmail 1541 invoked from network); 15 Dec 1997 06:49:10 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 06:49:10 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (GAA16450); Mon, 15 Dec 1997 06:36:03 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 06:35:46 GMT
Received: from agora.stm.it [195.62.32.1] by hermes via ESMTP (GAA05722); Mon, 15 Dec 1997 06:35:39 GMT
Received: from [194.184.60.245] (ws0.axnet.it [194.184.60.245]) by agora.stm.it (8.8.8/8.8.5) with ESMTP id HAA20699 for ; Mon, 15 Dec 1997 07:38:44 +0100 (ITA)
X-Sender: m.giri@HELLA.stm.it
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Date: Mon, 15 Dec 1997 07:44:00 +0100
To: csound@maths.ex.ac.uk
From: Maurizio Giri 
Subject: Re: (pseudo) random generator
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

-m wrote

>try:
>
>
>aunirand


thanks! this is exactly what i needed.

but... i can't find any documentation for this opcode, neither in csound
manual nor in readmes, examples, etc...
Is it an undocumented opcode? Are there any others?


thanks again
Maurizio

_____________________________________________
o              Maurizio  Giri               o
o                 ConTempo                  o
o  Italian Contemporary (and Early) Music   o
o       http://www.axnet.it/contempo        o
o-------------------------------------------o
o ConTempo e-mail:  contempo@wmail.axnet.it o
o Personal e-mail:      m.giri@agora.stm.it o
o                                           o
o Snail: Via Ostilia, 55 - 00184 Roma Italy o
o Tel +39.6.70451885                        o
_____________________________________________





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06122;
          15 Dec 97 7:16 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29870;
          15 Dec 97 7:16 GMT
Received: (qmail 2722 invoked from network); 15 Dec 1997 07:16:23 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 07:16:23 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (HAA23609); Mon, 15 Dec 1997 07:05:57 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 07:05:31 GMT
Received: from december.real.net.au [203.25.56.1] by hermes via ESMTP (HAA11434); Mon, 15 Dec 1997 07:05:23 GMT
Received: from [203.17.243.62] (syd-pm2-29.real.net.au [203.17.243.62])
	by december.real.net.au (8.8.6/8.8.6) with SMTP id SAA10757
	for ; Mon, 15 Dec 1997 18:09:48 +1100 (EST)
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 15 Dec 1997 18:06:41 +1000
To: csound@maths.ex.ac.uk
From: Arne Hanna 
Subject: curve fitting
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Does anyone know the whereabouts of Dr Kirk Corey's 'curve fitting' pages?
The URLs below seem to be in error.

http://www.music.uiowa.edu/~kcorey/research/math-csound.html
http://www.music.uiowa.edu/~kcorey/research

Cheers
Arne





"You people have been throwing shit at me for years.  Now it's starting to
fertilize!"
                             Edgar Varese

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

        http://www.geocities.com/SiliconValley/Peaks/3346

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Disclaimer: The views expressed in these messages are not necessarily those
of Management.





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06136;
          15 Dec 97 7:20 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa29938;
          15 Dec 97 7:20 GMT
Received: (qmail 2860 invoked from network); 15 Dec 1997 07:20:34 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 07:20:34 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (HAA01905); Mon, 15 Dec 1997 07:12:42 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 07:12:15 GMT
Received: from december.real.net.au [203.25.56.1] by hermes via ESMTP (HAA12436); Mon, 15 Dec 1997 07:12:07 GMT
Received: from [203.17.243.62] (syd-pm2-29.real.net.au [203.17.243.62])
	by december.real.net.au (8.8.6/8.8.6) with SMTP id SAA10932
	for ; Mon, 15 Dec 1997 18:16:33 +1100 (EST)
Message-Id: 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 15 Dec 1997 18:13:26 +1000
To: csound@maths.ex.ac.uk
From: Arne Hanna 
Subject: Re: Opcode for Picture->Audio?
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I think anyone interested in this should check out Phonograme by Vincent
Lesbros, available via Dave Philips Linux page.


Cheers
Arne



"You people have been throwing shit at me for years.  Now it's starting to
fertilize!"
                             Edgar Varese

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

        http://www.geocities.com/SiliconValley/Peaks/3346

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=

Disclaimer: The views expressed in these messages are not necessarily those
of Management.





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06213;
          15 Dec 97 8:22 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa01345;
          15 Dec 97 8:22 GMT
Received: (qmail 4522 invoked from network); 15 Dec 1997 08:22:47 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 08:22:47 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (IAA22176); Mon, 15 Dec 1997 08:10:09 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 08:09:51 GMT
Received: from denmark-c.it.earthlink.net [204.119.177.22] by hermes via ESMTP (IAA11510); Mon, 15 Dec 1997 08:09:44 GMT
Received: from 153.37.164.31 (1Cust31.tnt1.sherman-oaks.ca.da.uu.net [153.37.164.31])
	by denmark.it.earthlink.net (8.8.7/8.8.5) with SMTP id AAA12160
	for ; Mon, 15 Dec 1997 00:12:51 -0800 (PST)
Message-Id: <3495033E.5D9B@earthlink.net>
Date: Mon, 15 Dec 1997 00:15:28 -1000
From: Matt Comeione 
Reply-To: comeione@earthlink.net
X-Mailer: Mozilla 3.01-C-NSCP (Macintosh; U; PPC)
Mime-Version: 1.0
To: Csound list 
Subject: pvoc csound 3.46 PPC
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

I was wondering if someone could tell me the numerical range of the
amplitudes in the pvoc files.  I am trying to utilize the pvread opcode
and am having difficulty with the amplitude scaling.
Is the range to 32767 in it's output?  
Any help would be appreciated...
matt comeione



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06682;
          15 Dec 97 12:03 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa08048;
          15 Dec 97 12:03 GMT
Received: (qmail 25110 invoked from network); 15 Dec 1997 12:03:36 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 12:03:36 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (LAA04709); Mon, 15 Dec 1997 11:50:57 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 11:50:26 GMT
Received: from mail.utexas.edu [128.83.126.1] by hermes via SMTP (LAA21429); Mon, 15 Dec 1997 11:50:04 GMT
Date: Mon, 15 Dec 1997 11:50:04 GMT
Message-Id: <199712151150.LAA21429@hermes>
Received: (qmail 5210 invoked by uid 0); 15 Dec 1997 11:53:09 -0000
Received: from dial-103-19.ots.utexas.edu (128.83.176.67)
  by mail.utexas.edu with SMTP; 15 Dec 1997 11:53:09 -0000
X-Sender: r.pinkston@mail.utexas.edu
X-Mailer: Windows Eudora Version 1.4.4
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
To: pete moss 
From: Russell Pinkston 
Subject: Re: (pseudo) random generator
Cc: csound@maths.ex.ac.uk
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

>also, is there a method to obtain a single (irate) random number, say
>between 0 and 1?
>i dont want a series of random numbers but just a single one.

Use the i() function, which forces an i-time value from a k variable:

kval    rand    .5              ;kval is between -.5/+.5
ival    =       .5+i(kval)      ;ival is between 0/1


----------------------------------
Russell F. Pinkston, D.M.A.
Associate Professor of Composition
Director, Electronic Music Studios
School of Music
The University of Texas at Austin
Austin, TX 78712

[512-471-0865]




Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa06997;
          15 Dec 97 12:36 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09354;
          15 Dec 97 12:36 GMT
Received: (qmail 28795 invoked from network); 15 Dec 1997 12:36:54 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 12:36:54 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA22791); Mon, 15 Dec 1997 12:16:32 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 12:16:15 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via SMTP (MAA23878); Mon, 15 Dec 1997 12:16:08 GMT
Received: from xenakis.maths.bath.ac.uk (maths.Bath.AC.UK) [138.38.97.36] (mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.80 #1)
	id 0xhZUT-0005WV-00; Mon, 15 Dec 1997 12:19:17 +0000
Date:     Mon, 15 Dec 97 12:18:37 GMT
From: J.P.ffitch@maths.bath.ac.uk
Subject:  Re: L/R stereo spread
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 30 Nov 1997 17:48:46 +0000
--- Copy of mail to nathand@senet.com.au ---
In-reply-to:  (message from Nathan Day on 27 Nov
	97 19:18:16 +0930)
References:  

>>>>> "Nathan" == Nathan Day  writes:

 >> does anyone know where I can get Csound examples of various enhanced 
 >> stereo techniques (ie MS, ORTF, etc)?

......

 Nathan> one side of the image less bright, which simulates the effect that a
 Nathan> persons head has, the 'hrtfer' UGEN in csound actually does these
 Nathan> things in a much more sophisticated way, though where you get the
 Nathan> HRTFcompact file from I do not know.

It is on the Bath and Montreal servers as
   utilities/Analysis/HRTFcompact

==John






Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07046;
          15 Dec 97 12:41 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09461;
          15 Dec 97 12:41 GMT
Received: (qmail 29308 invoked from network); 15 Dec 1997 12:41:15 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 12:41:15 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA10277); Mon, 15 Dec 1997 12:15:31 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 12:15:10 GMT
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via SMTP (MAA14476); Mon, 15 Dec 1997 12:14:59 GMT
Received: from xenakis.maths.bath.ac.uk (maths.Bath.AC.UK) [138.38.97.36] (mmdf)
	by wallace.maths.bath.ac.uk with smtp (Exim 1.80 #1)
	id 0xhZTG-0005W3-00; Mon, 15 Dec 1997 12:18:02 +0000
Date:     Mon, 15 Dec 97 12:17:24 GMT
From: J.P.ffitch@maths.bath.ac.uk
Subject:  Re: Way to add loop points and base freq. to AIFF files for loscil
To: csound@maths.ex.ac.uk
Message-Id: 
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Message written at 29 Nov 1997 14:27:48 +0000
--- Copy of mail to toby@rcsreg.com ---
In-reply-to: <347DD5B3.18D2B64D@rcsreg.com> (message from Toby Shepard on Thu,
	27 Nov 1997 12:18:59 -0800)
References:  <347DD5B3.18D2B64D@rcsreg.com>

Adding AIF-C format to Csoudn is on my list of things-to-do.  I did
look at it last weekend, but the documentation I had was inadequate,
and it seemed to interfer with the AIFF format too much.  I backed off
to have another go after the ICMC deadline.

==John



Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07116;
          15 Dec 97 12:58 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa10260;
          15 Dec 97 12:58 GMT
Received: (qmail 1519 invoked from network); 15 Dec 1997 12:58:47 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 12:58:47 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA22519); Mon, 15 Dec 1997 12:46:15 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 12:45:57 GMT
Received: from triton.worldonline.nl [194.151.128.28] by hermes via ESMTP (MAA17528); Mon, 15 Dec 1997 12:45:50 GMT
Received: from PC_hcp.worldonline.nl (zwl1-p61.worldonline.nl [195.241.133.61])
	by triton.worldonline.nl (8.8.5/8.8.5) with SMTP id NAA20736;
	Mon, 15 Dec 1997 13:48:40 +0100 (MET)
Message-Id: 
In-Reply-To: <34946789.79D312A9@panix.com>
Priority: Normal
X-Msmail-Priority: Normal
X-Priority: 3
To: Michael Coble 
Cc: csound@maths.ex.ac.uk
Mime-Version: 1.0
From: Hans Pelleboer 
Subject: Re: grapes and wine
Date: Mon, 15 Dec 97 13:41:37 PST
Content-Type: text/plain; charset="ISO-8859-1"; X-MAPIextension=".TXT"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk

Hello Michael --and everybody else!

On reading your reply it became  clear to me that I have to expand
--still!--
a bit on the concept `auditory image'.  What you said definitely holds:

> So perhaps
> todays' stereo sound tries to mimic a room, but still the point seems to
be,
> how can you get the middle of the sound when it is really an acoustic
> invention of a sound engineer? 

>From the days of `ping-pong stereo' to present day pop reproduction, the 
creation of auditory illusions through electroacoustic wizardry has only
increased.
But even if we are able to keep ourselves from playing with all the knobs
available,
--so no `synthetic' stereo-- then the problem STILL remains. 
In order to clarify the following:

> > manner, that play-back over loudspeakers gives us some suggestion of
> > direction, size and distance. Even if we simplify drastically by leaving
> > out all time relationships, as caused by reflections and such in
real-world
> > acoustical environments, then still the sound pressures picked up
> > by a single pair of microphones are the resultants of a vectorial
addition
> > of a -long- row of terms.

let us perform a little mind experiment. The M-S technique is a so-called
`purist' technique, and indeed, almost as old as stereophony itself: 
So here we are, no reverbs, delays or anything added; just a single
microphone
in front of a large string section, in an acoustical `dead' space.  Imagine
now all the strings playing a single chord, starting very soft and then
crescendo  
(So no transient effects that may disrupt the image). If the players are
properly balanced, then what you will hear on the recording is an image
that is clearly in 
the center--albeit somewhat broadened-- whose gravity point will lie
somewhere around the second chair of the violas. However; this image is
composed from
sound, emitted by ALL the players, not just the 'lone hapless viola player.
So: sound in the middle, but multiple sources, and therefore: no simple 
decomposition.


> How does one reverse the artistic techniques
> of the mix-down?  Maybe it could be done algorithmically using similar
> techniques as a physical model, the physical model being parameters that
> emulate the techniques of a mixing engineer:)

This is possible, yet fiendishly difficult; I remember an ASA presentation
in the early eighties of a computer processed Caruso recording, in which,
through inverse filtering,  the entire orchestra had been eliminated.  This
was a herculean task: note for note the filters had to be set to eliminate
the momentary harmonic
complexes --and this was still relatively simple homophonic music with a 
prominent soloist; imagine lifting a single boy treble out of Tallis' Spem
in alium!  

(I don't remember the guy's name who did his dissertation on this; I
thought it had been done at Washington State --If anyone knows more about
this work, then please let me know; especially if you happen to have a
recording of this reconstruction.)
 Hans Pelleboer





Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa07145;
          15 Dec 97 13:01 GMT
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa10399;
          15 Dec 97 13:01 GMT
Received: (qmail 1840 invoked from network); 15 Dec 1997 13:01:52 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
  by pat.bath.ac.uk with SMTP; 15 Dec 1997 13:01:53 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA17658); Mon, 15 Dec 1997 12:47:51 GMT
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Mon, 15 Dec 97 12:47:31 GMT
Received: from triton.worldonline.nl [194.151.128.28] by hermes via ESMTP (MAA09259); Mon, 15 Dec 1997 12:47:25 GMT
Received: from PC_hcp.worldonline.nl (zwl1-p61.worldonline.nl [195.241.133.61])
	by triton.worldonline.nl (8.8.5/8.8.5) with SMTP id NAA21436;
	Mon, 15 Dec 1997 13:50:18 +0100 (MET)
Message-Id: 
In-Reply-To: <3.0.3.16.19971206163620.3a67941e@werewolf.net>
References: Conversation <3.0.3.16.19971206163620.3a67941e@werewolf.net> with last message <3.0.3.16.19971206163620.3a67941e@werewolf.net>
Priority: Normal
X-Msmail-Priority: Normal
X-Priority: 3
To: Hans Mikelson 
Cc: csound@maths.ex.ac.uk
Mime-Version: 1.0
From: Hans Pelleboer 
Subject: Re: Opcode for Picture->Audio?
Date: Mon, 15 Dec 97 13:47:48 PST
Content-Type: text/plain; charset="ISO-8859-1"; X-MAPIextension=".TXT"
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk


Hans Mikelson still requests more punishment:
----------
> Hello,
> 
> One of the few features that Csound does not have is the ability to
convert
> a picture into audio.  There are a few programs that do this, usually
> transforming x into time, y into frequency and color into
> amplitude/magnitude.  Perhaps this would best be implemented as a utility
> routine that would convert the audio into phase vocoder format.
> 
> Just a suggestion for an ambitious soul...
> 
> Bye,
> Hans Mikelson
> 
> 
> 
There is Hyperupic written by Chris Penrose, which is available
at the Princeton ftp-site. 
Unfortunately, it is a NeXT application, so it will require substantial work
to port it to less potent Eunux.

Yours,
Hans Pelleboer


Date1997-12-14 18:50
From"Matt J. Ingalls"
SubjectRe: (pseudo) random generator
try:


aunirand


-m