From 573a07fc4dfd752afe97085153f71d02cefa3378 Mon Sep 17 00:00:00 2001 From: bordun Date: Sun, 25 Oct 2020 18:06:59 +0100 Subject: [PATCH] editor: paste ID+1: midi-related addresses should not be incremented --- CHANGELOG.md | 1 + src/client/editor/data-workers.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ce91e37..54255156 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,7 @@ - ssl: generate unique certificates (with random serial numbers) to avoid reuse errors. Certificates generated with older versions of o-s-c will be updated automatically. - `~/` path prefix not recognized when using remote control commands like `/SESSION/SAVE` - `~/` path prefix not recognized in `remote-root` option + - editor: paste ID+1: midi-related addresses should not be incremented - remote control - add `/STATE/OPEN` and `/STATE/SAVE` commands diff --git a/src/client/editor/data-workers.js b/src/client/editor/data-workers.js index f8c0cc43..3265ecb2 100644 --- a/src/client/editor/data-workers.js +++ b/src/client/editor/data-workers.js @@ -182,7 +182,7 @@ var incrementWidget = function(data, root){ data.address = 'auto' - } else if (address !== 'auto') { + } else if (!address.match(/^auto|\/control|\/note|\/program|\/sysex|\/key_pressure|\/channel_pressure|\/pitch/) !== 'auto') { var addressref while (fakeStore.address.indexOf(address) != -1 || widgetManager.getWidgetByAddress(addressref).length) {