1
0
Fork 0

quantum: remove direct quantum.h includes (#21507)

This commit is contained in:
Ryan 2023-07-16 23:42:56 +10:00 committed by GitHub
parent b9e5895184
commit da2d2f947d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 208 additions and 62 deletions

View file

@ -583,3 +583,6 @@ uint16_t audio_duration_to_ms(uint16_t duration_bpm) {
uint16_t audio_ms_to_duration(uint16_t duration_ms) {
return ((uint32_t)duration_ms * 2 * note_tempo) / 1875;
}
__attribute__((weak)) void audio_on_user(void) {}
__attribute__((weak)) void audio_off_user(void) {}

View file

@ -21,12 +21,6 @@
#include "musical_notes.h"
#include "song_list.h"
#include "voices.h"
#include "quantum.h"
#include <math.h>
#if defined(__AVR__)
# include <avr/io.h>
#endif
#if defined(AUDIO_DRIVER_PWM)
# include "audio_pwm.h"
@ -280,3 +274,6 @@ bool audio_update_state(void);
#define increase_tempo(t) audio_increase_tempo(t)
#define decrease_tempo(t) audio_decrease_tempo(t)
// vibrato functions are not used in any keyboards
void audio_on_user(void);
void audio_off_user(void);

View file

@ -1,5 +1,7 @@
#include "muse.h"
#include <stdbool.h>
enum { MUSE_OFF, MUSE_ON, MUSE_C_1_2, MUSE_C1, MUSE_C2, MUSE_C4, MUSE_C8, MUSE_C3, MUSE_C6, MUSE_B1, MUSE_B2, MUSE_B3, MUSE_B4, MUSE_B5, MUSE_B6, MUSE_B7, MUSE_B8, MUSE_B9, MUSE_B10, MUSE_B11, MUSE_B12, MUSE_B13, MUSE_B14, MUSE_B15, MUSE_B16, MUSE_B17, MUSE_B18, MUSE_B19, MUSE_B20, MUSE_B21, MUSE_B22, MUSE_B23, MUSE_B24, MUSE_B25, MUSE_B26, MUSE_B27, MUSE_B28, MUSE_B29, MUSE_B30, MUSE_B31 };
bool number_of_ones_to_bool[16] = {1, 0, 0, 1, 0, 1, 1, 0, 0, 1, 1, 0, 1, 0, 0, 1};

View file

@ -1,6 +1,5 @@
#pragma once
#include "quantum.h"
#include "process_audio.h"
#include <stdint.h>
uint8_t muse_clock_pulse(void);

View file

@ -16,7 +16,9 @@
*/
#include "voices.h"
#include "audio.h"
#include "timer.h"
#include <stdlib.h>
#include <math.h>
uint8_t note_timbre = TIMBRE_DEFAULT;
bool glissando = false;