Skip to content

Commit 622d42b

Browse files
committed
minor UI fixes + readme update
1 parent 98ab9ab commit 622d42b

File tree

4 files changed

+32
-31
lines changed

4 files changed

+32
-31
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Its main purpose is to mimic the fun and immediacity of hardware sequencers by b
77

88
It's heavily inspired by [elektron devices](https://www.elektron.se).
99

10-
**_Sektron is still under heavy development. Features are missing and it's probably unstable._**
10+
**_Sektron has only been tested on linux (it should work on masOS as well) and you may experience some crashes here and there. Feel free to [open an issue](https://github.com/xaviergodart/sektron/issues/new)._*
1111

1212
![sektron screenshot](/docs/screenshot.png)
1313

@@ -21,7 +21,7 @@ It's heavily inspired by [elektron devices](https://www.elektron.se).
2121
- Up to **64 patterns** can be loaded at the same time
2222
- **Pattern chaining**
2323

24-
And more to come. See [Planned features](https://github.com/xaviergodart/sektron#planned-features).
24+
See [Roadmap](https://github.com/xaviergodart/sektron#roadmap) for more.
2525

2626
## Installation
2727

@@ -142,9 +142,9 @@ Sektron uses a few awesome packages:
142142

143143
## Roadmap
144144

145+
The project isn't under active development right now. I may fix some bugs here and there. But I'll considerer adding more features if there's some interest.
146+
147+
Things that I may consider adding at some point:
145148
- Step polyphony
146-
- Keyboard mode
147-
- Live record
148-
- More random/generative features
149149
- Retrigs
150150
- LFOs

sequencer/step.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@ package sequencer
33
import (
44
"fmt"
55
"math/rand"
6-
"sektron/midi"
76
"time"
7+
8+
"sektron/midi"
89
)
910

1011
// Step contains a step state.
@@ -160,7 +161,7 @@ func (s step) ProbabilityString() string {
160161
// OffsetString returns the string representation of the step offset.
161162
func (s step) OffsetString() string {
162163
if s.offset == 0 {
163-
return fmt.Sprintf("%d", s.offset)
164+
return ""
164165
}
165166
return fmt.Sprintf("+%d", s.offset)
166167
}

ui/font.go

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,17 +32,17 @@ var asciiCharTable = map[string]string{
3232
"/": lipgloss.JoinVertical(
3333
lipgloss.Left,
3434
[]string{
35-
" █",
3635
" █ ",
37-
"█ ",
36+
" █ ",
37+
" █ ",
3838
}...,
3939
),
4040
"%": lipgloss.JoinVertical(
4141
lipgloss.Left,
4242
[]string{
43-
"█ ",
43+
"█ ",
4444
" █ ",
45-
" █",
45+
" █",
4646
}...,
4747
),
4848
"<": lipgloss.JoinVertical(
@@ -65,7 +65,7 @@ var asciiCharTable = map[string]string{
6565
lipgloss.Left,
6666
[]string{
6767
"█▀█",
68-
"██",
68+
"██",
6969
"█ █",
7070
}...,
7171
),
@@ -113,7 +113,7 @@ var asciiCharTable = map[string]string{
113113
lipgloss.Left,
114114
[]string{
115115
"█▀▀",
116-
"█ ",
116+
"█ ",
117117
"█▄█",
118118
}...,
119119
),
@@ -176,7 +176,7 @@ var asciiCharTable = map[string]string{
176176
"1": lipgloss.JoinVertical(
177177
lipgloss.Left,
178178
[]string{
179-
"█ ",
179+
"█ ",
180180
" █ ",
181181
"▄█▄",
182182
}...,
@@ -185,64 +185,64 @@ var asciiCharTable = map[string]string{
185185
lipgloss.Left,
186186
[]string{
187187
"█▀█",
188-
"▀",
188+
"▄▀▀",
189189
"█▄▄",
190190
}...,
191191
),
192192
"3": lipgloss.JoinVertical(
193193
lipgloss.Left,
194194
[]string{
195195
"█▀█",
196-
" ▀",
196+
" ▀",
197197
"█▄█",
198198
}...,
199199
),
200200
"4": lipgloss.JoinVertical(
201201
lipgloss.Left,
202202
[]string{
203203
"█ █",
204-
"█▄█",
204+
"▀▀█",
205205
" █",
206206
}...,
207207
),
208208
"5": lipgloss.JoinVertical(
209209
lipgloss.Left,
210210
[]string{
211211
"█▀▀",
212-
"▀▀",
213-
"▄▄",
212+
"▀▀",
213+
"▄▄",
214214
}...,
215215
),
216216
"6": lipgloss.JoinVertical(
217217
lipgloss.Left,
218218
[]string{
219-
"▄▀▄",
220-
"█",
221-
"▀▄▀",
219+
"█▀▀",
220+
"█▀█",
221+
"█▄█",
222222
}...,
223223
),
224224
"7": lipgloss.JoinVertical(
225225
lipgloss.Left,
226226
[]string{
227227
"▀▀█",
228-
" ",
229-
"▐▌ ",
228+
" ",
229+
"",
230230
}...,
231231
),
232232
"8": lipgloss.JoinVertical(
233233
lipgloss.Left,
234234
[]string{
235-
"▄▀▄",
236-
"▄▀▄",
237-
"▀▄▀",
235+
"█▀█",
236+
"█▀█",
237+
"█▄█",
238238
}...,
239239
),
240240
"9": lipgloss.JoinVertical(
241241
lipgloss.Left,
242242
[]string{
243-
"▄▀▄",
244-
"▀█",
245-
" ▄▀",
243+
"█▀█",
244+
"▀█",
245+
" ",
246246
}...,
247247
),
248248
}

ui/parameter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ package ui
22

33
import (
44
"fmt"
5+
56
"sektron/sequencer"
67

78
"github.com/charmbracelet/bubbles/table"
@@ -11,7 +12,6 @@ import (
1112
)
1213

1314
const (
14-
paramsPerLine = 18
1515
pulsesPerStep = 6
1616
maxSteps = 128
1717
midiParameters = 131

0 commit comments

Comments
 (0)