Problem with hv_param

I have this patch that appears to have been flashed correctly on daisyseed, but when I turn the knob called “fastgrani @hv_param” to its minimum, the audio cuts out.
Additionally, the “light1” photoresistor and the “ottava1” and “ottava2” switches seem to be undetected.

I reduced the patch to only the part that causes problems, so the json contains other sensors and analog controls that I obviously don’t use here.

index3.json.zip (1.0 KB)

soloerroregrani.pd.zip (3.3 KB)

Can I suggest that you create a minimal version of the patch that shows the issue?

This is very hard to read and difficult to follow. We don’t understand your architecture and it’s asking a lot.

If you can localize the issue then it is much easier to investigate.

One comment I can give is that adding all of these explicit [bang] objects everywhere are completely unnecessary and only add to the size of your patch.

soloerroregrani.pd.zip (2.1 KB)

I’m sorry but this is still much too complex for me to understand. Also I do not speak Italian so none of the names or descriptions are legible for me.

One issue in your json file is that your switches have "pull": "pullup" which is not a valid configuration as far as I know. There is no reference to pull setting anywhere in the code, so what are you expecting here exactly?

Another odd thing is that you are using [pipe] object to delay sending a bang (but you have to convert this 0 value first). You might as well just use [delay] object here which would be much more clear.

So from what I can tell you are changing the phase, but if you are resetting every 20ms there is not really anything to hear, or it’s just noise (quick test also shows this). This is simply much too short perhaps.

Thanks so much for the advice, replacing “pipe” with “del” solved the “fastgrani” knob problem. Now there’s just one thing I can’t figure out: everything works except the “ottava2” switch connected to daisyseed’s pin d28 (with an active pull-up resistor, as you can see in the json).

I thought that when connecting switch buttons to daisyseed pins I had to specify to “activate” the pull up resistor inside the pin.

As I said I don’t understand where you get this pull syntax from.
It is not in any documentation or examples afaik.
(it is only used internally for GateOut)

So please link the resource where you got this from.

I probably read it in Google’s “AI Mode”, but I don’t remember what I asked for it to tell me to do that (I can’t get this result to come out again), the fact is that now that I removed those parts of code from the json file, plugdata no longer flashes the daisyseed correctly

It makes sense that AI makes up random things, because that’s what it’s supposed to do. Don’t use it as a reference, it is almost always going to give something that is not right.

What do you mean with “no longer flashes .. correctly” ?
These lines in the json were already ignored, so removing them doesn’t change anything.

I solved the problem. First, I added the following to my json file: “display”: {}, (just like in the daisy pod json file). This was already flashing correctly. Then I noticed that the button wasn’t working due to an incorrect pin declaration in the json file; it was actually connected to a different pin (sorry for wasting your time).

1 Like

Ok! great that you managed to fix it

1 Like