[chuck-users] code to run when "remove shread" command is sent
mario buoninfante
mario.buoninfante at gmail.com
Tue Mar 27 17:03:34 EDT 2018
Hi Spencer,
ok got it. the first thing that pops up in my mind is creating a
function that cleans everything up and then close the program. then I
can call it with a combination of pads pressed on my controller.
cheers,
Mario
On 27/03/18 21:59, Spencer Salazar wrote:
> Hey Mario,
>
> This doesn't exist currently, but usually the way this is handled is
> to run any cleanup before removing the shred. It requires a bit more
> planning up front in terms of code architecture, but isn't too insane.
>
> Spencer
>
>
> On Tue, Mar 27, 2018 at 4:47 PM, mario buoninfante
> <mario.buoninfante at gmail.com <mailto:mario.buoninfante at gmail.com>> wrote:
>
> Hi all,
>
>
> is there a way to run a bit of code after then ChucK receives the
> command to remove the shread?
>
> I'll try to be a bit more clear. I'm using a MIDI controller and
> my script controls its LEDs. the point is, when I remove the
> shread, the LEDs remain on. so I'd like to turn them off when the
> shread is removed.
>
>
> cheers,
>
> Mario
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> <mailto:chuck-users at lists.cs.princeton.edu>
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
> <https://lists.cs.princeton.edu/mailman/listinfo/chuck-users>
>
>
>
>
>
> --
> Spencer Salazar, PhD
> Special Faculty
> Music Technology: Interaction, Intelligence, and Design
> California Institute of the Arts
>
> ssalazar at calarts.edu <mailto:ssalazar at calarts.edu> | +1 831.277.4654
> https://spencersalazar.com <https://spencersalazar.com/>
>
>
>
> _______________________________________________
> chuck-users mailing list
> chuck-users at lists.cs.princeton.edu
> https://lists.cs.princeton.edu/mailman/listinfo/chuck-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cs.princeton.edu/pipermail/chuck-users/attachments/20180327/045053f2/attachment.html>
More information about the chuck-users
mailing list