adds music mode, music mode songs, music mask
This commit is contained in:
parent
9abbbe7089
commit
415d38ba9e
10 changed files with 168 additions and 81 deletions
|
@ -100,8 +100,8 @@ void play_notes(float (*np)[][2], uint16_t n_count, bool n_repeat);
|
|||
#define NOTE_ARRAY_SIZE(x) ((int16_t)(sizeof(x) / (sizeof(x[0]))))
|
||||
#define PLAY_NOTE_ARRAY(note_array, note_repeat, deprecated_arg) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), (note_repeat)); \
|
||||
_Pragma ("message \"'PLAY_NOTE_ARRAY' macro is deprecated\"")
|
||||
#define PLAY_SONG(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), false);
|
||||
#define PLAY_LOOP(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), true);
|
||||
#define PLAY_SONG(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), false)
|
||||
#define PLAY_LOOP(note_array) play_notes(¬e_array, NOTE_ARRAY_SIZE((note_array)), true)
|
||||
|
||||
bool is_playing_notes(void);
|
||||
|
||||
|
|
|
@ -139,6 +139,38 @@
|
|||
E__NOTE(_B5), \
|
||||
E__NOTE(_A5 ),
|
||||
|
||||
#define VOICE_CHANGE_SOUND \
|
||||
Q__NOTE(_A5 ), \
|
||||
Q__NOTE(_CS6), \
|
||||
Q__NOTE(_E6 ), \
|
||||
Q__NOTE(_A6 ),
|
||||
|
||||
#define CHROMATIC_SOUND \
|
||||
Q__NOTE(_A5 ), \
|
||||
Q__NOTE(_AS5 ), \
|
||||
Q__NOTE(_B5), \
|
||||
Q__NOTE(_C6 ), \
|
||||
Q__NOTE(_CS6 ),
|
||||
|
||||
#define MAJOR_SOUND \
|
||||
Q__NOTE(_A5 ), \
|
||||
Q__NOTE(_B5 ), \
|
||||
Q__NOTE(_CS6), \
|
||||
Q__NOTE(_D6 ), \
|
||||
Q__NOTE(_E6 ),
|
||||
|
||||
#define GUITAR_SOUND \
|
||||
Q__NOTE(_E5 ), \
|
||||
Q__NOTE(_A5), \
|
||||
Q__NOTE(_D6 ), \
|
||||
Q__NOTE(_G6 ),
|
||||
|
||||
#define VIOLIN_SOUND \
|
||||
Q__NOTE(_G5 ), \
|
||||
Q__NOTE(_D6), \
|
||||
Q__NOTE(_A6 ), \
|
||||
Q__NOTE(_E7 ),
|
||||
|
||||
#define CAPS_LOCK_ON_SOUND \
|
||||
E__NOTE(_A3), \
|
||||
E__NOTE(_B3),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue