-
Notifications
You must be signed in to change notification settings - Fork 0
/
lyricssid.py~
173 lines (166 loc) · 4.09 KB
/
lyricssid.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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
#Lyrics.py
#Designed to just echo out the lyrics to the console while in sync with the music.
#Lets start!
import time
import os
import pygame
import sys
#from __future__ import print_function
print("")
file = 'stillalivesid.wav'
pygame.init()
pygame.mixer.init()
pygame.mixer.music.load(file)
def lyric( str , tme):
"Lyrics printed out through this command should be orange"
#time.sleep(1)
for c in str:
#Ok timing works by calculating length of string, getting old timing removing 0.1 second from it and then calculating time per char.
num = len(str)
timee = tme - 0.3
timeperchar = timee/num
#print(timeperchar)
sys.stdout.write( '%s' % c )
sys.stdout.flush()
time.sleep(timeperchar)
sys.stdout.write("\n")
sys.stdout.flush()
time.sleep(0.3)
os.system("clear")
pygame.mixer.music.play()
lyric("This was a triumph.",2)
time.sleep(1)
lyric("I'm making a note here:",2)
#time.sleep(2)
lyric("HUGE SUCCESS.",2)
time.sleep(1)
lyric("It's hard to overstate ",2)
#time.sleep(2)
lyric("my satisfaction.",3)
time.sleep(2)
lyric("Aperture Science ",3)
time.sleep(1)
lyric("We do what we must",2.2)
#time.sleep(2.2)
lyric("because we can.",2)
time.sleep(1)
lyric("For the good of all of us.",3)
#time.sleep(3)
lyric("Except the ones who are dead.",2)
#time.sleep(2)
lyric("But there's no sense crying",2.5)
#time.sleep(2.5)
lyric("over every mistake.",2)
#time.sleep(2)
lyric("You just keep on trying ",1.8)
#time.sleep(2)
lyric("till you run out of cake.",1.8)
#time.sleep(2)
lyric("And the Science gets done.",1.8)
#time.sleep(2)
lyric("And you make a neat gun.",1.8)
#time.sleep(2)
lyric("For the people who are",1.8)
#time.sleep(2)
lyric("still alive.",1)
time.sleep(6)
#page2
os.system("clear")
#time.sleep(7)
lyric("I'm not even angry.",4)
#time.sleep(4)
lyric("I'm being so sincere right now.",5)
#time.sleep(5)
lyric("Even though you broke my heart.",3)
#time.sleep(3)
lyric("And killed me.",3.5)
#time.sleep(3.5)
lyric("And tore me to pieces.",3.5)
#time.sleep(3.5)
lyric("And threw every piece into a fire.",5)
#time.sleep(5)
lyric("As they burned it hurt because",3)
#time.sleep(3)
lyric("I was so happy for you!",2.5)
#time.sleep(2.5)
lyric("Now these points of data",2)
#time.sleep(2)
lyric("make a beautiful line",2)
#time.sleep(2)
lyric("And we're out of beta. ",2)
#time.sleep(2) #30
lyric("We're releasing on time.",2)
#time.sleep(2)
lyric("So I'm GLaD. I got burned.",2)
#time.sleep(2)
lyric("Think of all the things we learned",1.7)
#time.sleep(1.7)
lyric("For the people who are",2)
#time.sleep(2)
lyric("still alive.",2)
time.sleep(2)
#pg3
os.system("clear")
time.sleep(2)
lyric("Go ahead and leave me.",3.8)
#time.sleep(3.8)
lyric("I think I prefer to stay inside.",5)
#time.sleep(5)
lyric("Maybe you'll find someone else",4)
#time.sleep(4)
lyric("to help you.",3.5)
#time.sleep(3.5)
lyric("Maybe Black Mesa,",3)
#time.sleep(3)
lyric("THAT WAS A JOKE. FAT CHANCE.",4.6)
#time.sleep(4.6)
lyric("Anyway, this cake is great.",3)
#time.sleep(3)
lyric("It's so delicious and moist.",2.5)
#time.sleep(2.5)
lyric("Look at me still talking ",2.5)
#time.sleep(2.5)
lyric("When there's Science to do.",2.5)
#time.sleep(2.5)
lyric("When I look out there,",2)
#time.sleep(2)
lyric("It makes me GLaD I'm not you.",2)
#time.sleep(2)
lyric("I've experiments to run.",2)
#time.sleep(2)
lyric("There is research to be done.",2)
#time.sleep(2)
lyric("On the people who are",2)
#time.sleep(2)
lyric("still alive.",2)
#time.sleep(2)
os.system("clear")
time.sleep(1)
#pg4
lyric("PS: And believe me I am",1.5)
#time.sleep(1.5)
lyric("still alive.",1.5)
#time.sleep(1.5)
lyric("PPs: I'm doing science and I'm",1.8)
#time.sleep(1.8)
lyric("still alive.",1.8)
#time.sleep(1.8)
lyric("PPPS: I feel FANTASTIC and I'm",1.8)
#time.sleep(1.8)
lyric("still alive.",1.8)
#time.sleep(1.8)
lyric("While you're dying I'll be",1.8)
#time.sleep(1.8)
lyric("still alive.",1.8)
#time.sleep(1.8)
lyric("FINAL THOUGHT PS:",1.8)
#time.sleep(1.8)
lyric("And when you're dead I will be",1.8)
#time.sleep(1.8)
lyric("still alive.",2)
#time.sleep(2)
lyric("STILL ALIVE",1)
#time.sleep(1)
os.system("clear")
while pygame.mixer.music.get_busy():
pygame.time.Clock().tick(10)