Added some music documentation (#2198)

This commit is contained in:
psf authored and GitHub committed 2025-11-06 09:27:16 +00:00
1 parent 8b8c593bf6
commit fdcaac9175
2 files changed
+616 -610

No files matched your search

+615 -610
View File
File diff suppressed because it is too large. Load diff
+1
View File
@@ -33,6 +33,7 @@ static void CreateFanfareTask(void);
static void Task_DuckBGMForPokemonCry(u8 taskId);
static void RestoreBGMVolumeAfterPokemonCry(void);
// The 1st argument in the table is the length of the fanfare, measured in frames. This is calculated by taking the duration of the midi file, multiplying by 59.72750056960583, and rounding up to the next nearest integer.
static const struct Fanfare sFanfares[] = {
[FANFARE_LEVEL_UP] = { MUS_LEVEL_UP, 80 },
[FANFARE_OBTAIN_ITEM] = { MUS_OBTAIN_ITEM, 160 },