|
SH2SC-EDT
Self-Healing Hardware and Software Complex for Encrypted Data Transmission
|
PROGMEM melody data for SH2SC-EDT — Transmitter Node A. More...
#include <Arduino.h>#include <avr/pgmspace.h>
Include dependency graph for melody.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Variables | |
| static const uint16_t | MELODY_LENGTH = 530 |
| Total number of note/rest entries in the PROGMEM melody table. | |
| static const uint16_t | melody [MELODY_LENGTH][2] |
| PROGMEM melody table — note indices and durations for the Imperial March. | |
PROGMEM melody data for SH2SC-EDT — Transmitter Node A.
Part of the SH2SC-EDT project. Implements the C2P-ARQ protocol.
THIS FILE IS AUTO-GENERATED by tools/midi_to_cpp.py.
Do NOT edit by hand — re-run the script to regenerate from MIDI.
**Table format:** @c melody[][2]
- Column 0 — note index (@c uint16_t):
- 0–20 = chromatic pitches C4…G#5 (mapped in @c universal_notes[] on RX).
- 255 = REST_INDEX — silence for the specified duration.
- Column 1 — duration in milliseconds (@c uint16_t).
Source MIDI: The_Imperial_March-Star_Wars.mid
Melody name: Star Wars — Imperial March
Flash usage: MELODY_LENGTH * 4 bytes (two uint16_t per row).
Definition in file melody.h.
|
static |
PROGMEM melody table — note indices and durations for the Imperial March.
Stored in Flash (PROGMEM) to avoid consuming 2120 bytes of SRAM. Access via pgm_read_word(&melody[i][col]) — do NOT dereference directly.
melody[i][0]: note index (0–20 or REST_INDEX=255).melody[i][1]: duration in milliseconds. Definition at line 39 of file melody.h.
Referenced by tx_loop().