рефакторинг мелодий и добавление звуковых эффектов (не проверены)

This commit is contained in:
2026-04-21 14:02:32 +03:00
parent ad9b951bdb
commit 7b7ab6f11d
8 changed files with 254 additions and 172 deletions

View File

@@ -1,10 +1,10 @@
#pragma once
#include "melody.h"
#include "notes.h"
#define song_length(song_arr) sizeof(song_arr)/sizeof(song_arr[0]);
#define song_length(song_arr) sizeof(song_arr)/sizeof(song_arr[0])
const Note Polyphia_OD[] = {
static const Note_t Polyphia_OD_Notes[] = {
//1 ТАКТ
{FA1s, NOTE_SIXTEENTH},
{LA1, NOTE_SIXTEENTH},
@@ -77,10 +77,11 @@ const Note Polyphia_OD[] = {
{FA2s, NOTE_SIXTEENTH},
{SI2, NOTE_SIXTEENTH}
};
static Melody_t Polyphia_OD = {song_length(Polyphia_OD_Notes), Polyphia_OD_Notes};
const Note Polyphia_PlayingGod[] = {
static const Note_t Polyphia_PlayingGod_Notes[] = {
//1 ТАКТ
{SOL2, NOTE_QUARTER},
{MI3, NOTE_EIGHTH},
@@ -121,4 +122,5 @@ const Note Polyphia_PlayingGod[] = {
{DO3, NOTE_SIXTEENTH},
{SI2, NOTE_SIXTEENTH},
{MI3, NOTE_SIXTEENTH},
};
};
static Melody_t Polyphia_PlayingGod = {song_length(Polyphia_PlayingGod_Notes), Polyphia_PlayingGod_Notes};