-
Notifications
You must be signed in to change notification settings - Fork 0
/
song_list.py
51 lines (39 loc) · 1.98 KB
/
song_list.py
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
import playsound
import random
#testing purposes I think -------------------------------------
# def find_song(wave_flag):
# # for alpha waves
# if (wave_flag == True):
# playsound()
# --------------------------------------------------------------
feelings_to_songs = {
#We are going to look at only alpha waves, deciding between focused or unfocused (compared to baseline)
#Alpha waves
# focused songs are pretty hype, and are to be used for a GRIND
"Focused": ["screamsaver_subtronics", "thelastgoodbye_odesza","makeithappen_rufus","thedifference_flume","pianosonatanumber9_mozart"],
# not focused songs are much more relaxed, used to take a break and unwind from the grind sesh that was just finished
"NotFocused": ["16missedcalls_brent", "marvinsroom_drake", "rollinginthedeep_adele", "shotsforme_drake", "words_gregalanisakov"],
# code we won't use -----------------------------------------------------------------------
# #Theta waves
# "Sleepy": ["intermezzo_pietro","rise_lunarskybox","ivory_trxxshed","words_gregoryalan","jetelaisserai_patrickwatson",""],
# "Awake": ["Someone Like You - Adele"],
# #Beta waves
# #Classical
# "Chill": ["Break Stuff - Limp Bizkit"],
# #EDM
# "Pumped": ["Summer of '69 - Bryan Adams"],
# #Gamma waves
# "Transcendant": ["Interstellar - Hans Zimmer?"],
# "Disoriented": ["Creepy Music"]
# -------------------------------------------------------------------------------------------
}
arrKey = "NotFocused"
# this is the code we want to loop. If we loop the entire file then the song array will be reinitialized each time
n = random.randint(0, len(feelings_to_songs[arrKey]) - 1)
print (len(feelings_to_songs[arrKey]), "\n")
print (feelings_to_songs[arrKey][n])
playsound.playsound(arrKey+"/"+feelings_to_songs[arrKey][n]+".mp3", True)
print (arrKey+"/"+feelings_to_songs[arrKey][n]+".mp3", "\n")
feelings_to_songs[arrKey].pop(n)
print (feelings_to_songs[arrKey])
#playedSongs = []