diff --git a/src/components/SendSysex.tsx b/src/components/SendSysex.tsx index 49d1e25..ae6e547 100644 --- a/src/components/SendSysex.tsx +++ b/src/components/SendSysex.tsx @@ -1,11 +1,10 @@ import { Dropdown } from "primereact/dropdown"; import { useMidiAccess, useMidiPermission } from "../hooks/use_midi"; import { Flex } from "./Flex"; -import { FormEventHandler, useCallback, useId, useState } from "react"; +import { FormEventHandler, useId, useState } from "react"; import { Button } from "primereact/button"; import { PrimeIcons } from "primereact/api"; -import { Knob, KnobChangeEvent } from "primereact/knob"; -import { Callback, Waveform } from "../types"; +import { Waveform } from "../types"; import { Fieldset } from "primereact/fieldset"; import { sendWaveformSysex } from "../lib/sysex"; @@ -16,7 +15,6 @@ export const SendSysex: React.FC<{ readonly waveform: Waveform }> = ({ const midi = useMidiAccess(); const [portId, setPortId] = useState(undefined); - const [waveIndex, setWaveIndex] = useState(0); const sendSysex: FormEventHandler = (e) => { e.preventDefault(); @@ -31,11 +29,6 @@ export const SendSysex: React.FC<{ readonly waveform: Waveform }> = ({ sendWaveformSysex(port, waveform); }; - const handleWaveIndexChange = useCallback>( - (e) => setWaveIndex(e.value), - [] - ); - if (!perm) return Error: Permission unavailable; if (!midi?.sysexEnabled) return Error: SysEx not enabled; @@ -74,17 +67,6 @@ export const SendSysex: React.FC<{ readonly waveform: Waveform }> = ({ /> )} - - {(id) => ( - - )} -