Skip to content

Instantly share code, notes, and snippets.

@aturley
Created July 28, 2024 04:21
Show Gist options
  • Save aturley/306eb79d950e439ce324e4393379b83c to your computer and use it in GitHub Desktop.
Save aturley/306eb79d950e439ce324e4393379b83c to your computer and use it in GitHub Desktop.
This is a very simple test patch that blinks one of the LEDs (to show that the program is running) and plays a tone that can be adjusted with MIDI noteon messages. When I compile it with hvcc and then build it and install it on the Daisy it runs fine (for hours) until I start sending it MIDI messages, at which point it crashes (the LED stops bli…
#N canvas 63 101 450 300 12;
#X obj 107 216 osc~;
#X obj 107 242 dac~;
#X obj 109 185 mtof;
#X obj 199 98 loadbang;
#X msg 201 136 60;
#X obj 60 8 notein;
#X obj 305 92 metro 500;
#X obj 305 116 f;
#X obj 339 118 + 1;
#X obj 305 171 mod 2;
#X obj 305 195 s led1_red @hv_param;
#X connect 0 0 1 0;
#X connect 0 0 1 1;
#X connect 2 0 0 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 4 0 2 0;
#X connect 5 0 2 0;
#X connect 6 0 7 0;
#X connect 7 0 8 0;
#X connect 7 0 9 0;
#X connect 8 0 7 1;
#X connect 9 0 10 0;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment