Hydra’s documentation says it can be set up to respond to MIDI CC’s. It says here that if you run that “register WebMIDI” code in Hydra’s console, then you can communicate with Hydra via CC’s you set up with the code at the bottom of that page.
When I run the “register WebMIDI” code in Hydra, I get a message in its console that says, “navigator.requestMIDIAccess is not a function.” No MIDI port appears in Sonic Pi to send messages to. Any clues as to how to supply whatever the missing pieces are?
On my phone at the moment, but have you checked whether you’re using a compatible browser? (Such as an up to date version of Chrome).
Here’s a screenshot of the compatibility report from caniuse.com:
Unfortunately, no. The red marking above indicates ‘not compatible’… likewise for Safari. The diagram indicates that only recent versions of Edge and Chrome are compatible
I’ve now executed that Hydra MIDI code in Chrome without error. Hydra’s MIDI documentation also says to execute noise(4).color( ()=>cc[16], ()=>cc[17], ()=>cc[18] ).out() to control color with those three CC numbers. That also runs without error. Sonic Pi, though, shows no Hydra-related port to send midi_cc to, just my unchanged set of active ports. I tried re-starting, but no change. Any ideas?