Repository navigation
Tracks: enable the Pencil tool to draw MIDI regions (#154) - #158
Merged
Merged
Conversation
The Left-click tool menu in the Tracks area had only the Pointer tool working; the Pencil entry was a disabled placeholder, so a MIDI or instrument track had no way to draw an empty region on the timeline. - Pencil Tool is selectable and has its own toolbar icon. - With the Pencil, a click on an empty stretch of a MIDI track adds a one-bar region; a drag sets its length. Both snap to the grid. - Project::add_midi_region adds the empty region, refusing audio and bus tracks and zero-length regions, and tells the engine about it. Other tools in the menu remain disabled for now. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
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.
Closes #154
Agent: ui-agent (with mixer/midi data model in
prowave-app)Crate: prowave-app
Phase: Tracks area editing (Logic Pro parity: Pencil tool)
Logic Parity: Pencil tool draws an empty MIDI region on a MIDI or instrument track: click for a one-bar region, drag to set its length, both snapped to the grid.
Changes:
Project::add_midi_regionadds the empty region; refuses audio/bus tracks and zero-length regions.Audio Thread Safe: yes (UI and model only; no audio-thread code touched)
WASM Build: not checked on this PR (no change to prowave-dsp or wasm-facing crates)
Test:
cargo test -p prowave-app pencil(model creation rules and tool-menu wiring)cargo test --workspace: passescargo fmt --all -- --check,cargo clippy -p prowave-app --all-targets -- -D warnings: cleancargo xtask check: every step passes exceptdeny(advisories), which fails on existing dependencies (urlstack-overflow advisory; yankedasync-executorandclipboard-win). This PR does not changeCargo.lockorCargo.toml.Not yet checked: drag and click in the running window. Please try it on a MIDI track before merging.
🤖 Generated with Claude Code