drum

Dependencies:   4DGL SDFileSystem mbed-rtos mbed

Fork of drums by Can Kabuloglu

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers song.h Source File

song.h

00001 #ifndef SONG_H__
00002 #define SONG_H__
00003 
00004 #include <vector>
00005 
00006 class Song {
00007     public:
00008         // ID of the song to be played
00009         int songId;
00010         
00011         // The notes that will be coming, type's of notes(1,2,3) that determine
00012         // if a beat needs to be hit or not, 0's mean no hit, (4 means end of the
00013         // song)
00014         std::vector<int> notes;
00015         
00016         // The length of the array
00017         int length;
00018         
00019         // BPM value, or the time value between two notes
00020         float timing;
00021         
00022         // Construct a song with a certain ID
00023         Song(int id);
00024 };
00025 #endif