Repository navigation
feat(core): a light show's sequences, and their cues, as operations that take themselves back - #825
Merged
Merged
Conversation
…hat take themselves back define_sequence, undefine_sequence, rename_sequence (every reference with it) and set_sequence_head, and the cue operations on a sequence's cues as on a show's, named by Timeline. A cue operation written with `show` still reads. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VEZZN4nU1eVZwV4ekT2St9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed.
edit::light_showgets four operations on the sequences a.lightfile defines. The cue operations now also work on a sequence's own cues.define_sequence/undefine_sequence: a sequence added (a file's first goes just before its first show) or taken out with its cues and comments. The inverse puts it back between the items it was between. Taking out a sequence that something still plays ischecked's to refuse, not the operation's.rename_sequence: renames the sequence and every reference to it, in shows and in other sequences. It refuses a name that can't be written, a name the file defines or refers to already, and a sequence whose name another sequence also has (which references meant which isn't the operation's to say). Those refusals are what make its inverse always apply.set_sequence_head: sets its parameters andlength:.Timeline:on: 0for a show,on: {"sequence": 0}for a sequence.show: 0, as written before, still reads (serde alias).Moved's cue variants carryontoo, and there are newSequenceDefined/SequenceUndefinedvariants.Sequence::named/new_sequence.Verified.
cargo test -p mtrack-core -p mtrack-rules-wasm: all pass. The examples round trip now covers every sequence too (define at the start and end, undefine, rename, set head, and every cue operation on its cues). New tests cover rename and its refusals, cue edits in a sequence, where a first sequence goes, taking out a sequence that is still played, and the oldshowwire form.cargo fmt --checkis clean.make lint-rustshows only the existingmvr_corpuswarning.Why. The Nonchord mtrack hub edits through these operations. This lets it edit a sequence on a timeline of its own.
🤖 Generated with Claude Code
https://claude.ai/code/session_01VEZZN4nU1eVZwV4ekT2St9