JBWOPR
Loading...
Searching...
No Matches
jbwoprnokiatune.h
Go to the documentation of this file.
1
9#ifndef ARDUINO_WOPR_JBWOPRNOKIATUNE_H
10#define ARDUINO_WOPR_JBWOPRNOKIATUNE_H
11
12#include "jbwopreffects.h"
13
14#define JBWOPR_EFFECT_NAME_NOKIA_TUNE "Nokia Tune"
15
19public:
26 explicit JBWoprNokiaTuneEffect(JBWoprDevice *woprBoard,
27 uint32_t tempo = 180,
28 uint32_t duration = -1,
29 const std::string name=JBWOPR_EFFECT_NAME_NOKIA_TUNE);
30
31protected:
32 // Hide these as they are hard coded
33 virtual void setSong(std::vector<JBWoprSongEffect::Note>* song) {};
34 virtual void setTempo(uint32_t tempo) {};
35
37 const std::vector<JBWoprSongEffect::Note> _nokiaTune {
38 { NOTE_E, 5, 8, " R "},
39 { NOTE_D, 5, 8, " O R " },
40 { NOTE_Fs, 4, 4, " O R E " },
41 { NOTE_Gs, 4, 4, " O I R EZ" },
42 { NOTE_Cs, 5, 8, " O IA R EZ" },
43 { NOTE_B, 4, 8, "NO IA RU EZ" },
44 { NOTE_D, 4, 4, "NO IA RULEZ" },
45 { NOTE_E, 4, 4, "NOKIA RULEZ" },
46 { NOTE_B, 4, 8, "" },
47 { NOTE_A, 4, 8, "-" },
48 { NOTE_Cs, 4, 4, "NOKIA RULEZ" },
49 { NOTE_E, 4, 4, "-" },
50 { NOTE_A, 4, 2, "NOKIA RULEZ" },
51 { 0, 0, 4, "" }
52 };
53};
54
55
56#endif //ARDUINO_WOPR_JBWOPRNOKIATUNE_H
W.O.P.R. device base class.
Definition jbwopr.h:85
Nokia tune effect.
Definition jbwoprnokiatune.h:18
virtual void setTempo(uint32_t tempo)
Set tempo.
Definition jbwoprnokiatune.h:34
const std::vector< JBWoprSongEffect::Note > _nokiaTune
Nokia tune.
Definition jbwoprnokiatune.h:37
Base class for song effects.
Definition jbwopreffects.h:530
Header file for the JBWopr library.
#define JBWOPR_EFFECT_NAME_NOKIA_TUNE
Name of JBWoprNokiaTuneEffect.
Definition jbwoprnokiatune.h:14