diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-04 10:53:48 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-04 10:53:48 +0100 |
| commit | f9ca37a368abd88ad439320a26ee7dfbff553aff (patch) | |
| tree | e5dec75f42e499d467e9a5f73cd59f4139589440 /src/generated/music_data.cc | |
| parent | 02fa8dde4ad354536e2bb0a73a11388ffc7b4ac7 (diff) | |
revised .gitignore
Diffstat (limited to 'src/generated/music_data.cc')
| -rw-r--r-- | src/generated/music_data.cc | 239 |
1 files changed, 239 insertions, 0 deletions
diff --git a/src/generated/music_data.cc b/src/generated/music_data.cc new file mode 100644 index 0000000..73ed992 --- /dev/null +++ b/src/generated/music_data.cc @@ -0,0 +1,239 @@ +// Generated by tracker_compiler. Do not edit. + +#include "audio/tracker.h" + +#include "generated/assets.h" + +const NoteParams g_tracker_samples[] = { + { 0 }, // ASSET_KICK_1 (ASSET) + { 0 }, // ASSET_KICK_2 (ASSET) + { 0 }, // ASSET_KICK_3 (ASSET) + { 0 }, // ASSET_SNARE_1 (ASSET) + { 0 }, // ASSET_SNARE_2 (ASSET) + { 0 }, // ASSET_SNARE_3 (ASSET) + { 0 }, // ASSET_SNARE_4 (ASSET) + { 0 }, // ASSET_HIHAT_1 (ASSET) + { 0 }, // ASSET_HIHAT_2 (ASSET) + { 0 }, // ASSET_HIHAT_3 (ASSET) + { 0 }, // ASSET_HIHAT_4 (ASSET) + { 0 }, // ASSET_CRASH_1 (ASSET) + { 0 }, // ASSET_RIDE_1 (ASSET) + { 0 }, // ASSET_SPLASH_1 (ASSET) + { 0 }, // ASSET_BASS_1 (ASSET) + { 0 }, // ASSET_SYNTH_BASS_1 (ASSET) + { 82.4f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // E2 + { 98.0f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // G2 + { 110.0f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // A2 + { 123.5f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // B2 + { 329.6f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // E4 + { 392.0f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // G4 + { 493.9f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // B4 + { 587.3f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // D5 + { 659.3f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // E5 + { 440.0f, 0.50f, 1.0f, 0.01f, 0.0f, 0.0f, 0.0f, 3, 0.6f, 0.0f, 0.0f }, // A4 +}; +const uint32_t g_tracker_samples_count = 26; + +const AssetId g_tracker_sample_assets[] = { + AssetId::ASSET_KICK_1, + AssetId::ASSET_KICK_2, + AssetId::ASSET_KICK_3, + AssetId::ASSET_SNARE_1, + AssetId::ASSET_SNARE_2, + AssetId::ASSET_SNARE_3, + AssetId::ASSET_SNARE_4, + AssetId::ASSET_HIHAT_1, + AssetId::ASSET_HIHAT_2, + AssetId::ASSET_HIHAT_3, + AssetId::ASSET_HIHAT_4, + AssetId::ASSET_CRASH_1, + AssetId::ASSET_RIDE_1, + AssetId::ASSET_SPLASH_1, + AssetId::ASSET_BASS_1, + AssetId::ASSET_SYNTH_BASS_1, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, + AssetId::ASSET_LAST_ID, +}; + +static const TrackerEvent PATTERN_EVENTS_rock_beat[] = { + { 0.0f, 0, 1.0f, 0.0f }, + { 1.0f, 5, 0.9f, 0.1f }, + { 2.0f, 0, 1.0f, 0.0f }, + { 2.5f, 0, 0.7f, -0.1f }, + { 3.0f, 5, 0.9f, 0.1f }, +}; +static const TrackerEvent PATTERN_EVENTS_double_kick[] = { + { 0.0f, 2, 1.0f, 0.0f }, + { 0.5f, 1, 0.8f, -0.2f }, + { 1.0f, 6, 0.9f, 0.2f }, + { 1.5f, 2, 0.7f, 0.1f }, + { 2.0f, 2, 1.0f, 0.0f }, + { 2.5f, 1, 0.8f, -0.2f }, + { 3.0f, 6, 0.9f, 0.2f }, + { 3.5f, 2, 0.6f, 0.1f }, +}; +static const TrackerEvent PATTERN_EVENTS_hihat_8th[] = { + { 0.0f, 8, 0.6f, -0.3f }, + { 0.5f, 7, 0.4f, 0.3f }, + { 1.0f, 8, 0.6f, -0.3f }, + { 1.5f, 7, 0.4f, 0.3f }, + { 2.0f, 8, 0.6f, -0.3f }, + { 2.5f, 7, 0.4f, 0.3f }, + { 3.0f, 8, 0.6f, -0.3f }, + { 3.5f, 7, 0.4f, 0.3f }, +}; +static const TrackerEvent PATTERN_EVENTS_hihat_16th[] = { + { 0.0f, 9, 0.7f, -0.4f }, + { 0.2f, 7, 0.3f, 0.4f }, + { 0.5f, 9, 0.6f, -0.2f }, + { 0.8f, 7, 0.3f, 0.2f }, + { 1.0f, 9, 0.7f, -0.4f }, + { 1.2f, 7, 0.3f, 0.4f }, + { 1.5f, 9, 0.6f, -0.2f }, + { 1.8f, 7, 0.3f, 0.2f }, + { 2.0f, 9, 0.7f, -0.4f }, + { 2.2f, 7, 0.3f, 0.4f }, + { 2.5f, 9, 0.6f, -0.2f }, + { 2.8f, 7, 0.3f, 0.2f }, + { 3.0f, 9, 0.7f, -0.4f }, + { 3.2f, 7, 0.3f, 0.4f }, + { 3.5f, 9, 0.6f, -0.2f }, + { 3.8f, 7, 0.3f, 0.2f }, +}; +static const TrackerEvent PATTERN_EVENTS_ride_pattern[] = { + { 0.0f, 12, 0.6f, 0.5f }, + { 0.5f, 12, 0.5f, -0.3f }, + { 1.0f, 12, 0.6f, 0.5f }, + { 1.5f, 12, 0.5f, -0.3f }, + { 2.0f, 12, 0.6f, 0.5f }, + { 2.5f, 12, 0.5f, -0.3f }, + { 3.0f, 12, 0.7f, 0.5f }, + { 3.5f, 12, 0.5f, -0.3f }, +}; +static const TrackerEvent PATTERN_EVENTS_crash_accent[] = { + { 0.0f, 11, 0.9f, 0.0f }, +}; +static const TrackerEvent PATTERN_EVENTS_splash_accent[] = { + { 0.0f, 13, 0.8f, 0.3f }, +}; +static const TrackerEvent PATTERN_EVENTS_snare_fill[] = { + { 0.0f, 4, 0.6f, -0.4f }, + { 0.2f, 4, 0.6f, -0.2f }, + { 0.5f, 4, 0.7f, 0.0f }, + { 0.8f, 5, 0.8f, 0.2f }, + { 1.0f, 5, 0.8f, 0.4f }, + { 1.2f, 6, 0.9f, 0.2f }, + { 1.5f, 6, 0.9f, 0.0f }, + { 1.8f, 6, 0.9f, -0.2f }, +}; +static const TrackerEvent PATTERN_EVENTS_power_riff[] = { + { 0.0f, 16, 0.8f, -0.5f }, + { 0.5f, 16, 0.6f, -0.5f }, + { 1.0f, 17, 0.8f, -0.3f }, + { 1.5f, 17, 0.6f, -0.3f }, + { 2.0f, 18, 0.8f, 0.3f }, + { 2.5f, 18, 0.6f, 0.3f }, + { 3.0f, 19, 0.8f, 0.5f }, + { 3.5f, 19, 0.6f, 0.5f }, +}; +static const TrackerEvent PATTERN_EVENTS_lead_melody[] = { + { 0.0f, 20, 0.7f, 0.0f }, + { 0.5f, 21, 0.6f, 0.1f }, + { 1.0f, 22, 0.7f, -0.1f }, + { 1.5f, 23, 0.6f, 0.2f }, + { 2.0f, 24, 0.8f, -0.2f }, + { 2.5f, 23, 0.6f, 0.1f }, + { 3.0f, 22, 0.7f, 0.0f }, + { 3.5f, 25, 0.6f, -0.1f }, +}; +static const TrackerEvent PATTERN_EVENTS_bass_line[] = { + { 0.0f, 16, 0.9f, 0.0f }, + { 1.0f, 16, 0.8f, 0.0f }, + { 2.0f, 16, 0.9f, 0.0f }, + { 2.5f, 16, 0.7f, 0.0f }, + { 3.0f, 17, 0.9f, 0.0f }, +}; + +const TrackerPattern g_tracker_patterns[] = { + { PATTERN_EVENTS_rock_beat, 5, 4.0f }, // rock_beat + { PATTERN_EVENTS_double_kick, 8, 4.0f }, // double_kick + { PATTERN_EVENTS_hihat_8th, 8, 4.0f }, // hihat_8th + { PATTERN_EVENTS_hihat_16th, 16, 4.0f }, // hihat_16th + { PATTERN_EVENTS_ride_pattern, 8, 4.0f }, // ride_pattern + { PATTERN_EVENTS_crash_accent, 1, 4.0f }, // crash_accent + { PATTERN_EVENTS_splash_accent, 1, 4.0f }, // splash_accent + { PATTERN_EVENTS_snare_fill, 8, 4.0f }, // snare_fill + { PATTERN_EVENTS_power_riff, 8, 4.0f }, // power_riff + { PATTERN_EVENTS_lead_melody, 8, 4.0f }, // lead_melody + { PATTERN_EVENTS_bass_line, 5, 4.0f }, // bass_line +}; +const uint32_t g_tracker_patterns_count = 11; + +static const TrackerPatternTrigger SCORE_TRIGGERS[] = { + { 0.0f, 5 }, + { 0.0f, 2 }, + { 0.0f, 0 }, + { 2.0f, 2 }, + { 2.0f, 0 }, + { 4.0f, 5 }, + { 4.0f, 2 }, + { 4.0f, 0 }, + { 4.0f, 10 }, + { 6.0f, 2 }, + { 6.0f, 0 }, + { 6.0f, 10 }, + { 8.0f, 6 }, + { 8.0f, 3 }, + { 8.0f, 1 }, + { 8.0f, 10 }, + { 8.0f, 9 }, + { 10.0f, 3 }, + { 10.0f, 1 }, + { 10.0f, 10 }, + { 10.0f, 9 }, + { 12.0f, 5 }, + { 12.0f, 4 }, + { 12.0f, 1 }, + { 12.0f, 8 }, + { 14.0f, 4 }, + { 14.0f, 1 }, + { 14.0f, 8 }, + { 16.0f, 7 }, + { 16.0f, 3 }, + { 17.0f, 6 }, + { 17.0f, 2 }, + { 17.0f, 0 }, + { 17.0f, 10 }, + { 18.0f, 5 }, + { 18.0f, 3 }, + { 18.0f, 1 }, + { 18.0f, 10 }, + { 18.0f, 9 }, + { 20.0f, 3 }, + { 20.0f, 1 }, + { 20.0f, 10 }, + { 20.0f, 8 }, + { 22.0f, 7 }, + { 22.0f, 3 }, + { 23.0f, 5 }, + { 23.0f, 0 }, + { 23.0f, 10 }, + { 25.0f, 5 }, +}; + +const TrackerScore g_tracker_score = { + SCORE_TRIGGERS, 49, 120.0f +}; + +// Resource usage analysis: +// Maximum simultaneous pattern triggers: 5 +// Recommended MAX_VOICES: 10 (current: see synth.h) +// Recommended MAX_SPECTROGRAMS: 10 (current: see synth.h) |
