| Hi,
OK, I think I understand now although an example might help. The problem is
probably that the attack and decay times are longer than the note duration.
There are several ways to solve this problem. I'm not sure which one will
work best for you.
1. Use ratios of p3. ie:
kenv linseg 0, p3*.1, 1, p3*.3, .7, p3*.5, .5, p3*.1, 0
2. Use oscil to generate a pseudo envelope:
kenv oscil 1, 1/p3, ienvtable
f10 0 1024 7 0 100 1 300 .7 500 .5 124 0
The first two methods are pretty equivalent and suffer from shorter notes
having shorter attack and decay times while the longer ones have long attack
and decay times.
3. Specify attack and decay times in the score:
; Sta Dur Amp Pitch Attack Decay Release
i1 0 1.0 10000 7.00 .1 .2 .2
You can also extend the note duration based on release time as follows:
p3 = p3+p8
kenv linseg 0, p3-p6, 1, p3-p7, .7, p3-p6-p7-p8, .5, p3-p8, 0
This way works pretty good but you have to specify the attack, decay &
release for each note.
4. Use an if statement to use separate envelopes for long and short notes:
if (p3<(iattack+idecay)) kgoto else1
kenv linseg 0, p3-iattack, 1, p3-idecay, .7, p3-iattack-idecay-irelease,
.5, p3-irelease, 0
kgoto next1:
else1:
kenv linseg 0, p3*.1, 1, p3*.3, .7, p3*.5, .5, p3*.1, 0
next1:
Bye,
Hans Mikelson
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa00779;
24 May 98 15:24 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa17301;
24 May 98 15:24 BST
Received: (qmail 18378 invoked from network); 24 May 1998 14:24:37 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 24 May 1998 14:24:37 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (PAA26133); Sun, 24 May 1998 15:19:17 +0100 (BST)
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Sun, 24 May 98 15:18:32 +0100
Received: from root@pluto.senet.com.au [203.11.90.2] by hermes via ESMTP (PAA11107); Sun, 24 May 1998 15:18:14 +0100 (BST)
Received: from c10-p11.senet.com.au (c10-p11.senet.com.au [203.56.236.76])
by pluto.senet.com.au (8.8.7/8.8.7) with SMTP id XAA12294
for ; Sun, 24 May 1998 23:48:07 +0930
Date: 24 May 98 23:48:14 +0930
Subject: Re: amplitude envelopes /practicality
From: Nathan Day
To: Contribute Csound
X-Mailer: Cyberdog/2.0
Mime-Version: 1.0
Message-Id:
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
>I'm having a lot of trouble dealing with notes getting chopped off by
>succeeding notes and having to go about tweaking envelope settings.Too
>tedious for extended use.
I think your problem here is that your tryng to let your notes go longer
than 'p3', this is the total length of each note, release and all, no just
the sustain period. Make the total length of all the segments to your
envelopes equal to or less than 'p3' and you note cutting problem should
disappear.
eg
kenv linseg 3, 0.07*p3, 2, 0.2*p3, 0, 0.33*p3, .7, 0.4*p3, 0
(0.07 + 0.2 + 0.33 + 0.4) * p3 = p3
Nathan Day
nathand@senet.com.au
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa00979;
24 May 98 18:16 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa27801;
24 May 98 18:16 BST
Received: (qmail 23542 invoked from network); 24 May 1998 17:16:03 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 24 May 1998 17:16:03 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (SAA14241); Sun, 24 May 1998 18:12:18 +0100 (BST)
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Sun, 24 May 98 18:11:58 +0100
Received: from maggie.uncg.edu [152.13.36.2] by hermes via ESMTP (SAA15677); Sun, 24 May 1998 18:11:52 +0100 (BST)
Received: from ds370510.uncg.edu (ds370510.uncg.edu [152.13.231.24]) by maggie.uncg.edu (8.8.7/8.7.3) with SMTP id NAA17067 for ; Sun, 24 May 1998 13:11:51 -0400 (EDT)
Message-Id: <35687139.7BE7@hamlet.uncg.edu>
Date: Sun, 24 May 1998 12:12:57 -0700
From: Art Hunkins
Reply-To: abhunkin@hamlet.uncg.edu
Organization: UNC-Greensboro
X-Mailer: Mozilla 3.03Gold (Win16; I)
Mime-Version: 1.0
To: csound@maths.ex.ac.uk
Subject: Linsegs?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
I thought that orc statements were limited to a single 80-character
line. Has this changed?
Obviously, your linseg "line" is way over *that* limit.
Art Hunkins
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa01213;
24 May 98 20:44 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa05159;
24 May 98 20:44 BST
Received: (qmail 28394 invoked from network); 24 May 1998 19:44:31 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 24 May 1998 19:44:31 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA04811); Sun, 24 May 1998 20:41:47 +0100 (BST)
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Sun, 24 May 98 20:41:07 +0100
Received: from bom2.vsnl.net.in [202.54.1.1] by hermes via ESMTP (UAA06189); Sun, 24 May 1998 20:40:54 +0100 (BST)
Received: from [202.54.17.93] ([202.54.17.93])
by bom2.vsnl.net.in (8.8.5/8.8.8) with SMTP id BAA13811
for ; Mon, 25 May 1998 01:10:28 +0530 (IST)
Message-Id: <199805241940.BAA13811@bom2.vsnl.net.in>
Subject: Re: amplitude envelopes /practicality
Date: Mon, 25 May 98 01:11:46 +0000
X-Mailer: Claris Emailer 1.1
From: Drew Skyfyre
To: Contribute
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Thanks Hans,Toby,Nathan,I think I should be able to deal with this better
now.
For those who didn't quite get what I was trying to convey,I did send
out a better explanation to Hans and Toby, which is given below.Thought
it might be useful along with the solutions given by Hans,etc.in case
someone else hits on the same problem.
>Actually, I think it's something to do with having to change attack and
>release times,when one changes the speed at which the notes play,like
>changing them from 16th notes at 75 bpm to say
>32nd notes .Because the problem seems to go away if I shorten the attack
>and release times .If I leave the values as they are,there's a lot of ugly
>clicks if the notes go faster.
>
>So, I was wondering if I could get the orc to deal with this
>automatically,so I could only enter one value in the score for ea. note
>that would act like a velocity value (in addition to the duration value)
>and the orc would adjust attack ,release ,and other envelope settings
>intelligently.I had some ideas, but was looking for what others had to say
>,in case I hadn't thought of something.
Cheers,
Drew
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa01219;
24 May 98 20:44 BST
Received: from mercury.bath.ac.uk by stork.maths.Bath.AC.UK id aa05164;
24 May 98 20:44 BST
Received: (qmail 1866 invoked from network); 24 May 1998 19:44:37 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by mercury.bath.ac.uk with SMTP; 24 May 1998 19:44:37 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (UAA06087); Sun, 24 May 1998 20:41:52 +0100 (BST)
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Sun, 24 May 98 20:41:03 +0100
Received: from bom2.vsnl.net.in [202.54.1.1] by hermes via ESMTP (UAA05016); Sun, 24 May 1998 20:40:49 +0100 (BST)
Received: from [202.54.17.93] ([202.54.17.93])
by bom2.vsnl.net.in (8.8.5/8.8.8) with SMTP id BAA26011;
Mon, 25 May 1998 01:10:15 +0530 (IST)
Message-Id: <199805241940.BAA26011@bom2.vsnl.net.in>
Subject: Re:score11?
Date: Mon, 25 May 98 01:11:35 +0000
X-Mailer: Claris Emailer 1.1
From: Drew Skyfyre
To: David Vincelli , Contribute
Mime-Version: 1.0
Content-Type: text/plain; charset="US-ASCII"
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
Hi David,
What I did is put together simple scores refering to the Orcs which are
in the std. format and from what I could decipher of the Score 11
format.Easy enough (especially if I can do it).
Good Luck,
Drew
>The Schindler Csound Tutorial makes use of score11 notation.
>Would someone be so kind as to tell me how I turn this notation into
>the notation I'm used to (the one used through out the csound
>manual). It there a built in function to the csound executable that
>will translate this? Or do I have no choice but to use my mind to
>understand this (gasp I wouldn't want to dot that now would I.)
>
>(btw, I'm on Win95 and Linux)
>--
>David Vincelli
Received: from stork.maths.bath.ac.uk by omphalos.maths.Bath.AC.UK id aa01333;
24 May 98 22:06 BST
Received: from pat.bath.ac.uk by stork.maths.Bath.AC.UK id aa09478;
24 May 98 22:06 BST
Received: (qmail 776 invoked from network); 24 May 1998 21:06:32 -0000
Received: from hermes.ex.ac.uk (HELO exeter.ac.uk) (144.173.6.14)
by pat.bath.ac.uk with SMTP; 24 May 1998 21:06:32 -0000
Received: from noether [144.173.8.10] by hermes via SMTP (WAA08556); Sun, 24 May 1998 22:01:59 +0100 (BST)
Received: from hermes.ex.ac.uk by maths.ex.ac.uk; Sun, 24 May 98 22:01:37 +0100
Received: from exim@wallace.maths.bath.ac.uk [138.38.100.104] by hermes via SMTP (WAA09339); Sun, 24 May 1998 22:01:31 +0100 (BST)
Received: from omphalos.maths.bath.ac.uk (maths.Bath.AC.UK) [138.38.99.25] (mmdf)
by wallace.maths.bath.ac.uk with smtp (Exim 1.82 #1)
id 0ydhtd-0001R0-00; Sun, 24 May 1998 22:01:33 +0100
Date: Sun, 24 May 98 22:01:33 BST
From: J P Fitch
To: Hans Mikelson
Cc: Csound
Subject: Re: Where can I find lpanal, pvanal, & cvanal?
Message-Id:
Sender: owner-csound-outgoing@maths.ex.ac.uk
Precedence: bulk
They are in csound_new.zip or in teh usual csound -U option
==John
|