Mass change to a preset; works indeed

Hi everone,

I’m creating a preset for the Korg 01RW. It is very similar to the Korg 03R/W which I already made.
But there are 3 types of mass changes to perform. See below in the Topic.
I can change this of course in the json of the preset, and upload this into the E1, but then I can no longer use the editor for maintaining that preset.

=> Is there a way I can perform the necessary mass changes, outside the editor and then load them back again into the editor ?

The necessary changes are:

1 There is a bit sequence

              "42",
              {
                "type": "function",
                "name": "getChannelByte"
              },
              "30",
              "41",

I need to replace with

              "42",
              {
                "type": "function",
                "name": "getChannelByte"
              },
              "2B",
              "41",
              "00",

in hundreds of places.

  1. I also need to reshuffle the multisound list, and provide other names for each sound in the list
       "value": 86,
          "label": "hardflute 2",
          "index": 86
        },
        {
          "value": 87,
          "label": "pan flute",
          "index": 87
        },
        {
          "value": 88,
          "label": "pan flute lp",
          "index": 88
        },
        {
          "value": 89,
          "label": "shakuhashi",
          "index": 89
        },
        {
          "value": 90,
          "label": "bottle",
          "index": 90
        },
        {
          "value": 91,
          "label": "bassoon",
          "index": 91
        },
        {
          "value": 92,
          "label": "oboe",
          "index": 92
        },
  1. Last but not least, I need to offset certain parsing bytes with 4 to 8 bytes in the json like in the code below where 149 must become 153, 150 => 154 etc…
 "parameterBitPosition": 2
                },
                {
                  "parameterNumber": 1208,
                  "type": "virtual",
                  "byte": 149,
                  "bitWidth": 1,
                  "byteBitPosition": 1,
                  "parameterBitPosition": 3
                },
                {
                  "parameterNumber": 1208,
                  "type": "virtual",
                  "byte": 149,
                  "bitWidth": 1,
                  "byteBitPosition": 6,
                  "parameterBitPosition": 4
                },
                {
                  "parameterNumber": 1208,
                  "type": "virtual",
                  "byte": 149,
                  "bitWidth": 1,
                  "byteBitPosition": 2,
                  "parameterBitPosition": 5
                },
                {
                  "parameterNumber": 1208,
                  "type": "virtual",
                  "byte": 144,
                  "bitWidth": 1,
                  "byteBitPosition": 4,
                  "parameterBitPosition": 6
                },
                {
                  "parameterNumber": 1208,
                  "type": "virtual",
                  "byte": 149,
                  "bitWidth": 1,
                  "byteBitPosition": 3,
                  "parameterBitPosition": 7
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 4,
                  "parameterBitPosition": 0
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 0,
                  "parameterBitPosition": 1
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 5,
                  "parameterBitPosition": 2
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 1,
                  "parameterBitPosition": 3
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 6,
                  "parameterBitPosition": 4
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 2,
                  "parameterBitPosition": 5
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 144,
                  "bitWidth": 1,
                  "byteBitPosition": 5,
                  "parameterBitPosition": 6
                },
                {
                  "parameterNumber": 1237,
                  "type": "virtual",
                  "byte": 150,
                  "bitWidth": 1,
                  "byteBitPosition": 3,
                  "parameterBitPosition": 7
                },
                {
                  "parameterNumber": 1229,
                  "type": "virtual",
                  "byte": 151,
                  "bitWidth": 1,
                  "byteBitPosition": 4,
                  "parameterBitPosition": 0
                },
                {
                  "parameterNumber": 1229,
                  "type": "virtual",
                  "byte": 151,
                  "bitWidth": 1,
                  "byteBitPosition": 0,
                  "parameterBitPosition": 1

You can import the edits json back into the editor, no? At least that’s what I’ve done in the past.

That would be nice, how do you do that?

The import project button button on the main page of the web editor :wink:

1 Like

thanks : I will try it out. Never too old to learn something in 2023 ! Better hurrry though :smiley:

1 Like

it works, just don’t forget to upload the lua again afterwards in a separate step.

Ah yes, forgot to mention that.

1 Like