neingeist
/
arduinisten
Archived
1
0
Fork 0

add noise and industrial

master
entropia 14 years ago
parent cef4f78b3c
commit 96ca6fbfc0

@ -81,6 +81,7 @@ int sendKarplusStrongSound(uint16_t f /*Hz*/, uint8_t T /* 1/DIVIDER sec*/) {
for (uint32_t i=(uint32_t) sr*T/DIVIDER; i>0; i--) {
// current amplitude to play is the highest byte of buf[bh]
#define NOISEINDUSTRIAL 1
#if NOISEINDUSTRIAL
OCR2A = buf[bh];
#else