summaryrefslogtreecommitdiff
path: root/src/generated/music_data.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/generated/music_data.cc')
-rw-r--r--src/generated/music_data.cc165
1 files changed, 119 insertions, 46 deletions
diff --git a/src/generated/music_data.cc b/src/generated/music_data.cc
index cd5c406..8d6f482 100644
--- a/src/generated/music_data.cc
+++ b/src/generated/music_data.cc
@@ -5,75 +5,147 @@
#include "generated/assets.h"
const NoteParams g_tracker_samples[] = {
- {0}, // ASSET_KICK_1 (ASSET)
- {0}, // ASSET_KICK_2 (ASSET)
- {0}, // ASSET_SNARE_1 (ASSET)
- {0}, // ASSET_SNARE_2 (ASSET)
- {0}, // ASSET_SNARE_3 (ASSET)
- {0}, // ASSET_RIDE_1 (ASSET)
+ { 0 }, // ASSET_KICK_1 (ASSET)
+ { 0 }, // ASSET_KICK_2 (ASSET)
+ { 0 }, // ASSET_SNARE_1 (ASSET)
+ { 0 }, // ASSET_SNARE_2 (ASSET)
+ { 0 }, // ASSET_SNARE_3 (ASSET)
+ { 0 }, // ASSET_RIDE_1 (ASSET)
};
const uint32_t g_tracker_samples_count = 6;
const AssetId g_tracker_sample_assets[] = {
- AssetId::ASSET_KICK_1, AssetId::ASSET_KICK_2, AssetId::ASSET_SNARE_1,
- AssetId::ASSET_SNARE_2, AssetId::ASSET_SNARE_3, AssetId::ASSET_RIDE_1,
+ AssetId::ASSET_KICK_1,
+ AssetId::ASSET_KICK_2,
+ AssetId::ASSET_SNARE_1,
+ AssetId::ASSET_SNARE_2,
+ AssetId::ASSET_SNARE_3,
+ AssetId::ASSET_RIDE_1,
};
static const TrackerEvent PATTERN_EVENTS_kick_1[] = {
- {0.00f, 0, 1.0f, 0.0f},
- {0.50f, 0, 1.0f, 0.0f},
+ { 0.00f, 0, 1.0f, 0.0f },
+ { 0.50f, 0, 1.0f, 0.0f },
};
static const TrackerEvent PATTERN_EVENTS_kick_2[] = {
- {0.00f, 1, 1.0f, 0.0f},
- {0.50f, 1, 1.0f, 0.0f},
+ { 0.00f, 1, 1.0f, 0.0f },
+ { 0.50f, 1, 1.0f, 0.0f },
};
static const TrackerEvent PATTERN_EVENTS_snare_1[] = {
- {0.25f, 2, 1.0f, 0.0f},
- {0.75f, 2, 1.0f, 0.0f},
+ { 0.25f, 2, 1.0f, 0.0f },
+ { 0.75f, 2, 1.0f, 0.0f },
};
static const TrackerEvent PATTERN_EVENTS_snare_2[] = {
- {0.25f, 3, 1.0f, 0.0f},
- {0.75f, 3, 1.0f, 0.0f},
+ { 0.25f, 3, 1.0f, 0.0f },
+ { 0.75f, 3, 1.0f, 0.0f },
};
static const TrackerEvent PATTERN_EVENTS_snare_3[] = {
- {0.25f, 4, 1.0f, 0.0f},
- {0.75f, 4, 1.0f, 0.0f},
+ { 0.25f, 4, 1.0f, 0.0f },
+ { 0.75f, 4, 1.0f, 0.0f },
};
static const TrackerEvent PATTERN_EVENTS_ride[] = {
- {0.00f, 5, 0.7f, 0.2f},
- {0.25f, 5, 0.6f, 0.2f},
- {0.50f, 5, 0.7f, 0.2f},
- {0.75f, 5, 0.6f, 0.2f},
+ { 0.00f, 5, 0.7f, 0.2f },
+ { 0.25f, 5, 0.6f, 0.2f },
+ { 0.50f, 5, 0.7f, 0.2f },
+ { 0.75f, 5, 0.6f, 0.2f },
};
const TrackerPattern g_tracker_patterns[] = {
- {PATTERN_EVENTS_kick_1, 2, 1.00f}, // kick_1
- {PATTERN_EVENTS_kick_2, 2, 1.00f}, // kick_2
- {PATTERN_EVENTS_snare_1, 2, 1.00f}, // snare_1
- {PATTERN_EVENTS_snare_2, 2, 1.00f}, // snare_2
- {PATTERN_EVENTS_snare_3, 2, 1.00f}, // snare_3
- {PATTERN_EVENTS_ride, 4, 1.00f}, // ride
+ { PATTERN_EVENTS_kick_1, 2, 1.00f }, // kick_1
+ { PATTERN_EVENTS_kick_2, 2, 1.00f }, // kick_2
+ { PATTERN_EVENTS_snare_1, 2, 1.00f }, // snare_1
+ { PATTERN_EVENTS_snare_2, 2, 1.00f }, // snare_2
+ { PATTERN_EVENTS_snare_3, 2, 1.00f }, // snare_3
+ { PATTERN_EVENTS_ride, 4, 1.00f }, // ride
};
const uint32_t g_tracker_patterns_count = 6;
static const TrackerPatternTrigger SCORE_TRIGGERS[] = {
- {0.0f, 0}, {0.0f, 2}, {0.5f, 0}, {0.5f, 2}, {1.0f, 0}, {1.0f, 2},
- {1.5f, 0}, {1.5f, 2}, {2.0f, 0}, {2.0f, 3}, {2.5f, 0}, {2.5f, 3},
- {3.0f, 0}, {3.0f, 3}, {3.5f, 0}, {3.5f, 3}, {4.0f, 1}, {4.0f, 4},
- {4.5f, 1}, {4.5f, 4}, {5.0f, 1}, {5.0f, 4}, {5.5f, 1}, {5.5f, 4},
- {6.0f, 1}, {6.0f, 2}, {6.5f, 1}, {6.5f, 2}, {7.0f, 1}, {7.0f, 2},
- {7.5f, 1}, {7.5f, 2}, {8.0f, 0}, {8.0f, 3}, {8.0f, 5}, {8.5f, 0},
- {8.5f, 3}, {8.5f, 5}, {9.0f, 0}, {9.0f, 3}, {9.0f, 5}, {9.5f, 0},
- {9.5f, 3}, {9.5f, 5}, {10.0f, 1}, {10.0f, 4}, {10.0f, 5}, {10.5f, 1},
- {10.5f, 4}, {10.5f, 5}, {11.0f, 1}, {11.0f, 4}, {11.0f, 5}, {11.5f, 1},
- {11.5f, 4}, {11.5f, 5}, {12.0f, 0}, {12.0f, 2}, {12.0f, 5}, {12.5f, 0},
- {12.5f, 2}, {12.5f, 5}, {13.0f, 0}, {13.0f, 2}, {13.0f, 5}, {13.5f, 0},
- {13.5f, 2}, {13.5f, 5}, {14.0f, 1}, {14.0f, 3}, {14.0f, 5}, {14.5f, 1},
- {14.5f, 3}, {14.5f, 5}, {15.0f, 1}, {15.0f, 3}, {15.0f, 5}, {15.5f, 1},
- {15.5f, 3}, {15.5f, 5},
+ { 0.0f, 0 },
+ { 0.0f, 2 },
+ { 0.5f, 0 },
+ { 0.5f, 2 },
+ { 1.0f, 0 },
+ { 1.0f, 2 },
+ { 1.5f, 0 },
+ { 1.5f, 2 },
+ { 2.0f, 0 },
+ { 2.0f, 3 },
+ { 2.5f, 0 },
+ { 2.5f, 3 },
+ { 3.0f, 0 },
+ { 3.0f, 3 },
+ { 3.5f, 0 },
+ { 3.5f, 3 },
+ { 4.0f, 1 },
+ { 4.0f, 4 },
+ { 4.5f, 1 },
+ { 4.5f, 4 },
+ { 5.0f, 1 },
+ { 5.0f, 4 },
+ { 5.5f, 1 },
+ { 5.5f, 4 },
+ { 6.0f, 1 },
+ { 6.0f, 2 },
+ { 6.5f, 1 },
+ { 6.5f, 2 },
+ { 7.0f, 1 },
+ { 7.0f, 2 },
+ { 7.5f, 1 },
+ { 7.5f, 2 },
+ { 8.0f, 0 },
+ { 8.0f, 3 },
+ { 8.0f, 5 },
+ { 8.5f, 0 },
+ { 8.5f, 3 },
+ { 8.5f, 5 },
+ { 9.0f, 0 },
+ { 9.0f, 3 },
+ { 9.0f, 5 },
+ { 9.5f, 0 },
+ { 9.5f, 3 },
+ { 9.5f, 5 },
+ { 10.0f, 1 },
+ { 10.0f, 4 },
+ { 10.0f, 5 },
+ { 10.5f, 1 },
+ { 10.5f, 4 },
+ { 10.5f, 5 },
+ { 11.0f, 1 },
+ { 11.0f, 4 },
+ { 11.0f, 5 },
+ { 11.5f, 1 },
+ { 11.5f, 4 },
+ { 11.5f, 5 },
+ { 12.0f, 0 },
+ { 12.0f, 2 },
+ { 12.0f, 5 },
+ { 12.5f, 0 },
+ { 12.5f, 2 },
+ { 12.5f, 5 },
+ { 13.0f, 0 },
+ { 13.0f, 2 },
+ { 13.0f, 5 },
+ { 13.5f, 0 },
+ { 13.5f, 2 },
+ { 13.5f, 5 },
+ { 14.0f, 1 },
+ { 14.0f, 3 },
+ { 14.0f, 5 },
+ { 14.5f, 1 },
+ { 14.5f, 3 },
+ { 14.5f, 5 },
+ { 15.0f, 1 },
+ { 15.0f, 3 },
+ { 15.0f, 5 },
+ { 15.5f, 1 },
+ { 15.5f, 3 },
+ { 15.5f, 5 },
};
-const TrackerScore g_tracker_score = {SCORE_TRIGGERS, 80, 120.0f};
+const TrackerScore g_tracker_score = {
+ SCORE_TRIGGERS, 80, 120.0f
+};
// ============================================================
// RESOURCE USAGE ANALYSIS (for synth.h configuration)
@@ -81,15 +153,16 @@ const TrackerScore g_tracker_score = {SCORE_TRIGGERS, 80, 120.0f};
// Total samples: 6 (6 assets + 0 generated notes)
// Max simultaneous pattern triggers: 3
// Estimated max polyphony: 6 voices
-//
+//
// REQUIRED (minimum to avoid pool exhaustion):
// MAX_VOICES: 6
// MAX_SPECTROGRAMS: 6 (no caching)
-//
+//
// RECOMMENDED (with 50% safety margin):
// MAX_VOICES: 12
// MAX_SPECTROGRAMS: 9 (no caching)
-//
+//
// NOTE: With spectrogram caching by note parameters,
// MAX_SPECTROGRAMS could be reduced to ~6
// ============================================================
+