Skip to content

Commit 2e1a141

Browse files
author
Danilo Campana Fuchs
committed
feat: Increase column size to allow for higher tempo
1 parent 9c16f80 commit 2e1a141

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

ForceTouchPlayer/ContentView.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,22 @@ struct ContentView: View {
2626
}
2727

2828
var body: some View {
29-
let tempoStr = String(format: "%.1f", self.tempo).padding(toLength: 5, withPad: " ", startingAt: 0);
3029

30+
let tempoStr = String(format: "%.1f", self.tempo).padding(toLength: 5, withPad: " ", startingAt: 0);
31+
3132
return HStack {
3233
Spacer()
3334
.frame(width: 64.0)
3435
VStack {
3536
Spacer()
36-
Picker(selection: $currentSongIndex.onChange(handlePickerChange), label: Text("Song:").frame(width: 130, alignment: .leading)) {
37+
Picker(selection: $currentSongIndex.onChange(handlePickerChange), label: Text("Song:").frame(width: 150, alignment: .leading)) {
3738
ForEach(0 ..< songsList.count, id: \.self) {
3839
Text(self.songsList[$0].name).tag($0)
3940
}
4041
}
4142
HStack {
42-
Text("Tempo: \(tempoStr) BPM").frame(width: 130, alignment: .leading)
43-
Slider(value: $tempo, in: 40...200, step: 4)
43+
Text("Tempo: \(tempoStr) BPM").frame(width: 150, alignment: .leading)
44+
Slider(value: $tempo, in: 40...300, step: 8)
4445
}
4546
Spacer()
4647
Text("Don't take your finger off of the trackpad!")

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Do you own a MacBook™?
44

55
Do you think the builtin Stereo Speakers™ are too limiting?
66

7-
Have you realized your Force Touch™ Trackpad is not actually a huge glass button?
7+
Have you realized your Force Touch™ Trackpad is not a huge glass button, but a huge glass **vibration motor**?
88

99
You see where I'm getting at. Introducing the Force Touch Player™ (not actually a trademark)
1010

1111
Play your favorite 8-bit tunes _in_ the trackpad, _with_ the trackpad, _on_ the trackpad. No speaker required!
1212

1313
![Screenshot](./docs/screenshot.png)
1414

15-
## Wow, such vibration
15+
## Wow, very music
1616

1717
- Download [ForceTouchPlayer.zip from latest release](https://github.com/danilofuchs/ForceTouchPlayer/releases)
1818
- Unzip the file

0 commit comments

Comments
 (0)