Skip to content

Commit

Permalink
minor UI fixes + readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviergodart committed Jun 3, 2024
1 parent 98ab9ab commit 622d42b
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 31 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Its main purpose is to mimic the fun and immediacity of hardware sequencers by b

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

**_Sektron is still under heavy development. Features are missing and it's probably unstable._**
**_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)._*

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

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

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

## Installation

Expand Down Expand Up @@ -142,9 +142,9 @@ Sektron uses a few awesome packages:

## Roadmap

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.

Things that I may consider adding at some point:
- Step polyphony
- Keyboard mode
- Live record
- More random/generative features
- Retrigs
- LFOs
5 changes: 3 additions & 2 deletions sequencer/step.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ package sequencer
import (
"fmt"
"math/rand"
"sektron/midi"
"time"

"sektron/midi"
)

// Step contains a step state.
Expand Down Expand Up @@ -160,7 +161,7 @@ func (s step) ProbabilityString() string {
// OffsetString returns the string representation of the step offset.
func (s step) OffsetString() string {
if s.offset == 0 {
return fmt.Sprintf("%d", s.offset)
return ""
}
return fmt.Sprintf("+%d", s.offset)
}
Expand Down
46 changes: 23 additions & 23 deletions ui/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,17 @@ var asciiCharTable = map[string]string{
"/": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
" █",
" █ ",
"█ ",
" █ ",
" █ ",
}...,
),
"%": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"█ ",
"█ ",
" █ ",
" █",
" █",
}...,
),
"<": lipgloss.JoinVertical(
Expand All @@ -65,7 +65,7 @@ var asciiCharTable = map[string]string{
lipgloss.Left,
[]string{
"█▀█",
"██",
"██",
"█ █",
}...,
),
Expand Down Expand Up @@ -113,7 +113,7 @@ var asciiCharTable = map[string]string{
lipgloss.Left,
[]string{
"█▀▀",
"█ ",
"█ ",
"█▄█",
}...,
),
Expand Down Expand Up @@ -176,7 +176,7 @@ var asciiCharTable = map[string]string{
"1": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"█ ",
"█ ",
" █ ",
"▄█▄",
}...,
Expand All @@ -185,64 +185,64 @@ var asciiCharTable = map[string]string{
lipgloss.Left,
[]string{
"█▀█",
"▀",
"▄▀▀",
"█▄▄",
}...,
),
"3": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"█▀█",
" ▀",
" ▀",
"█▄█",
}...,
),
"4": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"█ █",
"█▄█",
"▀▀█",
" █",
}...,
),
"5": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"█▀▀",
"▀▀",
"▄▄",
"▀▀",
"▄▄",
}...,
),
"6": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"▄▀▄",
"█",
"▀▄▀",
"█▀▀",
"█▀█",
"█▄█",
}...,
),
"7": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"▀▀█",
" ",
"▐▌ ",
" ",
"",
}...,
),
"8": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"▄▀▄",
"▄▀▄",
"▀▄▀",
"█▀█",
"█▀█",
"█▄█",
}...,
),
"9": lipgloss.JoinVertical(
lipgloss.Left,
[]string{
"▄▀▄",
"▀█",
" ▄▀",
"█▀█",
"▀█",
" ",
}...,
),
}
Expand Down
2 changes: 1 addition & 1 deletion ui/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package ui

import (
"fmt"

"sektron/sequencer"

"github.com/charmbracelet/bubbles/table"
Expand All @@ -11,7 +12,6 @@ import (
)

const (
paramsPerLine = 18
pulsesPerStep = 6
maxSteps = 128
midiParameters = 131
Expand Down

0 comments on commit 622d42b

Please sign in to comment.