Add app info and instrument controls
This commit is contained in:
1 parent
e23825cdb1
commit
9d8f277971
38 files changed
+4001
-257
No files matched your search
@@ -0,0 +1,31 @@
|
||||
import { BeatLoopPanel } from '../components/BeatLoopPanel';
|
||||
import { BeatTemplateSelector } from '../components/BeatTemplateSelector';
|
||||
import type { BeatStudio } from '../hooks/useBeatStudio';
|
||||
|
||||
interface StudioViewProps {
|
||||
studio: BeatStudio;
|
||||
}
|
||||
|
||||
export function StudioView({ studio }: StudioViewProps) {
|
||||
return (
|
||||
<main id="studio" className="studio">
|
||||
<div className="studio-heading">
|
||||
<h1>Build a beat.</h1>
|
||||
<p className="template-prompt">Choose a dance template</p>
|
||||
<BeatTemplateSelector onSelectTemplate={studio.applyTemplate} />
|
||||
<p
|
||||
className={`intro-copy${studio.sequencer.beats.length > 0 ? ' is-hidden' : ''}`}
|
||||
aria-hidden={studio.sequencer.beats.length > 0}
|
||||
>
|
||||
Add a sound, then move it around the loop.
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<BeatLoopPanel sequencer={studio.sequencer} soundPalette={studio.soundPalette} />
|
||||
|
||||
{studio.sequencer.audioError && (
|
||||
<p className="audio-error" role="alert">{studio.sequencer.audioError}</p>
|
||||
)}
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user