mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented midi support`
This commit is contained in:
1 parent
f55b8f06e4
commit
8d0817b39e
41 files changed
+2827
-26
No files matched your search
@@ -36,6 +36,7 @@ export function DeckTempo({ deck, master, synced, syncBlocked, onSync, onMaster,
|
||||
return (
|
||||
<div className="flex h-9 shrink-0 items-center gap-2">
|
||||
<button
|
||||
data-midi-action={`deck.${deck.channel}.keylock`}
|
||||
onClick={() => setKeylock(!keylock)}
|
||||
disabled={!keylockAvailable}
|
||||
aria-pressed={keylock}
|
||||
@@ -51,6 +52,7 @@ export function DeckTempo({ deck, master, synced, syncBlocked, onSync, onMaster,
|
||||
KEY
|
||||
</button>
|
||||
<button
|
||||
data-midi-action={`deck.${deck.channel}.sync`}
|
||||
onClick={onSync}
|
||||
disabled={!track || (!synced && syncBlocked != null)}
|
||||
aria-pressed={synced}
|
||||
@@ -79,6 +81,7 @@ export function DeckTempo({ deck, master, synced, syncBlocked, onSync, onMaster,
|
||||
}}
|
||||
/>
|
||||
<Fader
|
||||
midi={`deck.${deck.channel}.pitch`}
|
||||
orientation="horizontal"
|
||||
value={pitch}
|
||||
min={-1}
|
||||
|
||||
Reference in new issue
Block a user