Skip to content

Track Instrument Changes in Journal#8208

Open
extern-stat wants to merge 1 commit intoLMMS:masterfrom
extern-stat:instrument-undo
Open

Track Instrument Changes in Journal#8208
extern-stat wants to merge 1 commit intoLMMS:masterfrom
extern-stat:instrument-undo

Conversation

@extern-stat
Copy link
Copy Markdown
Contributor

This fixes #1262 by making a journal checkpoint when a track's instrument changes. It sometimes requires multiple undos to undo an instrument change because some instruments create journal checkpoints upon being loaded, but that's a preexisting issue that's unrelated to this fix.

@sakertooth
Copy link
Copy Markdown
Contributor

sakertooth commented Jan 12, 2026

I wanted to test but if I don't get the chance another maintainer can feel free to merge after confirming the fix works.

@irrenhaus3
Copy link
Copy Markdown
Contributor

Just tested this one; it works, although it behaves a little strangely when the newly set instrument has active settings in the envelope/filter/LFO tab and/or effects. Probably because these create additional Journal checkpoints of their own. Try replacing a Zyn preset with e.g. the DetunedGhost preset for Triple Oscillator to see what I mean. You'll have to hit Undo a couple times to get back to the Zyn preset, but you do get back to it, and all EF/LFO settings and Effects are properly removed.

@bratpeki
Copy link
Copy Markdown
Member

I'm worried about the memory footprint of this. That being said, I still haven't tested it but I'll get around to it.

@rubiefawn rubiefawn added the needs testing This pull request needs more testing label Mar 23, 2026
@rubiefawn rubiefawn added this to the 1.3 milestone Mar 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs testing This pull request needs more testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

make instrument change undoable

5 participants