Code for the first mbed for the drum hero project

Dependencies:   4DGL SDFileSystem mbed

Fork of drums2 by Yusuf Kuris

Committer:
ckabuloglu
Date:
Sun Apr 30 00:55:41 2017 +0000
Revision:
3:54d4226a7d5e
mbed1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
ckabuloglu 3:54d4226a7d5e 1 #ifndef SONG_H__
ckabuloglu 3:54d4226a7d5e 2 #define SONG_H__
ckabuloglu 3:54d4226a7d5e 3
ckabuloglu 3:54d4226a7d5e 4 #include <vector>
ckabuloglu 3:54d4226a7d5e 5
ckabuloglu 3:54d4226a7d5e 6 class Song {
ckabuloglu 3:54d4226a7d5e 7 public:
ckabuloglu 3:54d4226a7d5e 8 // ID of the song to be played
ckabuloglu 3:54d4226a7d5e 9 int songId;
ckabuloglu 3:54d4226a7d5e 10
ckabuloglu 3:54d4226a7d5e 11 // The notes that will be coming, type's of notes(1,2,3) that determine
ckabuloglu 3:54d4226a7d5e 12 // if a beat needs to be hit or not, 0's mean no hit, (4 means end of the
ckabuloglu 3:54d4226a7d5e 13 // song)
ckabuloglu 3:54d4226a7d5e 14 std::vector<int> notes;
ckabuloglu 3:54d4226a7d5e 15
ckabuloglu 3:54d4226a7d5e 16 // The length of the array
ckabuloglu 3:54d4226a7d5e 17 int length;
ckabuloglu 3:54d4226a7d5e 18
ckabuloglu 3:54d4226a7d5e 19 // BPM value, or the time value between two notes
ckabuloglu 3:54d4226a7d5e 20 float timing;
ckabuloglu 3:54d4226a7d5e 21
ckabuloglu 3:54d4226a7d5e 22 // Construct a song with a certain ID
ckabuloglu 3:54d4226a7d5e 23 Song(int id);
ckabuloglu 3:54d4226a7d5e 24 };
ckabuloglu 3:54d4226a7d5e 25 #endif