Move pitch control below timeline hints

This commit is contained in:
Ninosaurier committed 2026-11-18 11:27:34 +01:00
1 parent e7b6c0bb3e
commit 5425e1e3ff
4 files changed
+9 -13

No files matched your search

-7
View File
@@ -2,28 +2,22 @@ import { memo } from 'react';
import { IonButton, IonFooter, IonIcon, IonToolbar } from '@ionic/react';
import { pause, play } from 'ionicons/icons';
import type { InstrumentId } from '../domain/instruments';
import type { BeatPoint } from '../domain/sequencer';
import { InstrumentSelector } from './InstrumentSelector';
import { PitchControl } from './PitchControl';
interface TransportBarProps {
isPlaying: boolean;
isStarting: boolean;
hasBeats: boolean;
selectedBeat: BeatPoint | undefined;
onTogglePlayback: () => Promise<void>;
onAddInstrument: (instrumentId: InstrumentId) => void;
onChangeBeatPitch: (beatId: string, pitchSemitones: number) => void;
}
export const TransportBar = memo(function TransportBar({
isPlaying,
isStarting,
hasBeats,
selectedBeat,
onTogglePlayback,
onAddInstrument,
onChangeBeatPitch,
}: TransportBarProps) {
return (
<IonFooter className="transport-footer">
@@ -38,7 +32,6 @@ export const TransportBar = memo(function TransportBar({
{isStarting ? 'Starting' : isPlaying ? 'Pause' : 'Play'}
</IonButton>
<InstrumentSelector onSelectInstrument={onAddInstrument} />
<PitchControl selectedBeat={selectedBeat} onChangePitch={onChangeBeatPitch} />
</div>
</IonToolbar>
</IonFooter>