Makes sending MIDI info a side effect, which should fix the one click behind lag
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
cf302138df
commit
30a97f0887
@ -34,6 +34,7 @@ function App() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
useEffect(connect,[])
|
useEffect(connect,[])
|
||||||
|
useEffect(sendPatchNumber, [patchNumber, bankNumber])
|
||||||
|
|
||||||
function makeList(count: number): number[] {
|
function makeList(count: number): number[] {
|
||||||
let l= []
|
let l= []
|
||||||
@ -45,12 +46,10 @@ function App() {
|
|||||||
|
|
||||||
function handleBankSelect(selection: number) {
|
function handleBankSelect(selection: number) {
|
||||||
setBankNumber(selection)
|
setBankNumber(selection)
|
||||||
sendPatchNumber()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function handlePatchSelect(selection: number) {
|
function handlePatchSelect(selection: number) {
|
||||||
setPatchNumber(selection)
|
setPatchNumber(selection)
|
||||||
sendPatchNumber()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function sendPatchNumber() {
|
function sendPatchNumber() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user