11 #ifndef NOTE_H_INCLUDED
12 #define NOTE_H_INCLUDED
14 #include "../headers/types.hpp"
15 #include "../headers/defines.hpp"
26 note(Flt pitch = 60.f, Flt volume = 1.f);
29 note & set (Flt pitch, Flt volume = 1.f);
30 note & setPitch (Flt value);
31 note & setVolume(Flt value);
38 note & operator+=(
const note&
object);
39 note & operator-=(
const note&
object);
40 note & operator*=(
const note&
object);
41 note & operator/=(
const note&
object);
43 note & operator+=(Flt pitch);
44 note & operator-=(Flt pitch);
45 note & operator*=(Flt pitch);
46 note & operator/=(Flt pitch);
48 Bool operator==(
const note&
object);
49 Bool operator!=(
const note&
object);
50 Bool operator<(
const note&
object);
51 Bool operator>(
const note&
object);
52 Bool operator<=(
const note&
object);
53 Bool operator>=(
const note&
object);
55 Bool operator==(Flt pitch);
56 Bool operator!=(Flt pitch);
57 Bool operator<(Flt pitch);
58 Bool operator>(Flt pitch);
59 Bool operator<=(Flt pitch);
60 Bool operator>=(Flt pitch);
62 friend note operator+(
const note &n, Flt pitch);
63 friend note operator-(
const note &n, Flt pitch);
64 friend note operator*(
const note &n, Flt pitch);
65 friend note operator/(
const note &n, Flt pitch);
67 friend note operator+(Flt pitch,
const note &n);
68 friend note operator-(Flt pitch,
const note &n);
69 friend note operator*(Flt pitch,
const note &n);
70 friend note operator/(Flt pitch,
const note &n);
85 #endif // NOTE_H_INCLUDED