-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUntitled-1
38 lines (36 loc) · 1.29 KB
/
Untitled-1
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
GNU nano 3.2 GPIO5.py
#Trap it here till release
trap(DecSpeed_pin)
elif GPIO.input(ResSpeed_pin)==1:
if playing==0 and recording==0 and looping==0:
Factor=1
Speed(score,InFile,Factor)
#Trap it here till release
trap(ResSpeed_pin)
elif GPIO.input(LoopPlay_pin)==1:
#if normal playing isn't happening
if playing==0 and recording==0:
#If it's not looping - start looping
if looping==0:
looping=1
playid=LoopPlay(InFile)
start_time=time()
#Trap till release
trap(LoopPlay_pin)
#If it's looping - stop looping
elif looping==1:
looping=0
Kill(playid)
#Trap till release
trap(LoopPlay_pin)
#If it's looping
elif looping==1:
if float(Length(InFile))<float(time()-start_time-lo$
playid=LoopPlay(InFile)
start_time=time()
#If the music has stopped - it's stopped playing
elif not CheckPro(playid):
playing=0
else:
^G Get Help ^O Write Out^W Where Is ^K Cut Text ^J Justify
^X Exit ^R Read File^\ Replace ^U Uncut Tex^T To Spell