Skip to content

Conversation

@regulus79
Copy link
Member

This PR makes it so that when playing the Song Editor, the playheads in the Piano Roll and Automation Editor sync up when the song playhead passes over their clips. This is just like what happens when doing record-play in the piano roll, except now it happens by default.

Additionally, when pressing play in the Automation Editor, it starts playing the song relative to the position of the clip, not the start of the song.

While I was at it, I also decided to upgrade the automation editor timeline to support proper auto scrolling. It already did previously, but it was a bit broken and couldn't be turned on or off.

This feature also works when detuning a note in the piano roll via the automation editor, and also when editing midi clips or automation clips within a pattern track.

2025-12-17.17-43-39.mp4

There's a lot of repeated code across the editors, but it's a bit tricky to combine them, since our editors don't share a common inherited class (Editor exists, but that's for the editor windows, not the editors themselves). That may have to wait for a future PR to refactor things, as I don't want to make this PR too big. For now, there is come duplicated code, but it works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants