diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-28 15:49:50 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-28 15:49:50 -0400 |
commit | 251248adfab36b061eb8fdd08aa54b318462da65 (patch) | |
tree | 4ff1eb792a1e1b442ec2fa6a99e01b28518c5cf4 /generator/mood.h | |
parent | af49d3435302118d036c512aef1def848fb88089 (diff) | |
download | cadence-251248adfab36b061eb8fdd08aa54b318462da65.tar.gz cadence-251248adfab36b061eb8fdd08aa54b318462da65.tar.bz2 cadence-251248adfab36b061eb8fdd08aa54b318462da65.zip |
Revamped bot with new algorithm
The percentages currently used by the generator are trial-and-error and may be changed in the future. refs #1
Diffstat (limited to 'generator/mood.h')
-rw-r--r-- | generator/mood.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/generator/mood.h b/generator/mood.h deleted file mode 100644 index c36e5ee..0000000 --- a/generator/mood.h +++ /dev/null | |||
@@ -1,60 +0,0 @@ | |||
1 | #ifndef MOOD_H_B9A39F40 | ||
2 | #define MOOD_H_B9A39F40 | ||
3 | |||
4 | #include <string> | ||
5 | |||
6 | namespace cadence { | ||
7 | namespace generator { | ||
8 | |||
9 | class mood { | ||
10 | public: | ||
11 | enum class type { | ||
12 | danceable, | ||
13 | acoustic, | ||
14 | aggressive, | ||
15 | electronic, | ||
16 | happy, | ||
17 | party, | ||
18 | relaxed, | ||
19 | sad, | ||
20 | instrumental | ||
21 | }; | ||
22 | |||
23 | // Constructor | ||
24 | |||
25 | mood(type t, double prob); | ||
26 | |||
27 | // Accessors | ||
28 | |||
29 | type getType() const | ||
30 | { | ||
31 | return type_; | ||
32 | } | ||
33 | |||
34 | double getProbability() const | ||
35 | { | ||
36 | return probability_; | ||
37 | } | ||
38 | |||
39 | bool getPositive() const | ||
40 | { | ||
41 | return positive_; | ||
42 | } | ||
43 | |||
44 | std::string getCategory() const | ||
45 | { | ||
46 | return category_; | ||
47 | } | ||
48 | |||
49 | private: | ||
50 | type type_; | ||
51 | double probability_; | ||
52 | bool positive_; | ||
53 | std::string category_; | ||
54 | |||
55 | }; | ||
56 | |||
57 | }; | ||
58 | }; | ||
59 | |||
60 | #endif /* end of include guard: MOOD_H_B9A39F40 */ | ||