| Iain,
Now that I'm looking at this, I don't think it would work....multiplying two envelopes together where one of them is at 0 will give you 0! So, we'd still get clicks....However, I think the instinct of using separate envelopes seems correct. Back to the drawing board.
I wonder what's going on with me these days that I'm puzzling over two CSound instruments simultaneously that involve complex envelope triggering?
AKJ
On Tue, Jun 8, 2010 at 8:58 PM, Aaron Krister Johnson <aaron@akjmusic.com> wrote:
Iain,
Thanks for responding so quickly a few days back....when I get a moment I'll look into this. It looks like a workable solution; I'll let you know.
AKJ
Iain McCurdy wrote:
Date: Wed,
2 Jun 2010 09:01:35 +0000 Subject: [Csnd] RE: envelopes for
restriking an instrument
adecay linsegr 1,3,0,0.1,0
aattack linseg 0,0.3,0,0.01,1,1,1
aenv = adecay * aattack
is something like this a possibility?
The natural decay time of the resultant envelope is 3 seconds but if a
note is turned off before this is completed (e.g. by a new note being
played) a release time of 0.1 seconds is used to simulate the time it
takes for the thumb to damp the tine. The zero flat line of 0.3 seconds
of the attack envelope allows this release segement to complete before
the new note begins. As a result of this the actual decay time of a note
will be 0.3s shorter, i.e. in this example 2.7s. You will need to
ensure that old notes are turned off if new notes overlap either in the
score or by using turnoff2 etc.
Let me know if any of this helps.
Iain
________________________________
> Date: Tue, 1 Jun 2010 22:05:17 -0500
> From: aaron@akjmusic.com
> Subject: [Csnd] envelopes for restriking an instrument
>
> Hi all,
>
> I have an elegant FM kalimba instrument. I
want to use numbered 'x.yy' instruments called with 'event_i' from a
helper instrument to trigger it, so that there is a 'legato' envelope.
Not sustained legato, mind you, but I'm hoping that the new instance of
the instrument will take an amplitude value from the old, bring it to
zero quickly before reinit of a new percussive envelope. This is akin to
how the thumb on a kalimba stops the sound of
the kalimba (if it's the same tine (pitch)) just
before restarting it on the downstroke of plucking.
>
> I know this is possible, and I know it's similar to a legato
instrument, but the examples I see all seem to talk about legato
instruments where there is a sustain portion of the envelope....i.e.,
the instrument always has a constant energy source. How can one
translate this idea to a more percussive envelope, so that we can keep a
decay/release segment going, have it stop and quickly attack again, w/o
clicks?
>
> Best,
>
> Aaron Krister Johnson
> http://www.akjmusic.com
> http://www.untwelve.org
>
--
-- Best,
Aaron Krister Johnson http://www.akjmusic.com http://www.untwelve.org
|