Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: MIDISongPlayer mbed
sound.h
00001 // test MIDI sequence 00002 // use MIDITONES (https://github.com/LenShustek/miditones) 00003 // to converts a MIDI music file into a much simplified stream of commands (notes) 00004 // miditones -t1 <midifile> 00005 const uint8_t score3 [] = { 00006 2,138, 0x90,0x3E, 0,100, 0x80, 0,62, 0x90,0x3E, 0,75, 0x80, 0,87, 0x90,0x26, 0,162, 0,100, 00007 0,62, 0,50, 0,112, 0,137, 0,25, 0,162, 0,62, 0,100, 0,100, 0,62, 0,37, 00008 0,125, 0,37, 0,125, 0,162, 0,175, 0,37, 0,125, 0x80, 0x90,0x3C, 0,37, 0x80, 0,125, 00009 0x90,0x3E, 0,75, 0x80, 0,87, 0x90,0x3E, 0,75, 0,25, 0x80, 0,62, 0x90,0x26, 0,62, 0x80, 00010 0,12, 0,87, 0x90,0x26, 0,100, 0x80, 0,62, 0x90,0x26, 0,75, 0x80, 0,25, 0,62, 0x90,0x26, 00011 0,50, 0,37, 0x80, 0,75, 0x90,0x3E, 0,75, 0,62, 0x80, 0,25, 0x90,0x26, 0,75, 0x80, 00012 0,87, 0x90,0x3E, 0,62, 0x80, 0,25, 0,75, 0x90,0x3E, 0,100, 0x80, 0,62, 0x90,0x26, 0,37, 00013 0,50, 0x80, 0,75, 0x90,0x3E, 0,37, 0x80, 0,62, 0,62, 0x90,0x3C, 0,87, 0,75, 0,100, 00014 0,75, 0x80, 0x90,0x26, 0,37, 0,37, 0x80, 0,87, 0x90,0x3C, 0,37, 0x80, 0,25, 0,100, 00015 0x90,0x3E, 0,62, 0,12, 0x80, 0,87, 0x90,0x26, 0,75, 0x80, 0,25, 0,62, 0x90,0x26, 0,62, 00016 0x80, 0,12, 0,87, 0x90,0x26, 0,100, 0x80, 0,62, 0x90,0x26, 0,75, 0x80, 0,25, 0,62, 00017 0x90,0x26, 0,50, 0,37, 0x80, 0,75, 0x90,0x3E, 0,75, 0,62, 0x80, 0,25, 0x90,0x26, 0,75, 00018 0x80, 0,87, 0x90,0x3E, 0,62, 0x80, 0,25, 0,75, 0x90,0x3E, 0,100, 0x80, 0,62, 0x90,0x26, 00019 0,37, 0,50, 0x80, 0,75, 0x90,0x3E, 0,37, 0x80, 0,62, 0,62, 0x90,0x3C, 0,87, 0,75, 00020 0,100, 0,75, 0x80, 0x90,0x26, 0,37, 0,37, 0x80, 0,87, 0x90,0x3C, 0,37, 0x80, 0,25, 00021 0,100, 0x90,0x3E, 0,62, 0,12, 0x80, 0,87, 0x90,0x26, 0,75, 0x80, 0,87, 0x90,0x26, 0,62, 00022 0x80, 0,12, 0,87, 0x90,0x34, 0,162, 0,25, 0,137, 0x80, 0x90,0x3C, 0,162, 0,162, 0,112, 00023 0x80, 0,50, 0x90,0x39, 0,162, 0,162, 0,162, 0,162, 0,162, 0x80, 0x90,0x4A, 0,162, 0x80, 00024 0x90,0x51, 0,175, 0x80, 0x90,0x45, 0,162, 0x80, 0x90,0x4A, 0,162, 0x80, 0x90,0x3E, 0,75, 0,87, 00025 0,62, 0,100, 0,100, 0,62, 0,75, 0,87, 0,87, 0,75, 0,75, 0,87, 0,75, 00026 0,87, 0,87, 0,75, 0,100, 0,62, 0,87, 0,75, 0,100, 0,62, 0,25, 0,62, 00027 0,25, 0,50, 0,12, 0,87, 0,62, 0,25, 0,62, 0,37, 0,50, 0,62, 0,100, 00028 0,62, 0,100, 0,62, 0,100, 0,87, 0,75, 0,62, 0,100, 0,62, 0,100, 0,75, 00029 0,87, 0,62, 0,100, 0,75, 0,87, 0,75, 0,87, 0,75, 0,87, 0,75, 0,87, 00030 0,100, 0,62, 0,50, 0,25, 0,12, 0,12, 0,62, 0,12, 0,75, 0,75, 0,62, 00031 0,25, 0,12, 0,75, 0,37, 0,75, 0,50, 0,162, 0x80, 0x90,0x3E, 0,37, 0,37, 00032 0,87, 0,100, 0,62, 0,87, 0,75, 0,100, 0,12, 0,50, 0,12, 0,37, 0,50, 00033 0,37, 0,25, 0,87, 0,12, 0,62, 0,12, 0,37, 0,75, 0,12, 0,12, 0,12, 00034 0,162, 0x80, 0x90,0x3C, 0,87, 0,62, 0,12, 0,112, 0,50, 0,12, 0,125, 0,25, 00035 0,12, 0,150, 0,12, 0,25, 0,87, 0,37, 0,12, 0,112, 0,37, 0,175, 0,162, 00036 0x80, 0x90,0x3E, 0,50, 0,12, 0,100, 0,62, 0,100, 0,87, 0,75, 0,87, 0,75, 00037 0,87, 0,75, 0,75, 0,87, 0,62, 0,100, 0,75, 0,87, 0,62, 0,100, 0,87, 00038 0,75, 0,62, 0,12, 0,37, 0,50, 0,87, 0,50, 0,25, 0,62, 0,100, 0,75, 00039 0,75, 0,12, 0,125, 0,25, 0,25, 0,12, 0,62, 0x80, 0,87, 0x90,0x4C, 0,75, 00040 0,87, 0x80, 0x90,0x22, 0,12, 0,87, 0x80, 0,62, 0x90,0x2E, 0,87, 0x80, 0,75, 0x90,0x22, 00041 0,25, 0,75, 0,12, 0x80, 0,50, 0x90,0x2E, 0,25, 0,25, 0,75, 0,12, 0x80, 0,25, 00042 0x90,0x29, 0,25, 0,62, 0,25, 0,50, 0,12, 0x80, 0,12, 0x90,0x46, 0,25, 0,62, 00043 0,12, 0,12, 0,25, 0,162, 0,87, 0,62, 0x80, 0,12, 0x90,0x24, 0,112, 0x80, 0,50, 00044 0x90,0x30, 0,12, 0,125, 0x80, 0,25, 0x90,0x43, 0,12, 0,150, 0,12, 0,25, 0,87, 00045 0,37, 0x80, 0x90,0x4A, 0,12, 0,112, 0,37, 0,175, 0x80, 0x90,0x4A, 0,162, 0,50, 0,12, 00046 0,100, 0,62, 0,100, 0,87, 0,75, 0,87, 0,75, 0,87, 0,75, 0,75, 0,87, 00047 0,62, 0,100, 0,75, 0,87, 0,62, 0,100, 0,87, 0,75, 0,75, 0,75, 0,12, 00048 0,75, 0,62, 0,25, 0,62, 0,100, 0,137, 0,25, 0,75, 0,87, 0x80, 0x90,0x26, 00049 0,175, 0,12, 0,150, 0x80, 0xf0};
Generated on Fri Jul 22 2022 13:50:42 by
1.7.2