summaryrefslogtreecommitdiffstats
path: root/quantum/beeps.h
blob: 4ccc3449736e2257303d88d135a5f85d232e9f67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <stdint.h>
#include <stdbool.h>
#include <avr/io.h>
#include <util/delay.h>

bool playing_notes;

void play_sample(uint8_t * s, uint16_t l, bool r);
void play_note(double freq, int vol);
void stop_note(double freq);
void stop_all_notes();
void init_notes();


void play_notes(float (*np)[][2], uint8_t n_length, bool n_repeat);