Cannot update/add json template in editor?

I am frustrated…
Spend a lot of time on the pioneer AS-1 editor with patch parsing.
But the editor keeps breaking it…
Deviceid 1 is added and controls are broken.

Below works … but I am not able to get it into a preset using the online editor…

How can I create a working preset using the LUA and json below?

I removed all reference to "Deviceid 1 "
Never added this… .the editor does this… not sure why.

-- This needs to reflect the preset device settings

pioneerAs1DeviceId = 5

-- SetMidiChannel callback added in json
function setMidiChannel (control, value)
    device = devices.get (pioneerAs1DeviceId)
    device:setChannel (value +1)
end

AS1-working.epr (101.9 KB)

This is the preset json that works if send to the E1 but I cannot get it into the editor.

It seems the webapp broke the template by adding a device. deviceid 1, and some controls where set to this id.

Template works on “Midi channel: 3” and midichannel selector does not work.

If I remove the deviceid1 form the project file and import this the reference in the json is not there after import.
However if you select device there is again the generic midi device.

If the template is saved it looks ok. no deviceid 1 added and no controls broken.

Pioneer Toraiz AS-1 (1).eproj (54.6 KB)

This is the current fixed project.

So I cannot change the json is an preset in the webapp.
But fixing the json in the project and upload this does work.

Hmm I think I am the bug… :slight_smile:

After I imported the project it works fine.

In the editor I can select the deviceid and see the patch parsing rules.