Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

player: implement sync_retire_track() #110

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

vcaputo
Copy link
Contributor

@vcaputo vcaputo commented Aug 25, 2023

This adds the ability to "retire" a track, which frees the track and its associated keys, sending RETIRE_TRACK to the Editor if connected so the Editor can also discard the track from its UI.

The track id is not recycled to keep things simple for now.

The impetus for this is demos having an interactive creative process that dynamically add tracks at different names as the composition evolves. With enough iteration, there's a tendency for a large amount of unused tracks to accumulate.

This gives such interactively constructed demos a mechanism for discarding tracks from the Editor when they become unused.

@vcaputo
Copy link
Contributor Author

vcaputo commented Aug 25, 2023

Just posting this as a draft before it falls off my radar in case I get busy with other stuff.

This is more just a PoC draft than anything, since we can't really extend the protocol like this without #108 being addressed first. Plus this would need a rebase if #107 lands so it uses syncio_send() et al.

This adds the ability to "retire" a track, which frees the track
and its associated keys, sending RETIRE_TRACK to the Editor if
connected so the Editor can also discard the track from its UI.

The track id is not recycled to keep things simple for now.

The impetus for this is demos having an interactive creative
process that dynamically add tracks at different names as the
composition evolves.  With enough iteration, there's a tendency
for a large amount of unused tracks to accumulate.

This gives such interactively constructed demos a mechanism for
discarding tracks from the Editor when they become unused.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant