diff options
author | Stephan Bösebeck <stephan.boesebeck@holidayinsider.com> | 2016-04-18 08:03:22 +0200 |
---|---|---|
committer | Stephan Bösebeck <stephan.boesebeck@holidayinsider.com> | 2016-04-18 08:03:22 +0200 |
commit | 9cc39156f7ac696c4561a8fa4e01bbcc9addc53e (patch) | |
tree | af166a966b16bb1714551265965b3660fa0c26ba /quantum/audio.h | |
parent | 6732d6cf1a3268ece981c6b0c07a1b9e0f61adbe (diff) | |
parent | d94960be5b32b6a4019b822550ae09cf802bfcd7 (diff) |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'quantum/audio.h')
-rw-r--r-- | quantum/audio.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/quantum/audio.h b/quantum/audio.h index e1bc23ffed..05d314c940 100644 --- a/quantum/audio.h +++ b/quantum/audio.h @@ -3,6 +3,7 @@ #include <avr/io.h> #include <util/delay.h> #include "musical_notes.h" +#include "song_list.h" #ifndef AUDIO_H #define AUDIO_H @@ -24,8 +25,12 @@ void play_note(double freq, int vol); void stop_note(double freq); void stop_all_notes(void); void init_notes(void); -void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat, float n_rest); +void play_notes(float (*np)[][2], uint8_t n_count, bool n_repeat, float n_rest); +void set_timbre(float timbre); +void set_tempo(float tempo); +void increase_tempo(uint8_t tempo_change); +void decrease_tempo(uint8_t tempo_change); #define SCALE (int []){ 0 + (12*0), 2 + (12*0), 4 + (12*0), 5 + (12*0), 7 + (12*0), 9 + (12*0), 11 + (12*0), \ 0 + (12*1), 2 + (12*1), 4 + (12*1), 5 + (12*1), 7 + (12*1), 9 + (12*1), 11 + (12*1), \ |