diff options
| author | sowgro <tpoke.ferrari@gmail.com> | 2025-09-26 10:25:07 -0400 |
|---|---|---|
| committer | sowgro <tpoke.ferrari@gmail.com> | 2025-09-26 10:25:07 -0400 |
| commit | 0062ce3d8c64ed7b0cf0c94e8dcc2cc316df4fb1 (patch) | |
| tree | a89bca21c59fb9b5f88532b24628ba05258115f6 /project/Core/Src/Activties/midi_header.c | |
| parent | 86130c8747a4af7ce93f4ac93d1c4d9c94c917eb (diff) | |
| download | 340-repo-Sowgro-0062ce3d8c64ed7b0cf0c94e8dcc2cc316df4fb1.tar.gz 340-repo-Sowgro-0062ce3d8c64ed7b0cf0c94e8dcc2cc316df4fb1.tar.bz2 340-repo-Sowgro-0062ce3d8c64ed7b0cf0c94e8dcc2cc316df4fb1.zip | |
submit activity6
Diffstat (limited to 'project/Core/Src/Activties/midi_header.c')
| -rw-r--r-- | project/Core/Src/Activties/midi_header.c | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/project/Core/Src/Activties/midi_header.c b/project/Core/Src/Activties/midi_header.c deleted file mode 100644 index de3dc68..0000000 --- a/project/Core/Src/Activties/midi_header.c +++ /dev/null @@ -1,37 +0,0 @@ -/* - * activity4.c - * - * Created on: Sep 16, 2025 - * Author: sowgro - */ - -#include "song.h" -#include <printf.h> -#include <endian_converters.h> -#include <stdint.h> - -typedef struct { - char chunk_type[4]; - uint32_t length; - uint16_t format; - uint16_t ntrcks; - uint16_t division; -} header; - -void run() { - header* p_header; - - p_header = (header *) (get_song(0).p_song); - - p_header->length = convert_to_uint32((uint8_t*) &p_header->length); - p_header->format = convert_to_uint16((uint8_t*) &p_header->format); - p_header->ntrcks = convert_to_uint16((uint8_t*) &p_header->ntrcks); - p_header->division = convert_to_uint16((uint8_t*) &p_header->division); - - printf ("Header: \r\n"); - printf ("\tLength: %lu\r\n", p_header->length); - printf ("\tFormat: %u\r\n", p_header->format); - printf ("\tNum Tracks: %u\r\n", p_header->ntrcks); - printf ("\tDivision: %u\r\n", p_header->division); -} - |
