aboutsummaryrefslogtreecommitdiff
path: root/quantum/audio.h
diff options
context:
space:
mode:
Diffstat (limited to 'quantum/audio.h')
-rw-r--r--quantum/audio.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/quantum/audio.h b/quantum/audio.h
index e1bc23ffe..05d314c94 100644
--- a/quantum/audio.h
+++ b/quantum/audio.h
@@ -3,6 +3,7 @@
3#include <avr/io.h> 3#include <avr/io.h>
4#include <util/delay.h> 4#include <util/delay.h>
5#include "musical_notes.h" 5#include "musical_notes.h"
6#include "song_list.h"
6 7
7#ifndef AUDIO_H 8#ifndef AUDIO_H
8#define AUDIO_H 9#define AUDIO_H
@@ -24,8 +25,12 @@ void play_note(double freq, int vol);
24void stop_note(double freq); 25void stop_note(double freq);
25void stop_all_notes(void); 26void stop_all_notes(void);
26void init_notes(void); 27void init_notes(void);
27void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat, float n_rest); 28void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest);
28 29
30void set_timbre(float timbre);
31void set_tempo(float tempo);
32void increase_tempo(uint8_t tempo_change);
33void decrease_tempo(uint8_t tempo_change);
29 34
30#define SCALE (int []){ 0 + (12*0), 2 + (12*0), 4 + (12*0), 5 + (12*0), 7 + (12*0), 9 + (12*0), 11 + (12*0), \ 35#define SCALE (int []){ 0 + (12*0), 2 + (12*0), 4 + (12*0), 5 + (12*0), 7 + (12*0), 9 + (12*0), 11 + (12*0), \
31 0 + (12*1), 2 + (12*1), 4 + (12*1), 5 + (12*1), 7 + (12*1), 9 + (12*1), 11 + (12*1), \ 36 0 + (12*1), 2 + (12*1), 4 + (12*1), 5 + (12*1), 7 + (12*1), 9 + (12*1), 11 + (12*1), \