![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
ECE 4180 Final
Dependencies: mbed wave_player mbed-rtos C12832_lcd 4DGL-uLCD-SE LCD_fonts SDFileSystem
bubbles.h
- Committer:
- yqin70
- Date:
- 2019-12-08
- Revision:
- 21:cbcbb3480cad
- Parent:
- 20:7d56cdcbc9a5
File content as of revision 21:cbcbb3480cad:
#define SAMPLE_RATE 8000 const unsigned short the_middle_bubbles[62][5] = {SAMPLE_RATE*2, 0, 1, 0, 0, SAMPLE_RATE*3, 0, 1, 0, 0, SAMPLE_RATE*4, 0, 1, 0, 0, SAMPLE_RATE*5, 0, 1, 0, 0, SAMPLE_RATE*6, 0, 0, 1, 0, SAMPLE_RATE*7, 0, 0, 1, 0, SAMPLE_RATE*8, 0, 0, 1, 0, SAMPLE_RATE*9, 0, 0, 1, 0, SAMPLE_RATE*10, 0, 0, 1, 0, SAMPLE_RATE*11, 0, 0, 0, 1, SAMPLE_RATE*12, 0, 0, 0, 1, SAMPLE_RATE*13, 0, 0, 0, 1, SAMPLE_RATE*15, 0, 0, 1, 1, SAMPLE_RATE*16, 0, 0, 1, 1, SAMPLE_RATE*17, 0, 0, 1, 1, SAMPLE_RATE*18, 0, 1, 1, 0, SAMPLE_RATE*19, 0, 1, 1, 0, SAMPLE_RATE*20, 0, 1, 1, 0, SAMPLE_RATE*21, 0, 1, 1, 0, SAMPLE_RATE*22, 0, 1, 1, 0, SAMPLE_RATE*23, 0, 1, 1, 0, SAMPLE_RATE*24, 0, 1, 1, 0, SAMPLE_RATE*25, 0, 1, 1, 0, SAMPLE_RATE*27, 0, 1, 0, 0, SAMPLE_RATE*28, 0, 1, 0, 0, SAMPLE_RATE*29, 0, 1, 0, 0, SAMPLE_RATE*30, 0, 1, 0, 0, SAMPLE_RATE*31, 0, 0, 1, 0, SAMPLE_RATE*32, 0, 0, 1, 0, SAMPLE_RATE*33, 0, 0, 1, 0, SAMPLE_RATE*34, 0, 0, 1, 0, SAMPLE_RATE*35, 0, 0, 1, 0, SAMPLE_RATE*36, 0, 0, 1, 0, SAMPLE_RATE*37, 0, 0, 0, 1, SAMPLE_RATE*38, 0, 0, 0, 1, SAMPLE_RATE*39, 0, 0, 0, 1, SAMPLE_RATE*40, 0, 0, 0, 1, SAMPLE_RATE*42, 0, 1, 1, 0, SAMPLE_RATE*43, 0, 0, 1, 1, SAMPLE_RATE*44, 0, 1, 1, 0, SAMPLE_RATE*45, 0, 0, 1, 1, SAMPLE_RATE*46, 0, 1, 1, 0, SAMPLE_RATE*47, 0, 0, 1, 1, SAMPLE_RATE*48, 0, 1, 1, 0, SAMPLE_RATE*49, 0, 0, 1, 1, SAMPLE_RATE*51, 0, 1, 1, 1, SAMPLE_RATE*52, 0, 1, 1, 1, SAMPLE_RATE*53, 0, 1, 1, 1, SAMPLE_RATE*54, 0, 1, 1, 1, SAMPLE_RATE*56, 0, 1, 0, 0, SAMPLE_RATE*57, 0, 1, 0, 0, SAMPLE_RATE*58, 0, 1, 0, 0, SAMPLE_RATE*59, 0, 1, 0, 0, SAMPLE_RATE*61, 0, 0, 1, 0, SAMPLE_RATE*62, 0, 1, 1, 1, SAMPLE_RATE*63, 0, 1, 1, 1, SAMPLE_RATE*64, 0, 1, 1, 1, SAMPLE_RATE*66, 0, 1, 1, 0, SAMPLE_RATE*67, 0, 0, 1, 1, SAMPLE_RATE*68, 0, 1, 1, 0, SAMPLE_RATE*69, 0, 0, 1, 1, SAMPLE_RATE*70, 0, 1, 1, 0}; const unsigned short stacys_mom_bubbles[70][5] = {SAMPLE_RATE*1, 0, 1, 0, 0, SAMPLE_RATE*2, 0, 1, 0, 0, SAMPLE_RATE*3, 0, 1, 1, 0, SAMPLE_RATE*4, 0, 1, 0, 0, SAMPLE_RATE*5, 0, 1, 0, 0, SAMPLE_RATE*6, 0, 1, 1, 0, SAMPLE_RATE*8, 0, 0, 1, 0, SAMPLE_RATE*9, 0, 0, 0, 1, SAMPLE_RATE*10, 0, 1, 0, 0, SAMPLE_RATE*11, 0, 0, 1, 0, SAMPLE_RATE*12, 0, 1, 1, 0, SAMPLE_RATE*13, 0, 1, 1, 0, SAMPLE_RATE*15, 0, 0, 1, 1, SAMPLE_RATE*16, 0, 0, 1, 1, SAMPLE_RATE*17, 0, 0, 1, 1, SAMPLE_RATE*18, 0, 0, 1, 1, SAMPLE_RATE*20, 0, 1, 0, 0, SAMPLE_RATE*21, 0, 0, 1, 0, SAMPLE_RATE*22, 0, 0, 0, 1, SAMPLE_RATE*24, 0, 0, 1, 1, SAMPLE_RATE*25, 0, 0, 1, 1, SAMPLE_RATE*26, 0, 0, 1, 0, SAMPLE_RATE*27, 0, 0, 1, 0, SAMPLE_RATE*28, 0, 0, 0, 1, SAMPLE_RATE*29, 0, 1, 0, 0, SAMPLE_RATE*31, 0, 1, 1, 1, SAMPLE_RATE*32, 0, 1, 0, 1, SAMPLE_RATE*33, 0, 1, 0, 1, SAMPLE_RATE*34, 0, 1, 0, 1, SAMPLE_RATE*35, 0, 1, 0, 1, SAMPLE_RATE*36, 0, 1, 0, 1, SAMPLE_RATE*37, 0, 1, 0, 1, SAMPLE_RATE*39, 0, 0, 1, 0, SAMPLE_RATE*40, 0, 0, 1, 0, SAMPLE_RATE*41, 0, 0, 1, 0, SAMPLE_RATE*42, 0, 0, 1, 0, SAMPLE_RATE*43, 0, 0, 0, 1, SAMPLE_RATE*44, 0, 0, 0, 1, SAMPLE_RATE*45, 0, 0, 1, 0, SAMPLE_RATE*46, 0, 0, 1, 0, SAMPLE_RATE*47, 0, 0, 1, 1, SAMPLE_RATE*48, 0, 0, 1, 1, SAMPLE_RATE*49, 0, 0, 1, 1, SAMPLE_RATE*51, 0, 1, 0, 0, SAMPLE_RATE*52, 0, 0, 1, 0, SAMPLE_RATE*53, 0, 0, 0, 1, SAMPLE_RATE*54, 0, 0, 1, 1, SAMPLE_RATE*55, 0, 0, 1, 1, SAMPLE_RATE*56, 0, 0, 1, 0, SAMPLE_RATE*57, 0, 0, 1, 0, SAMPLE_RATE*58, 0, 0, 1, 0, SAMPLE_RATE*59, 0, 0, 1, 0, SAMPLE_RATE*60, 0, 0, 1, 0, SAMPLE_RATE*61, 0, 0, 1, 0, SAMPLE_RATE*62, 0, 0, 1, 0, SAMPLE_RATE*64, 0, 1, 0, 0, SAMPLE_RATE*65, 0, 1, 0, 0, SAMPLE_RATE*66, 0, 1, 0, 0, SAMPLE_RATE*67, 0, 1, 0, 0, SAMPLE_RATE*68, 0, 1, 0, 0, SAMPLE_RATE*69, 0, 1, 0, 0, SAMPLE_RATE*70, 0, 1, 0, 0, SAMPLE_RATE*73, 0, 0, 1, 1, SAMPLE_RATE*74, 0, 0, 1, 1, SAMPLE_RATE*75, 0, 1, 0, 0, SAMPLE_RATE*76, 0, 0, 1, 0, SAMPLE_RATE*77, 0, 0, 0, 1, SAMPLE_RATE*78, 0, 1, 0, 0, SAMPLE_RATE*79, 0, 0, 1, 0, SAMPLE_RATE*80, 0, 0, 0, 1}; const unsigned short sins_bubbles[60][5] = { SAMPLE_RATE*2, 0, 1, 0, 0, SAMPLE_RATE*3, 0, 0, 1, 0, SAMPLE_RATE*4, 0, 1, 0, 0, SAMPLE_RATE*5, 0, 0, 1, 0, SAMPLE_RATE*6, 0, 0, 0, 1, SAMPLE_RATE*7, 0, 1, 0, 0, SAMPLE_RATE*8, 0, 0, 0, 1, SAMPLE_RATE*9, 0, 1, 0, 0, SAMPLE_RATE*10, 0, 0, 0, 1, SAMPLE_RATE*11, 0, 1, 1, 1, SAMPLE_RATE*13, 0, 1, 0, 0, SAMPLE_RATE*14, 0, 0, 1, 0, SAMPLE_RATE*15, 0, 1, 0, 0, SAMPLE_RATE*16, 0, 0, 1, 0, SAMPLE_RATE*17, 0, 0, 1, 0, SAMPLE_RATE*18, 0, 0, 1, 0, SAMPLE_RATE*19, 0, 0, 1, 0, SAMPLE_RATE*20, 0, 0, 1, 0, SAMPLE_RATE*22, 0, 0, 0, 1, SAMPLE_RATE*23, 0, 0, 1, 1, SAMPLE_RATE*24, 0, 0, 0, 1, SAMPLE_RATE*25, 0, 0, 1, 1, SAMPLE_RATE*26, 0, 0, 0, 1, SAMPLE_RATE*27, 0, 0, 1, 1, SAMPLE_RATE*28, 0, 1, 0, 0, SAMPLE_RATE*29, 0, 1, 1, 0, SAMPLE_RATE*30, 0, 1, 0, 0, SAMPLE_RATE*31, 0, 1, 1, 0, SAMPLE_RATE*33, 0, 1, 0, 0, SAMPLE_RATE*34, 0, 1, 0, 0, SAMPLE_RATE*35, 0, 1, 0, 0, SAMPLE_RATE*36, 0, 0, 1, 1, SAMPLE_RATE*37, 0, 0, 1, 1, SAMPLE_RATE*38, 0, 0, 1, 1, SAMPLE_RATE*39, 0, 0, 1, 1, SAMPLE_RATE*40, 0, 0, 1, 1, SAMPLE_RATE*42, 0, 1, 1, 0, SAMPLE_RATE*43, 0, 1, 1, 0, SAMPLE_RATE*44, 0, 0, 1, 0, SAMPLE_RATE*45, 0, 0, 1, 1, SAMPLE_RATE*46, 0, 0, 1, 1, SAMPLE_RATE*47, 0, 0, 1, 1, SAMPLE_RATE*48, 0, 0, 1, 1, SAMPLE_RATE*49, 0, 0, 1, 1, SAMPLE_RATE*50, 0, 0, 1, 0, SAMPLE_RATE*51, 0, 1, 1, 0, SAMPLE_RATE*52, 0, 1, 1, 0, SAMPLE_RATE*53, 0, 1, 1, 0, SAMPLE_RATE*54, 0, 1, 1, 0, SAMPLE_RATE*55, 0, 1, 1, 0, SAMPLE_RATE*56, 0, 1, 0, 0, SAMPLE_RATE*57, 0, 0, 1, 0, SAMPLE_RATE*58, 0, 1, 0, 0, SAMPLE_RATE*59, 0, 0, 1, 0, SAMPLE_RATE*60, 0, 1, 0, 0, SAMPLE_RATE*62, 0, 1, 1, 0, SAMPLE_RATE*63, 0, 1, 1, 0, SAMPLE_RATE*64, 0, 1, 1, 0, SAMPLE_RATE*65, 0, 1, 1, 0, SAMPLE_RATE*66, 0, 1, 1, 0}; const unsigned short fireflies_bubbles[58][5] = { SAMPLE_RATE*1, 0, 1, 0, 0, SAMPLE_RATE*2, 0, 0, 1, 0, SAMPLE_RATE*3, 0, 1, 0, 0, SAMPLE_RATE*4, 0, 0, 1, 0, SAMPLE_RATE*5, 0, 1, 0, 0, SAMPLE_RATE*6, 0, 0, 1, 0, SAMPLE_RATE*7, 0, 1, 0, 0, SAMPLE_RATE*8, 0, 0, 1, 0, SAMPLE_RATE*9, 0, 1, 0, 0, SAMPLE_RATE*10, 0, 0, 1, 0, SAMPLE_RATE*11, 0, 0, 0, 1, SAMPLE_RATE*12, 0, 0, 1, 0, SAMPLE_RATE*13, 0, 1, 0, 0, SAMPLE_RATE*14, 0, 0, 1, 0, SAMPLE_RATE*15, 0, 0, 0, 1, SAMPLE_RATE*16, 0, 1, 1, 0, SAMPLE_RATE*17, 0, 1, 1, 0, SAMPLE_RATE*18, 0, 0, 1, 1, SAMPLE_RATE*19, 0, 0, 1, 1, SAMPLE_RATE*21, 0, 0, 1, 0, SAMPLE_RATE*22, 0, 0, 1, 0, SAMPLE_RATE*23, 0, 0, 1, 0, SAMPLE_RATE*24, 0, 0, 1, 0, SAMPLE_RATE*25, 0, 1, 0, 0, SAMPLE_RATE*26, 0, 1, 0, 0, SAMPLE_RATE*27, 0, 0, 1, 0, SAMPLE_RATE*28, 0, 0, 1, 0, SAMPLE_RATE*29, 0, 0, 0, 1, SAMPLE_RATE*30, 0, 0, 0, 1, SAMPLE_RATE*32, 0, 1, 0, 0, SAMPLE_RATE*33, 0, 1, 0, 0, SAMPLE_RATE*34, 0, 0, 1, 0, SAMPLE_RATE*35, 0, 0, 1, 0, SAMPLE_RATE*36, 0, 0, 0, 1, SAMPLE_RATE*37, 0, 0, 0, 1, SAMPLE_RATE*38, 0, 0, 1, 0, SAMPLE_RATE*39, 0, 0, 1, 0, SAMPLE_RATE*40, 0, 1, 0, 0, SAMPLE_RATE*41, 0, 1, 0, 0, SAMPLE_RATE*43, 0, 1, 1, 1, SAMPLE_RATE*44, 0, 1, 1, 1, SAMPLE_RATE*45, 0, 1, 1, 1, SAMPLE_RATE*46, 0, 1, 1, 1, SAMPLE_RATE*47, 0, 1, 1, 0, SAMPLE_RATE*48, 0, 1, 1, 0, SAMPLE_RATE*49, 0, 0, 1, 1, SAMPLE_RATE*50, 0, 0, 1, 1, SAMPLE_RATE*51, 0, 0, 1, 1, SAMPLE_RATE*53, 0, 1, 1, 0, SAMPLE_RATE*54, 0, 1, 1, 0, SAMPLE_RATE*55, 0, 0, 1, 1, SAMPLE_RATE*56, 0, 1, 1, 0, SAMPLE_RATE*57, 0, 0, 1, 1, SAMPLE_RATE*59, 0, 1, 0, 0, SAMPLE_RATE*60, 0, 0, 1, 0, SAMPLE_RATE*61, 0, 0, 0, 1, SAMPLE_RATE*62, 0, 0, 1, 0, SAMPLE_RATE*63, 0, 1, 0, 0};