Csound Csound-dev Csound-tekno Search About

[Csnd] way to do something on last kpass?

Date2022-04-27 23:06
FromIain Duncan
Subject[Csnd] way to do something on last kpass?
I'm continuing my experiments in trying to cook up a clean legato syntax that will require the Max host to know as little as possible about csound internals, and am wondering (because there is so much nice new csound stuff I don't really know yet) if there is an elegant way to do something on only the last kpass of an instrument. I think probably the best solution to my problem is to have some kind of state container for active voices.

Or if not, how one might do this less elegantly...  ;-)

thanks!
iain

Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2022-04-27 23:24
From"Jeanette C."
SubjectRe: [Csnd] way to do something on last kpass?
Apr 28 2022, Iain Duncan has written:
...
> if there is an elegant way to do something on only
> the last kpass of an instrument.
...
I think lastcycle is what you're looking for. together with xtratim (to
generate a marked release phase) and the opcode release to indicate that
the instrument is in the release phase (time extension of the realtime
event) you should have a good toolkit.

Best wishes,

Jeanette

-- 
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You should never try to change me
I can be nobody else
And I like the way I am <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2022-04-27 23:53
FromIain Duncan
SubjectRe: [Csnd] way to do something on last kpass?
Ah sweet, thanks Jeanette. 

And thanks Eduardo if you see this, that's a darn handy new feature!

iain

On Wed, Apr 27, 2022 at 3:24 PM Jeanette C. <julien@mail.upb.de> wrote:
Apr 28 2022, Iain Duncan has written:
...
> if there is an elegant way to do something on only
> the last kpass of an instrument.
...
I think lastcycle is what you're looking for. together with xtratim (to
generate a marked release phase) and the opcode release to indicate that
the instrument is in the release phase (time extension of the realtime
event) you should have a good toolkit.

Best wishes,

Jeanette

--
  * Website: http://juliencoder.de - for summer is a state of sound
  * Youtube: https://www.youtube.com/channel/UCMS4rfGrTwz8W7jhC1Jnv7g
  * Audiobombs: https://www.audiobombs.com/users/jeanette_c
  * GitHub: https://github.com/jeanette-c

You should never try to change me
I can be nobody else
And I like the way I am <3
(Britney Spears)

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here