Algorithmic Music in a Box
wesen - Manuel Odendahl - http://ruinwesen.com/
wesen - Manuel Odendahl - http://ruinwesen.com/
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Random Notes<br />
• Send a random m<strong>in</strong>orscale note when a<br />
button is pressed:<br />
void handleGui() {<br />
u<strong>in</strong>t8_t i;<br />
for (i = 0; i < 4; i++) {<br />
if (BUTTON_PRESSED(i + 4))<br />
MD::sendNoteOn(i,<br />
scalePitch(random(47, 80), 47, m<strong>in</strong>orScale),<br />
100);<br />
}<br />
}