Csound Csound-dev Csound-tekno Search About

Resetting at end of instrument instance

Date2015-09-30 02:15
FromAlex Weiss
SubjectResetting at end of instrument instance
AttachmentsNone  None  
Hi csounders,

Short of counting k-cycles and multiplying by kr, is there a way to figure out when a given instrument instance is in its last performance cycle so it can perform any necessary cleanup (e.g. resetting a global variable) before it finishes?

Thanks,
Alex

Date2015-09-30 05:23
FromTarmo Johannes
SubjectRe: Resetting at end of instrument instance
AttachmentsNone  None  

Hi

if release()==1 then
;do your thing
endif

?

Tarmo

30.09.2015 4:16 kirjutas kuupäeval "Alex Weiss" <alexweiss86@gmail.com>:
Hi csounders,

Short of counting k-cycles and multiplying by kr, is there a way to figure out when a given instrument instance is in its last performance cycle so it can perform any necessary cleanup (e.g. resetting a global variable) before it finishes?

Thanks,
Alex

------------------------------------------------------------------------------

_______________________________________________
Csound-users mailing list
Csound-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/csound-users
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here