SuperDisk / hUGETracker

The music composition suite for the Nintendo Game Boy
https://superdisk.github.io/hUGETracker/
286 stars 12 forks source link

[Input request] Add "Paste Mix" #72

Closed Pegmode closed 2 years ago

Pegmode commented 2 years ago

Add the ability to "Paste Mix". This feature is found in many trackers such as Deflemask (ctl+b) or Famitracker (ctl+m).

Paste mix pastes the pattern data in your clipboard but importantly: if the position in your clipboard contains an empty value, then it does not overwrite whatever is currently at that position in the pattern.

Example with screenshots from hUGETracker:

we start with this in our pattern. This is also we copy to our clipboard for simplicity. ht_b_init

if you perform a normal paste in row 2 this is what happens. ht_b_bad

If you were to perform a paste-mix in this position with the same content this is what you would be pasted ht_b_paste_mix

Paste mixing is used commonly for "meta effects" in trackers and greatly speeds up workflow.

SuperDisk commented 2 years ago

Implemented in 5468cabe97d35ee5940e0ce1014663f1d1d8add5 with hotkey Ctrl+Shift+V (like in OpenMPT). Thanks!