1
0
Fork 0

Merge branch 'master' of ssh://hygiene.bl0rg.net/srv/git/arduinisten

This commit is contained in:
xeno 2010-04-06 22:24:51 +02:00
commit f90dd195b1
12 changed files with 623 additions and 639 deletions

View file

@ -93,12 +93,12 @@ void arpeggio_play(int32_t note, uint32_t len) {
// clock tick is 1s/18.2 == 54ms
#define MAGIC_CLOCK_TICK 54
#define MAGIC_DELAY_FACTOR 400 // well, should be 1000 us?!
#define MAGIC_BREATH 50
_delay_us(MAGIC_DELAY_FACTOR*(len*MAGIC_CLOCK_TICK/10));
// breath
curNote=REST;
_delay_us(50);
#define MAGIC_BREATH 50
_delay_us(MAGIC_BREATH);
}
void arpeggio(int32_t n1, int32_t n2, int32_t n3, int32_t len) {