| In the following orc file we specify pan values (in ga10lrpan) from 0 to 1
and end up using these pan values as indices into f table 2 (normalized
indexing mode), but something goes wrong. When we pan hard left or right
the sound drops out! In between everything sounds as it should. We are
set up to run in realtime (using stdin) so we use instr 20 to modify amp,
freq cutoff and most importantly, pan of instr 10. Values sent to p6 of
instr 20 are in the range 0 to 1. The problem occurs when p6 is 0 or 1.
Here's the orc and sco:
orc--------------------------------------------------
sr = 44100
kr = 441
ksmps = 100
nchnls = 2
gi10cutoff = 0
gi10amp = 0
instr 20 ; Used to control instr 10 in realtime
gi10amp = ampdb(p4)
gi10cutoff = p5
ga10lrpan init p6
endin
instr 10
; Init pass
gi10amp = ampdb(p4)
gi10cutoff = p5
asrc loscil gi10amp, p7, 1, 0, 1, 0, 336482
afltr tone asrc, gi10cutoff
alt tablei 1 - ga10lrpan, 2, 1, 0, 0
art tablei ga10lrpan, 2, 1, 0, 0
outs afltr * alt, afltr * art
endin
sco----------------------------------------------------------
f 1 0 0 1 "fire.aiff" 0 4 1
8192 1 f 2 0 8193 9 .25 1 0 ; The first quadrant of a sine
; IMPORTANT!!! The next line "pauses" processing of this file
; so that the EOF won't be reached. This gives
; our application time to output score events.
f 0 3600
---------------------------------------------------------
Thanks for the help,
John Beahan
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa08904;
9 Jul 97 0:27 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa06545;
9 Jul 97 0:27 BST
Received: (qmail 3465 invoked from network); 8 Jul 1997 23:27:03 -0000
Received: from hermes.ex.ac.uk (194.83.11.25)
by pat.bath.ac.uk with SMTP; 8 Jul 1997 23:27:03 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (AAA07490); Wed, 9 Jul 1997 00:30:04 +0100
Received: from hermes.ex.ac.uk by maths.exeter.ac.uk; Wed, 9 Jul 97 00:29:52 +0100
Received: from ella.mills.edu [144.91.3.20] by hermes via SMTP (AAA07476); Wed, 9 Jul 1997 00:29:50 +0100
Received: (qmail 9086 invoked by uid 2928); 8 Jul 1997 23:20:51 -0000
Date: Tue, 8 Jul 1997 16:20:51 -0700 (PDT)
From: Mike Berry
To: John Francis Beahan
Cc: csound mail list ,
David Marsh
Subject: Re: pan/ftable problem
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 problem is that you are using an ftable with a guard point.
The guard point is a duplication of the first point, in this case 0. Thus
a normalized index of 1 retrieves a zero instead of the 1 that you would
expect. Make the f card:
f2 0 8192 9 .25
Mike Berry
mikeb@mills.edu
http://www.mills.edu/PEOPLE/gr.pages/mikeb.public.html/mikeb.homepage.html
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa10667;
9 Jul 97 12:32 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa15938;
9 Jul 97 12:32 BST
Received: (qmail 5700 invoked from network); 9 Jul 1997 11:32:09 -0000
Received: from hermes.ex.ac.uk (194.83.11.25)
by pat.bath.ac.uk with SMTP; 9 Jul 1997 11:32:09 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (MAA03636); Wed, 9 Jul 1997 12:35:57 +0100
Received: from zeno by maths.exeter.ac.uk; Wed, 9 Jul 97 12:35:40 +0100
From: james@maths.ex.ac.uk
Message-Id: <8374.199707091126@zeno.maths.exeter.ac.uk>
Subject: test please ignore
To: csound@maths.ex.ac.uk
Date: Wed, 9 Jul 1997 12:26:38 +0100 (BST)
X-Mailer: ELM [version 2.4 PL25]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 97
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
this is test of new antispam measures for the csound list
--
James Andrews, maths CDO, ext.3977
|