+
{Array.from({ length: 6 }).map((_, i) => (
-
-
-
{
- setHeight(e.target.valueAsNumber);
- instructions.current.height = e.target.valueAsNumber;
- }}
- />
-
-
+
{
+ setHeight(v);
+ instructions.current.height = v;
+ }}
+ min={0}
+ max={128}
+ mid={64}
+ />
-
-
-
{
- setWeight(e.target.valueAsNumber);
- instructions.current.weight = e.target.valueAsNumber;
- }}
- />
-
-
+
{
+ setWeight(v);
+ instructions.current.weight = v;
+ }}
+ min={0}
+ max={128}
+ mid={64}
+ />
@@ -122,9 +105,9 @@ export default function HeadTab({ instructions }: Props) {
{
- setVoice((p) => ({ ...p, [label]: e.target.valueAsNumber }));
- instructions.current.voice[label as keyof typeof voice] = e.target.valueAsNumber;
+ onChange={(v, label) => {
+ setVoice((p) => ({ ...p, [label]: v }));
+ instructions.current.voice[label as keyof typeof voice] = v;
}}
onClickTone={(i) => {
setVoice((p) => ({ ...p, tone: i }));