kallaballa / MidiPatch

MidiPatch is a scriptable and modular real-time software synthesizer using the PatchScript API
GNU Affero General Public License v3.0
12 stars 2 forks source link

Negative control parameter values lead to message parsing error #119

Closed kallaballa closed 4 years ago

kallaballa commented 4 years ago

For example:

local threshold = synth:addParameter("Compressor.threshold", -12):displayName("Threshold (dbFS)"):min(-60):max(0);`

This control parameter has a default value of -12. When i try to change it i get following error:

2019-11-28 19:48:29 [Error] Message parsing error [json.exception.type_error.302] type must be number, but is null({"type":"set-control","name":"Compressor.threshold","value":null})

It seems to me the javascript knob library is not handling negatives values correctly, but that's just a guess.

kallaballa commented 4 years ago

duplicate of #124