Lua 'move_slice_marker' Updates Notes Incorrectly

Start a new song, load a sample into the initial slot and run this: = "C-4" = 00 = 1, 101)

Now take a look at the Pattern Editor and the Phrase Editor. Both notes that were C-4 (one was automatically inserted into the new phrase) have been changed to D-4. Nothing is supposed to happen in this situation and when you manually recreate it that’s precisely the case. It seems like it thinks that it’s moved the marker behind or before another - changing the slice order - and is making incorrect adjustments.

Interestingly, if the sample column in the Phrase Editor is enabled before the ‘move_slice_marker’ is run, then the notes there are preserved, but the Pattern Editor is still affected either way. Edit - I think the phrase notes are still being edited in this situation even if they appear the same, because sample playback stops. Playback only stops when moving markers manually if slices change order.

Here’s a more thorough test: = "C-4" = "C#4" = "D-4" = "D#4" = 00 = 00 = 00 = 00 = 1 = true = "C-4" = "C#4" = "D-4" = "D#4" = 00 = 00 = 00 = 00, 101)