-
Notifications
You must be signed in to change notification settings - Fork 0
/
BassNotes.kv
49 lines (47 loc) · 1.05 KB
/
BassNotes.kv
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
#:kivy 1.0.9
#from math import round
<BassNotes>:
orientation: 'vertical'
Label:
id: beat
font_size: '120sp'
bold: True
text: '1'
BoxLayout:
size_hint_y: 0.2
Slider:
id: bpm_slider
value: 120
min: 30
max: 180
step: 5
Label:
text: str(int(round(bpm_slider.value)))
text_size: self.size
font_size: '35sp'
size_hint_x: 0.25
halign: 'left'
valign: 'middle'
ToggleButton:
text: 'Play Sound'
font_size: '30sp'
state: 'down'
id: sound
size_hint_y: 0.2
Label:
id: note
font_size: '120sp'
text: 'E'
bold: True
BoxLayout:
size_hint_y: 0.2
Slider:
id: show_slider
value: 4.0
min: 1.0
max: 4.8
step: 0.2
Label:
text: str(round(show_slider.value, 1))
font_size: '35sp'
size_hint_x: 0.25