-
Notifications
You must be signed in to change notification settings - Fork 1
/
emotions.txt
102 lines (58 loc) · 1.33 KB
/
emotions.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
Happy
-----
- major scales
Sad
----
- minor scales
Scale generation algorithm:
c, c#, d, e,
sadness - major scales
hapiness - minor scales
anger - b major, faster and more abrupt
Major scales:
2 - 2 - 1 - 2 - 2 - 2 - 1
Minor scales:
2 - 1 - 2 - 2 - 1 - 2 - 2
Step 0.5: Recieve the emotion.
Step 0.75: Choose the major, minor or b major.
Step1 : choose the starting note.
Step2 : generate the scale in which all the notes will be chosen
Step 3
com.hillnerds.soundsparrow.Note code:
----------
Note on
-------
1001 CCCC
0PPP PPPP
0VVV VVVV
where CCCC is the midid channel??? from 0 to 15
PPP PPPP is the pitch value form 0 to 127
VVV VVVV is the velocity value from 0 to 127
C is represented by 60 follows in half steps
Note off
---------
1000 CCCC
0PPP PPPP
0VVV VVVV
FOr each note
--------------
generate the pitch from a range 40 to 100
generate the note from a range of 36 to 84
generate a start note sequence, generate an endnote sequence
For example a singe c note at 64:
1001 0000
0011 1110
0100 0000
1000 0000
0011 1110
0000 0000
public void emotion(String em){
if (em == "")
}
public String chooseStartingNote(int num){
}
public void chooseTypeOfScale(String emotion){
//assign type of scale depending on the emotion that was transmitted
}
public void generate Scale (String startingNote){
}