diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-26 15:33:06 -0400 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2018-03-26 15:33:06 -0400 |
commit | 0e6355329f241a3e3c8b38cb4146fda4470e6ed0 (patch) | |
tree | df5853ba6df148e8eeb0082d090dfbcd9f94f651 /generator/mood.cpp | |
parent | 09acb46a9c32257b0003eb152d32c15b43b95dfe (diff) | |
download | cadence-0e6355329f241a3e3c8b38cb4146fda4470e6ed0.tar.gz cadence-0e6355329f241a3e3c8b38cb4146fda4470e6ed0.tar.bz2 cadence-0e6355329f241a3e3c8b38cb4146fda4470e6ed0.zip |
Whitespace changes
Diffstat (limited to 'generator/mood.cpp')
-rw-r--r-- | generator/mood.cpp | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/generator/mood.cpp b/generator/mood.cpp index 9f53dce..b74211c 100644 --- a/generator/mood.cpp +++ b/generator/mood.cpp | |||
@@ -2,7 +2,7 @@ | |||
2 | 2 | ||
3 | namespace cadence { | 3 | namespace cadence { |
4 | namespace generator { | 4 | namespace generator { |
5 | 5 | ||
6 | // The categories are: | 6 | // The categories are: |
7 | // - party (+danceable, -acoustic, +electronic, +party) = ~.21 | 7 | // - party (+danceable, -acoustic, +electronic, +party) = ~.21 |
8 | // - chill (-danceable, +acoustic, -aggressive, -electronic, -party, +relaxed) = ~.49 | 8 | // - chill (-danceable, +acoustic, -aggressive, -electronic, -party, +relaxed) = ~.49 |
@@ -11,7 +11,7 @@ namespace cadence { | |||
11 | // - sad (-happy, +sad) = ~.02 | 11 | // - sad (-happy, +sad) = ~.02 |
12 | // - instrumental (+instrumental) = ~.12 | 12 | // - instrumental (+instrumental) = ~.12 |
13 | // - vocal (-instrumental) = ~.10 | 13 | // - vocal (-instrumental) = ~.10 |
14 | 14 | ||
15 | mood::mood(type t, double prob) : type_(t) | 15 | mood::mood(type t, double prob) : type_(t) |
16 | { | 16 | { |
17 | if (prob >= 0.5) | 17 | if (prob >= 0.5) |
@@ -22,73 +22,73 @@ namespace cadence { | |||
22 | probability_ = 1.0 - prob; | 22 | probability_ = 1.0 - prob; |
23 | positive_ = false; | 23 | positive_ = false; |
24 | } | 24 | } |
25 | 25 | ||
26 | switch (t) | 26 | switch (t) |
27 | { | 27 | { |
28 | case type::danceable: | 28 | case type::danceable: |
29 | { | 29 | { |
30 | category_ = (positive_ ? "party" : "chill"); | 30 | category_ = (positive_ ? "party" : "chill"); |
31 | 31 | ||
32 | break; | 32 | break; |
33 | } | 33 | } |
34 | 34 | ||
35 | case type::acoustic: | 35 | case type::acoustic: |
36 | { | 36 | { |
37 | category_ = (positive_ ? "chill" : "party"); | 37 | category_ = (positive_ ? "chill" : "party"); |
38 | 38 | ||
39 | break; | 39 | break; |
40 | } | 40 | } |
41 | 41 | ||
42 | case type::aggressive: | 42 | case type::aggressive: |
43 | { | 43 | { |
44 | category_ = (positive_ ? "crazy" : "chill"); | 44 | category_ = (positive_ ? "crazy" : "chill"); |
45 | 45 | ||
46 | break; | 46 | break; |
47 | } | 47 | } |
48 | 48 | ||
49 | case type::electronic: | 49 | case type::electronic: |
50 | { | 50 | { |
51 | category_ = (positive_ ? "party" : "chill"); | 51 | category_ = (positive_ ? "party" : "chill"); |
52 | 52 | ||
53 | break; | 53 | break; |
54 | } | 54 | } |
55 | 55 | ||
56 | case type::happy: | 56 | case type::happy: |
57 | { | 57 | { |
58 | category_ = (positive_ ? "happy" : "sad"); | 58 | category_ = (positive_ ? "happy" : "sad"); |
59 | 59 | ||
60 | break; | 60 | break; |
61 | } | 61 | } |
62 | 62 | ||
63 | case type::party: | 63 | case type::party: |
64 | { | 64 | { |
65 | category_ = (positive_ ? "party" : "chill"); | 65 | category_ = (positive_ ? "party" : "chill"); |
66 | 66 | ||
67 | break; | 67 | break; |
68 | } | 68 | } |
69 | 69 | ||
70 | case type::relaxed: | 70 | case type::relaxed: |
71 | { | 71 | { |
72 | category_ = (positive_ ? "chill" : "crazy"); | 72 | category_ = (positive_ ? "chill" : "crazy"); |
73 | 73 | ||
74 | break; | 74 | break; |
75 | } | 75 | } |
76 | 76 | ||
77 | case type::sad: | 77 | case type::sad: |
78 | { | 78 | { |
79 | category_ = (positive_ ? "sad" : "happy"); | 79 | category_ = (positive_ ? "sad" : "happy"); |
80 | 80 | ||
81 | break; | 81 | break; |
82 | } | 82 | } |
83 | 83 | ||
84 | case type::instrumental: | 84 | case type::instrumental: |
85 | { | 85 | { |
86 | category_ = (positive_ ? "instrumental" : "vocal"); | 86 | category_ = (positive_ ? "instrumental" : "vocal"); |
87 | 87 | ||
88 | break; | 88 | break; |
89 | } | 89 | } |
90 | } | 90 | } |
91 | } | 91 | } |
92 | 92 | ||
93 | }; | 93 | }; |
94 | }; | 94 | }; |