Skip to content

Commit

Permalink
Final touches for v1 (#40)
Browse files Browse the repository at this point in the history
* add links to final blog post

* prevent default when selecting track title

* fix the tempo width properly

* improve tempo change fidelity
  • Loading branch information
ericyd committed Dec 16, 2022
1 parent 7c872bd commit c7be23f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@

## How to use

1. Go to [loopsupreme.com](https://loopsupreme.com)
2. Click "play"
3. Arm a track for recording
4. Add more tracks and keep building!
Please [check out the wiki](https://github.com/ericyd/loop-supreme/wiki)

## Motivation

Expand All @@ -35,7 +32,7 @@ You can check out [The Roadmap](./roadmap.md)!

I blogged about this as I made it

* Part 12: v1.0 release, and project retro (_coming soon!_)
* [Part 12: v1.0 release, and project retro](https://ericyd.hashnode.dev/loop-supreme-part-12-v10-release-and-project-retro)
* [Part 11: Exporting stems and changing inputs](https://ericyd.hashnode.dev/loop-supreme-part-11-exporting-stems-and-changing-inputs)
* [Part 10: Keyboard bindings](https://ericyd.hashnode.dev/loop-supreme-part-10-keyboard-bindings)
* [Part 9: Visualizing the waveform](https://ericyd.hashnode.dev/loop-supreme-part-9-visualizing-the-waveform)
Expand Down
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ <h1>
>GitHub</a
>
<a
href="https://ericyd.hashnode.dev/loop-supreme-part-11-exporting-stems-and-changing-inputs"
href="https://ericyd.hashnode.dev/loop-supreme-part-12-v10-release-and-project-retro"
target="_blank"
rel="noreferrer"
class="m-2 underline text-link font-sans-real"
Expand Down
6 changes: 4 additions & 2 deletions src/Metronome/controls/TempoControl.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function TempoControl({ onChange, defaultValue }: TempoProps) {

const debouncedOnChange = useDebouncedCallback(onChange, 100, {
leading: true,
trailing: false,
trailing: true,
})

const handleChange: React.ChangeEventHandler<HTMLInputElement> = (event) => {
Expand Down Expand Up @@ -51,7 +51,9 @@ export function TempoControl({ onChange, defaultValue }: TempoProps) {
return (
<ControlPanelItem>
<div className="flex flex-row">
<span className="text-4xl pr-3">{bpm.toFixed(1)}</span>
<span className="text-4xl pr-3">
{bpm < 100 ? bpm.toFixed(2) : bpm.toFixed(1)}
</span>
<span className="text-sm">
(t)ap
<br />
Expand Down
2 changes: 1 addition & 1 deletion src/Track/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ export const Track: React.FC<Props> = ({
r: { callback: toggleArmRecording },
i: { callback: toggleMonitoring },
m: { callback: toggleMuted },
n: { callback: rename },
n: { callback: rename, preventDefault: true },
}
: {}
)
Expand Down

0 comments on commit c7be23f

Please sign in to comment.