|
vs1053_avr_renesas_uno 0.1.0
Arduino Library for VS1053 shield
|
Code file for the vs1053_avr_renesas_uno library.
More...
Go to the source code of this file.
Macros | |
| #define | MIDI_NOTE_ON 9 |
| #define | MIDI_NOTE_OFF 8 |
| #define | MIDI_HDR_CHUNK_ID 0x4D, 0x54, 0x68, 0x64 |
| #define | MIDI_CHUNKSIZE 0, 0, 0, 6 |
| #define | MIDI_FORMAT 0, 0 |
| #define | MIDI_NUMBER_OF_TRACKS 0, 1 |
| #define | MIDI_TIME_DIVISION 0, 96 |
| #define | MIDI_TRACK_CHUNK_ID 0x4D, 0x54, 0x72, 0x6B |
| #define | MIDI_CHUNK_SIZE 0, 0, 0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) |
| #define | MIDI_EVENT_NOTE_ON 0, (MIDI_NOTE_ON<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY |
| #define | MIDI_EVENT_NOTE_OFF MIDI_NOTE_DURATION, (MIDI_NOTE_OFF<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY |
| #define | MIDI_END_OF_TRACK 0, 0xFF, 0x2F, 0 |
Functions | |
| char * | strip_nonalpha_inplace (char *s) |
| chomp non printable characters out of string. | |
| bool | isFnMusic (char *filename) |
| is the filename music | |
Variables | |
| static const uint16_t bitrate_table[15][6] | PROGMEM |
| bitrate lookup table | |
| int8_t | irq = digitalPinToInterrupt(MP3_DREQ) |
| External reference to the interrupt identifier for MP3_DREQ. | |
| PROGMEM const uint8_t | SingleMIDInoteFile [] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK} |
| a MIDI File of one Note | |
Code file for the vs1053_avr_renesas_uno library.
Definition in file vs1053_avr_renesas_uno.cpp.
| #define MIDI_CHUNK_SIZE 0, 0, 0, sizeof(MIDI_EVENT_NOTE_ON) + sizeof(MIDI_EVENT_NOTE_OFF) + sizeof(MIDI_END_OF_TRACK) |
Definition at line 61 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_CHUNKSIZE 0, 0, 0, 6 |
Definition at line 55 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_END_OF_TRACK 0, 0xFF, 0x2F, 0 |
Definition at line 66 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_EVENT_NOTE_OFF MIDI_NOTE_DURATION, (MIDI_NOTE_OFF<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY |
Definition at line 64 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_EVENT_NOTE_ON 0, (MIDI_NOTE_ON<<4) + MIDI_CHANNEL, MIDI_NOTE_NUMBER, MIDI_INTENSITY |
Definition at line 63 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_FORMAT 0, 0 |
Definition at line 56 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_HDR_CHUNK_ID 0x4D, 0x54, 0x68, 0x64 |
Definition at line 54 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_NOTE_OFF 8 |
Definition at line 50 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_NOTE_ON 9 |
Definition at line 49 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_NUMBER_OF_TRACKS 0, 1 |
Definition at line 57 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_TIME_DIVISION 0, 96 |
Definition at line 58 of file vs1053_avr_renesas_uno.cpp.
| #define MIDI_TRACK_CHUNK_ID 0x4D, 0x54, 0x72, 0x6B |
Definition at line 60 of file vs1053_avr_renesas_uno.cpp.
| bool isFnMusic | ( | char * | filename | ) |
is the filename music
| [in] | filename | inspects the end of the filename to be of the extension types that VS10xx can decode. |
Definition at line 2298 of file vs1053_avr_renesas_uno.cpp.
| char * strip_nonalpha_inplace | ( | char * | s | ) |
chomp non printable characters out of string.
| [out] | s | pointer of a char array (aka string) |
Definition at line 2276 of file vs1053_avr_renesas_uno.cpp.
| int8_t irq = digitalPinToInterrupt(MP3_DREQ) |
External reference to the interrupt identifier for MP3_DREQ.
This variable stores the IRQ number corresponding to the MP3_DREQ pin. Defined in vs1053_avr_renesas_uno.cpp and used to handle data refill requests via interrupt. Ensures compatibility across architectures where any pin can serve as an interrupt source.
Definition at line 72 of file vs1053_avr_renesas_uno.cpp.
|
static |
bitrate lookup table
This is a table to decode the bitrate as per the MP3 file format, as read by the SdCard
Definition at line 27 of file vs1053_avr_renesas_uno.cpp.
| PROGMEM const uint8_t SingleMIDInoteFile[] = {MIDI_HDR_CHUNK_ID, MIDI_CHUNKSIZE, MIDI_FORMAT, MIDI_NUMBER_OF_TRACKS, MIDI_TIME_DIVISION, MIDI_TRACK_CHUNK_ID, MIDI_CHUNK_SIZE, MIDI_EVENT_NOTE_ON, MIDI_EVENT_NOTE_OFF, MIDI_END_OF_TRACK} |
a MIDI File of one Note
This is string containing a complete MIDI format 0 file of one Note ON and then Off.
Description of MIDI file parsing
An inline equation 
A displayed equation:
Definition at line 90 of file vs1053_avr_renesas_uno.cpp.