Closed dariowsz closed 2 days ago
I see there is a floating-point precision problem because when I input -12.0, it saves it as -12.03 but it seems to be unrelated because I also tried changing the osc1_amp
value (where both the direct parameter modification and the editor changes output the same exact value) and the problem persists
Just saw there is a reset flag that resets the internal state of the plugin before the instrument generates the sample. It seems that the editor bypasses that reset somehow.
If I change the code to
audio = instrument(
[Message("note_on", note=60), Message("note_off", note=60, time=5)],
duration=5, # seconds
sample_rate=sample_rate,
reset=False
)
The problem is solved.
I'm closing the issue and leaving this as documentation in case someone has the same issue.
I was using pedalboard to generate some Massive presets with Python. Every time audio was generated, the parameters I changed would reset to default values and the generated audio was always the same. However, when I changed the same parameters using the UI editor with
my_plugin.show_editor()
it worked just fine.To recreate: When I run this code
I get this output:
However, when I change the value with the editor
I get this output: