# How easily change SysEx headers in multiple controls at once?

**URL:** https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811
**Category:** General discussion
**Tags:** preset
**Created:** [December 29, 2022, 12:58pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811 "2022-12-29T12:58:17Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)
#### Post date: [December 29, 2022, 12:58pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/1 "2022-12-29T12:58:18Z")

</div>

Hi, what would be the easiest way to perform a global “find and replace” in a preset?  
I need to **replace a part of a Sysex string** in hundreds of controls to another string in order to make the preset compatible with another model of the some (Korg) brand.

I thought to download the preset as a preset (.epr format) or as a project (.eproj) and then perform a “replace all” via Notepad for instance and upload the result again, but I’m unfamiliar with these formats, let alone know if I could bring this operation to a good end.

---

<div class="post-metadata">

### Author: ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)
#### Post date: [December 29, 2022, 5:32pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/2 "2022-12-29T17:32:38Z")

</div>

My solution was to open the LUA code, Ctrl-A, Ctrl-C, and paste it into Notepad/Wordpad/TextEdit, do the changes there, then cut and paste the whole thing back into the Electra environment.

Bonus points for saving the original before making the changes

EDIT - if it’s all in the JSON, you can pull down the EPR, pretty print it, then do the substitution in an editor, then unminify it and send it back up. Not exactly sure what happens on the re-upload; whether the Electra environment considers that a new preset or not.

---

<div class="post-metadata">

### Author: ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)
#### Post date: [December 29, 2022, 6:14pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/3 "2022-12-29T18:14:52Z")

</div>

Not sure that would work. The Sysex string I want to replace is defined within each SysEx control, not in the LUA. So unless there is a way to export all the jsons from within each control into LUA, that wouldn’t do the trick.

[Outlook voor Android downloaden](https://aka.ms/ghei36)

---

<div class="post-metadata">

### Author: ![jhh](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/jhh/32/951_2.png) [@jhh](https://forum.electra.one/u/jhh)
#### Post date: [December 29, 2022, 6:22pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/4 "2022-12-29T18:22:24Z")

</div>

If you’re comfortable with unix shells, sed or similar should do the trick (if the inputs are text files, like json .epr)

---

<div class="post-metadata">

### Author: ![oldgearguy](https://avatars.discourse-cdn.com/v4/letter/o/f4b2a3/32.png) [@oldgearguy](https://forum.electra.one/u/oldgearguy)
#### Post date: [December 29, 2022, 7:11pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/5 "2022-12-29T19:11:58Z")

</div>

yeah, sorry - you must have responded as I was editing my reply.  
Dealing with the entire epr or eproj as a mega text file is the only way.

The reason I suggested pretty-printing it first is to maybe make the substitutions you need to do easier.

---

<div class="post-metadata">

### Author: ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)
#### Post date: [December 29, 2022, 9:15pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/6 "2022-12-29T21:15:00Z")

</div>

What is interesting too is to use zerobrane studio for pasting all or snippets of code. It allows a secondary program to interpret the LUA

[Outlook voor Android downloaden](https://aka.ms/ghei36)

---

<div class="post-metadata">

### Author: ![NewIgnis](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/newignis/32/767_2.png) [@NewIgnis](https://forum.electra.one/u/NewIgnis)
#### Post date: [December 29, 2022, 9:18pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/7 "2022-12-29T21:18:39Z")

</div>

I’m not afraid to uae notepad or the likes to change strings. But what format should I use .epr? .eproj? In other words what’s the best format to import back into Electra? And is this importing as a new Preset or importing into an existing preset? Moreover, does it change the ID’s of controls?

---

<div class="post-metadata">

### Author: ![martin](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.electra.one/martin/32/145_2.png) [@martin](https://forum.electra.one/u/martin)
#### Post date: [December 29, 2022, 9:45pm UTC](https://forum.electra.one/t/how-easily-change-sysex-headers-in-multiple-controls-at-once/1811/8 "2022-12-29T21:45:32Z")

</div>

> [@NewIgnis](#):
>
> But what format should I use .epr? .eproj? In other words what’s the best format to import back into Electra?

it is better to edit the project file (.eproj). It is a file that the editor works with and the preset is generated out of that project. If you edit and import the preset file, editor will internally convert that to a project anyways.

> [@NewIgnis](#):
>
> And is this importing as a new Preset or importing into an existing preset?

I would suggest to make the edits and import as a new project. Check if everything is ok. If it is, you can import the same file as a new project revision later.

> [@NewIgnis](#):
>
> Moreover, does it change the ID’s of controls?

When using the project file, the IDs will stay unchanged.

before importing modified version check if the JSON is valid. eg. [https://jsonformatter.curiousconcept.com](https://jsonformatter.curiousconcept.com) is a good validator.
