LED parameter sends affecting audio / envelope values

Hey everyone!

I’m experiencing a strange issue with my PlugData patch on the Daisy Seed and could use some help troubleshooting.

The Problem:
When I change scale modes using a button ([r sw4 @hv_paramhv_param]), I’m getting audible jumps in both volume and decay time. I’ve isolated the issue to my LED indicator section. When I remove all @hv_params led1 @hv_param], [s led2 @hv_param], etc. sends, the problem completely disappears.

Things I’ve tried:
Simplified to 1 voice only to isolate the issue
Ensured LED logic is completely separate from audio path (no shared connections)
Added delays (up to 1000ms) before LED updates (still happens)
Replaced all LEDs with identical types and current draw (still happens)
Only 1 LED on at any time (still happens)
Removed volume knob (replaced with fixed [*~ 0.05]) - decay jumps remain

The Weird Part:
The volume/decay changes are consistent per scale mode. Scale 1 always sounds louder than Scale 3, etc., even though the LED patterns and audio logic should be completely independent. It’s as if the LED parameter sends are somehow affecting ADC readings or audio processing timing.

Attached are the PD and JSON files if someone would be so kind to take a look.

Thanks in advance!

What do you want us to see from your jlcbcp order? :thinking:

There is no PD file in the zip.

Sorry, it was a long day! Here’s the PD and JSON.

So this is really strange. There is absolutely no connection to these and anything else in the patch.

I do not have any explanation on why this could be happening :person_shrugging:

What I am noticing is that your output volume is multiplied with 0.05 which is very very soft. So if you are amplifying this signal you would also be hearing any additional noise. You’d think that would be purely electrical though.

ps; I’m also missing some best practice in the patch, although I doubt that those would make much of a change here.

Thanks for taking a look!

Regarding the output volume: That’s actually a separate issue I was planning to tackle next. The synth is extremely loud compared to other Daisy projects I’ve built. I only have it multiplied by 0.05 for testing so I don’t blow out my little bench speaker! Interestingly, removing the LEDs fixes the decay / volume jumps but doesn’t affect the overall loudness issue, so they seem to be separate problems.

On the LED issue: It’s weird. There’s definitely no patch connection between the LED sends and the audio path. The only workaround I can think of is maybe flashing LEDs in a pattern to indicate scale mode rather than keeping them lit, but honestly I was hoping to get the 4-LED combinations working, it’d be so much cooler.

Best practices: I’d definitely appreciate any suggestions you have! I’m still relatively new to PlugData / Daisy and always looking to learn more. And who knows, maybe there’s something clumsy I’m doing that’s contributing to these issues.

One thing I’m wondering: could rapidly updating multiple @hv_param outputs (the 4 LED sends) be causing some kind of timing issue or resource contention in the Daisy firmware that affects ADC sampling or audio processing? It’s the only thing I can think of t this point.

Thanks again for your help!