Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
cb5517e249 | ||
|
|
b46d251c9f | ||
|
|
ed0ef552eb | ||
|
|
25835f73d6 | ||
|
|
beed163d35 | ||
|
|
afbf445b0f | ||
|
|
fc81fee862 | ||
|
|
a55281b1aa | ||
|
|
b236d40053 | ||
|
|
ad518ad2a6 | ||
|
|
33626aaf55 | ||
|
|
7481fbf711 | ||
|
|
42735005b1 | ||
|
|
22606e7f79 | ||
|
|
a9d3331044 | ||
|
|
08e3e8f46d | ||
|
|
5c45ac845d | ||
|
|
3bb59d6021 | ||
|
|
aaed0f3548 | ||
|
|
dbbedf9ab3 | ||
|
|
ea98a547c1 | ||
|
|
091e940013 | ||
|
|
493a969ca8 | ||
|
|
3caf21794d |
No files matched your search
@@ -10,3 +10,4 @@ ios/App/Pods/
|
||||
ios/App/DerivedData/
|
||||
ios/App/*.xcworkspace/xcuserdata/
|
||||
ios/App/*.xcodeproj/xcuserdata/
|
||||
bug_image/*
|
||||
@@ -28,11 +28,13 @@ npm run dev
|
||||
|
||||
Open the local web address shown by Vite. Choose a dance template or add a sound, then press **Play**. Your browser may ask to allow audio.
|
||||
|
||||
To run the app on an Android phone with live reload, connect the phone with USB debugging enabled and put it on the same Wi-Fi network as your computer. Start Vite with `npm run dev`, then run `npm run dev:android` in a second terminal. Capacitor installs and opens the app on the phone; code changes reload while the dev server is running. Stop the native run with **Ctrl+C**.
|
||||
|
||||
## Mobile downloads
|
||||
|
||||
- [Android / e/OS debug APK](downloads/BeatHound-Android-eOS-1.0.0-debug.apk) — installable on Android API 24 or newer. The same APK is intended for compatible e/OS 4+ devices.
|
||||
- [Android / e/OS debug APK 0.1.2](downloads/BeatHound-Android-eOS-0.1.2-debug.apk) — installable on Android API 24 or newer and intended for compatible e/OS 4+ devices.
|
||||
|
||||
The Android file is a debug-signed build for testing. It is not a Google Play release package. No iOS app or download is currently supported because of financial constraints.
|
||||
The generated Android file is a debug-signed build for testing. It is not a Google Play release package. No iOS app or download is currently supported because of financial constraints.
|
||||
|
||||
## Build the Android prototype
|
||||
|
||||
@@ -42,7 +44,7 @@ The mobile prototype uses Capacitor for Android.
|
||||
npm run android:debug
|
||||
```
|
||||
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-1.0.0-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
The Android build needs JDK 21 and Android SDK Platform 36 / Build Tools 36.0.0. It writes the Gradle output and copies the APK to `downloads/BeatHound-Android-eOS-0.1.2-debug.apk`. iOS is currently unsupported for financial reasons; see the [native build guide](docs/native-builds.md).
|
||||
|
||||
## Project checks
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "com.ninosaurier.beathound"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 1
|
||||
versionName "1.0.0"
|
||||
versionCode 7
|
||||
versionName "0.1.2"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 6.4 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 9.6 KiB |
|
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 33 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 16 KiB |
@@ -1,4 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="ic_launcher_background">#24215E</color>
|
||||
<color name="ic_launcher_background">#FFFFFF</color>
|
||||
</resources>
|
||||
@@ -21,16 +21,16 @@ Gradle creates the debug APK here:
|
||||
android/app/build/outputs/apk/debug/app-debug.apk
|
||||
```
|
||||
|
||||
The checked-in file `downloads/BeatHound-Android-eOS-1.0.0-debug.apk` is debug-signed and linked from the root README. It is for direct testing and sideloading, not for Google Play publication. A release build should use a private signing key that is not stored in Git.
|
||||
After a successful build, `downloads/BeatHound-Android-eOS-0.1.2-debug.apk` is debug-signed and available for direct testing and sideloading, not for Google Play publication. A release build should use a private signing key that is not stored in Git.
|
||||
|
||||
`npm run android:debug` also copies each new debug build to that `downloads/` path.
|
||||
`npm run android:debug` also copies each new debug build to `downloads/BeatHound-Android-eOS-0.1.2-debug.apk`.
|
||||
|
||||
### Install with ADB
|
||||
|
||||
With USB debugging enabled on an Android or e/OS device, install the APK with:
|
||||
|
||||
```sh
|
||||
adb install downloads/BeatHound-Android-eOS-1.0.0-debug.apk
|
||||
adb install downloads/BeatHound-Android-eOS-0.1.2-debug.apk
|
||||
```
|
||||
|
||||
You can also transfer the APK to the device and open it. The device may ask you to allow installation from that file source.
|
||||
|
||||
@@ -86,6 +86,22 @@ npm run dev
|
||||
|
||||
Vite prints a local web address. Open that address in your browser. The dev server listens on all network interfaces, so it may also be reachable from another device on your local network.
|
||||
|
||||
### Run on an Android phone with live reload
|
||||
|
||||
Connect the Android phone to the computer with USB debugging enabled, and make sure both devices are on the same Wi-Fi network. In the project folder, start the Vite server in one terminal:
|
||||
|
||||
```sh
|
||||
npm run dev
|
||||
```
|
||||
|
||||
In a second terminal, install and launch the app on the connected phone:
|
||||
|
||||
```sh
|
||||
npm run dev:android
|
||||
```
|
||||
|
||||
The native app loads from the Vite server, so code changes appear without rebuilding the app. Keep both terminals running and press **Ctrl+C** in the second terminal to stop live reload.
|
||||
|
||||
### Checks and production build
|
||||
|
||||
```sh
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"name": "BeatHound",
|
||||
"integrations": {
|
||||
"capacitor": {}
|
||||
},
|
||||
"type": "react"
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "beat-hound",
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "beat-hound",
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.2",
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^8.6.2",
|
||||
"@capacitor/core": "^8.6.2",
|
||||
"@capacitor/android": "^8.6.3",
|
||||
"@capacitor/core": "8.6.3",
|
||||
"@capacitor/ios": "^8.6.2",
|
||||
"@ionic/react": "^8.7.6",
|
||||
"ionicons": "^7.4.0",
|
||||
@@ -17,7 +17,7 @@
|
||||
"react-dom": "^19.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@capacitor/cli": "^8.6.2",
|
||||
"@capacitor/cli": "8.6.3",
|
||||
"@eslint/js": "^9.35.0",
|
||||
"@types/react": "^19.1.10",
|
||||
"@types/react-dom": "^19.1.7",
|
||||
@@ -536,18 +536,18 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor/android": {
|
||||
"version": "8.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-8.6.2.tgz",
|
||||
"integrity": "sha512-dWXnXmOVTtxU91n5h11MzoQ7PAMjyzU1qguw0mBJZiwSuhGvLKTG/IlsQ75H8qeE0a1acV2f573x15wYvyzuVA==",
|
||||
"version": "8.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/android/-/android-8.6.3.tgz",
|
||||
"integrity": "sha512-hTRLGYBUr7UoFSvn+1dnTwgPV7q0FgcTAVA6Y2i0wYzEkq3vR3oSaIs6ERO8WiqeIAupbbL74iG3OwM7BA1bcQ==",
|
||||
"license": "MIT",
|
||||
"peerDependencies": {
|
||||
"@capacitor/core": "^8.6.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor/cli": {
|
||||
"version": "8.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.6.2.tgz",
|
||||
"integrity": "sha512-3HeNPX3cEWBSljJT0sJviZCxXRoToTLAufhUcIJh+JMj1xOhLFZpuj8oFRnJ0kNYAf7DIBHQDmilIXloK9+YYg==",
|
||||
"version": "8.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/cli/-/cli-8.6.3.tgz",
|
||||
"integrity": "sha512-HBZ5mb9CNv5TzEW+vjB3aWKi7JIZRb7ExxsVaH/OLd19qXlarWxc2vUXAKtM6Zl2LmTb/rX8hN1q1BvwO7gb7w==",
|
||||
"dev": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
@@ -592,9 +592,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@capacitor/core": {
|
||||
"version": "8.6.2",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.6.2.tgz",
|
||||
"integrity": "sha512-UEb9crRuqEAe2Iu2eGOEuQ8rLQxpwg7ZZIpl17UJoytEpnV1e4oXXW0K7yYS2NsCOGmJjyLeKjNlgG7tkAoX8g==",
|
||||
"version": "8.6.3",
|
||||
"resolved": "https://registry.npmjs.org/@capacitor/core/-/core-8.6.3.tgz",
|
||||
"integrity": "sha512-WJ/DM2OTriEED5sI4jUyJU0NL3QJ/YenS2+SepW/nghMA5ixFJhm8NqGWdqDYYg+eRtJkjD8PcXtIxy4zTP0PA==",
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
"tslib": "^2.1.0"
|
||||
|
||||
@@ -1,25 +1,26 @@
|
||||
{
|
||||
"name": "beat-hound",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"version": "0.1.2",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"dev": "vite --host 0.0.0.0",
|
||||
"dev": "vite --host 0.0.0.0 --port 5173 --strictPort",
|
||||
"dev:android": "cap run android --live-reload --port 5173",
|
||||
"build": "tsc --noEmit && vite build",
|
||||
"build:mobile": "tsc --noEmit && vite build --base=./",
|
||||
"docs:dev": "vitepress dev docs --host 0.0.0.0",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:preview": "vitepress preview docs --host 0.0.0.0",
|
||||
"cap:sync": "npm run build:mobile && cap sync",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-1.0.0-debug.apk",
|
||||
"android:debug": "npm run build:mobile && cap sync android && cd android && ./gradlew assembleDebug && cd .. && mkdir -p downloads && cp android/app/build/outputs/apk/debug/app-debug.apk downloads/BeatHound-Android-eOS-0.1.2-debug.apk",
|
||||
"ios:sync": "npm run build:mobile && cap sync ios",
|
||||
"ios:open": "cap open ios",
|
||||
"test": "vitest run",
|
||||
"lint": "eslint ."
|
||||
},
|
||||
"dependencies": {
|
||||
"@capacitor/android": "^8.6.2",
|
||||
"@capacitor/core": "^8.6.2",
|
||||
"@capacitor/android": "^8.6.3",
|
||||
"@capacitor/core": "8.6.3",
|
||||
"@capacitor/ios": "^8.6.2",
|
||||
"@ionic/react": "^8.7.6",
|
||||
"ionicons": "^7.4.0",
|
||||
@@ -27,7 +28,7 @@
|
||||
"react-dom": "^19.1.1"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@capacitor/cli": "^8.6.2",
|
||||
"@capacitor/cli": "8.6.3",
|
||||
"@eslint/js": "^9.35.0",
|
||||
"@types/react": "^19.1.10",
|
||||
"@types/react-dom": "^19.1.7",
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { useRef } from 'react';
|
||||
import { IonButton, IonIcon, IonPopover } from '@ionic/react';
|
||||
import { ellipsisVertical } from 'ionicons/icons';
|
||||
import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
|
||||
@@ -10,11 +9,9 @@ interface AppHeaderProps {
|
||||
}
|
||||
|
||||
export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
const popoverRef = useRef<HTMLIonPopoverElement>(null);
|
||||
const popover = usePopoverDisclosure();
|
||||
|
||||
function selectView(view: AppView): void {
|
||||
void popoverRef.current?.dismiss();
|
||||
onNavigate(view);
|
||||
}
|
||||
|
||||
@@ -38,7 +35,7 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<div className="app-header-actions">
|
||||
<IonButton
|
||||
id="app-menu-trigger"
|
||||
id={popover.triggerId}
|
||||
className="app-menu-trigger"
|
||||
fill="clear"
|
||||
aria-label="Open app menu"
|
||||
@@ -51,11 +48,12 @@ export function AppHeader({ activeView, onNavigate }: AppHeaderProps) {
|
||||
|
||||
<IonPopover
|
||||
className="app-menu-popover"
|
||||
ref={popoverRef}
|
||||
trigger="app-menu-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="auto"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={popover.onDidDismiss}
|
||||
>
|
||||
|
||||
@@ -2,7 +2,6 @@ import { useMemo } from 'react';
|
||||
import { IonButton, IonIcon } from '@ionic/react';
|
||||
import { trash } from 'ionicons/icons';
|
||||
import { BeatSelectionHint } from './BeatSelectionHint';
|
||||
import { SampleLegend } from './CategoryLegend';
|
||||
import { CircularTimeline } from './CircularTimeline';
|
||||
import { PitchControl } from './PitchControl';
|
||||
import { SoundRingSelector } from './SoundRingSelector';
|
||||
@@ -104,11 +103,6 @@ export function BeatLoopPanel({ sequencer, soundPalette }: BeatLoopPanelProps) {
|
||||
onChangePitch={sequencer.changeBeatPitch}
|
||||
/>
|
||||
</section>
|
||||
|
||||
<SampleLegend
|
||||
soundIds={soundIdsInLoop}
|
||||
colorBySoundId={soundPalette.colorBySoundId}
|
||||
/>
|
||||
</>
|
||||
);
|
||||
}
|
||||
@@ -24,7 +24,7 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
return (
|
||||
<div className="beat-template-selector">
|
||||
<IonButton
|
||||
id="beat-template-trigger"
|
||||
id={popover.triggerId}
|
||||
className="beat-template-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Dance template: ${selectedTemplate?.label ?? 'Select a template'}`}
|
||||
@@ -39,8 +39,9 @@ export const BeatTemplateSelector = memo(function BeatTemplateSelector({
|
||||
|
||||
<IonPopover
|
||||
className="beat-template-popover"
|
||||
trigger="beat-template-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="center"
|
||||
dismissOnSelect
|
||||
|
||||
@@ -214,7 +214,7 @@ export function CircularTimeline({
|
||||
onFocus={() => onSelectBeat(beat.id)}
|
||||
>
|
||||
<circle cx={point.x} cy={point.y} r="19" className="sound-point-hit-area" />
|
||||
<circle cx={point.x} cy={point.y} r="10" className="sound-point-face" />
|
||||
<circle cx={point.x} cy={point.y} r="12" className="sound-point-face" />
|
||||
<text
|
||||
x={point.x}
|
||||
y={point.y}
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import type { CSSProperties } from 'react';
|
||||
import { useMemo, useRef, useState } from 'react';
|
||||
import {
|
||||
IonAccordion,
|
||||
IonAccordionGroup,
|
||||
IonButton,
|
||||
IonContent,
|
||||
IonIcon,
|
||||
IonItem,
|
||||
IonLabel,
|
||||
IonPopover,
|
||||
IonModal,
|
||||
IonSearchbar,
|
||||
} from '@ionic/react';
|
||||
import { add } from 'ionicons/icons';
|
||||
@@ -17,7 +17,8 @@ import {
|
||||
isInstrumentId,
|
||||
} from '../domain/instruments';
|
||||
import type { InstrumentId } from '../domain/instruments';
|
||||
import { usePopoverDisclosure } from '../hooks/usePopoverDisclosure';
|
||||
|
||||
const PICKER_SHEET_BREAKPOINTS = [0, 0.82, 1];
|
||||
|
||||
interface InstrumentSelectorProps {
|
||||
onSelectInstrument: (instrumentId: InstrumentId) => void;
|
||||
@@ -26,27 +27,8 @@ interface InstrumentSelectorProps {
|
||||
export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorProps) {
|
||||
const [searchQuery, setSearchQuery] = useState('');
|
||||
const [expandedCategoryIds, setExpandedCategoryIds] = useState<string[]>([]);
|
||||
const [viewportHeight, setViewportHeight] = useState(
|
||||
() => window.visualViewport?.height ?? window.innerHeight,
|
||||
);
|
||||
const popoverRef = useRef<HTMLIonPopoverElement>(null);
|
||||
const popover = usePopoverDisclosure();
|
||||
|
||||
useEffect(() => {
|
||||
const visualViewport = window.visualViewport;
|
||||
|
||||
function updateViewportHeight(): void {
|
||||
setViewportHeight(visualViewport?.height ?? window.innerHeight);
|
||||
}
|
||||
|
||||
window.addEventListener('resize', updateViewportHeight);
|
||||
visualViewport?.addEventListener('resize', updateViewportHeight);
|
||||
|
||||
return () => {
|
||||
window.removeEventListener('resize', updateViewportHeight);
|
||||
visualViewport?.removeEventListener('resize', updateViewportHeight);
|
||||
};
|
||||
}, []);
|
||||
const [isPickerOpen, setIsPickerOpen] = useState(false);
|
||||
const modalRef = useRef<HTMLIonModalElement>(null);
|
||||
|
||||
const filteredCategories = useMemo(() => {
|
||||
const query = searchQuery.trim().toLowerCase();
|
||||
@@ -100,8 +82,8 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
setExpandedCategoryIds(typeof value === 'string' ? [value] : []);
|
||||
}
|
||||
|
||||
function handlePopoverDidDismiss(): void {
|
||||
popover.onDidDismiss();
|
||||
function handlePickerDidDismiss(): void {
|
||||
setIsPickerOpen(false);
|
||||
setSearchQuery('');
|
||||
setExpandedCategoryIds([]);
|
||||
}
|
||||
@@ -109,7 +91,7 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
function addInstrument(value: unknown): void {
|
||||
if (!isInstrumentId(value)) return;
|
||||
|
||||
void popoverRef.current?.dismiss();
|
||||
void modalRef.current?.dismiss();
|
||||
onSelectInstrument(value);
|
||||
}
|
||||
|
||||
@@ -119,77 +101,79 @@ export function InstrumentSelector({ onSelectInstrument }: InstrumentSelectorPro
|
||||
id="instrument-add-trigger"
|
||||
className="instrument-add-button"
|
||||
fill="solid"
|
||||
onClick={() => setIsPickerOpen(true)}
|
||||
aria-label="Open samples"
|
||||
aria-haspopup="dialog"
|
||||
aria-expanded={popover.isOpen}
|
||||
aria-expanded={isPickerOpen}
|
||||
>
|
||||
<IonIcon icon={add} slot="start" />
|
||||
Samples
|
||||
</IonButton>
|
||||
|
||||
<IonPopover
|
||||
ref={popoverRef}
|
||||
className="instrument-picker-popover"
|
||||
style={{ '--picker-viewport-height': `${viewportHeight}px` } as CSSProperties}
|
||||
trigger="instrument-add-trigger"
|
||||
triggerAction="click"
|
||||
side="top"
|
||||
alignment="start"
|
||||
onDidPresent={popover.onDidPresent}
|
||||
onDidDismiss={handlePopoverDidDismiss}
|
||||
<IonModal
|
||||
ref={modalRef}
|
||||
className="instrument-picker-modal"
|
||||
isOpen={isPickerOpen}
|
||||
breakpoints={PICKER_SHEET_BREAKPOINTS}
|
||||
initialBreakpoint={1}
|
||||
expandToScroll={false}
|
||||
handle
|
||||
onDidDismiss={handlePickerDidDismiss}
|
||||
>
|
||||
<div className="instrument-picker-menu">
|
||||
<IonSearchbar
|
||||
className="instrument-picker-search"
|
||||
aria-label="Search samples"
|
||||
placeholder="Search samples"
|
||||
value={searchQuery}
|
||||
debounce={0}
|
||||
showClearButton="always"
|
||||
onIonInput={(event) => handleSearchInput(event.detail.value)}
|
||||
onIonClear={() => handleSearchInput('')}
|
||||
/>
|
||||
<IonContent className="instrument-picker-content" scrollY={false}>
|
||||
<div className="instrument-picker-menu">
|
||||
<IonSearchbar
|
||||
className="instrument-picker-search"
|
||||
aria-label="Search samples"
|
||||
placeholder="Search samples"
|
||||
value={searchQuery}
|
||||
debounce={0}
|
||||
showClearButton="always"
|
||||
onIonInput={(event) => handleSearchInput(event.detail.value)}
|
||||
onIonClear={() => handleSearchInput('')}
|
||||
/>
|
||||
|
||||
{filteredCategories.length > 0 ? (
|
||||
<IonAccordionGroup
|
||||
className="instrument-picker-accordion-group"
|
||||
multiple
|
||||
value={expandedCategoryIds}
|
||||
onIonChange={(event) => handleAccordionChange(event.detail.value)}
|
||||
>
|
||||
{filteredCategories.map(({ category, instruments }) => (
|
||||
<IonAccordion
|
||||
className="instrument-picker-category"
|
||||
key={category.id}
|
||||
value={category.id}
|
||||
>
|
||||
<IonItem className="instrument-category-header" slot="header" lines="none">
|
||||
<IonLabel>{category.label}</IonLabel>
|
||||
</IonItem>
|
||||
<div className="instrument-category-content" slot="content">
|
||||
{instruments.map((instrument) => (
|
||||
<IonButton
|
||||
className="instrument-picker-option"
|
||||
fill="solid"
|
||||
key={instrument.id}
|
||||
aria-label={`Add ${instrument.label}`}
|
||||
onClick={() => addInstrument(instrument.id)}
|
||||
>
|
||||
<span className="instrument-picker-option-copy">
|
||||
<span>{instrument.label}</span>
|
||||
<span>{instrument.description}</span>
|
||||
</span>
|
||||
</IonButton>
|
||||
))}
|
||||
</div>
|
||||
</IonAccordion>
|
||||
))}
|
||||
</IonAccordionGroup>
|
||||
) : (
|
||||
<p className="instrument-picker-empty" role="status">No matching samples.</p>
|
||||
)}
|
||||
</div>
|
||||
</IonPopover>
|
||||
{filteredCategories.length > 0 ? (
|
||||
<IonAccordionGroup
|
||||
className="instrument-picker-accordion-group"
|
||||
multiple
|
||||
value={expandedCategoryIds}
|
||||
onIonChange={(event) => handleAccordionChange(event.detail.value)}
|
||||
>
|
||||
{filteredCategories.map(({ category, instruments }) => (
|
||||
<IonAccordion
|
||||
className="instrument-picker-category"
|
||||
key={category.id}
|
||||
value={category.id}
|
||||
>
|
||||
<IonItem className="instrument-category-header" slot="header" lines="none">
|
||||
<IonLabel>{category.label}</IonLabel>
|
||||
</IonItem>
|
||||
<div className="instrument-category-content" slot="content">
|
||||
{instruments.map((instrument) => (
|
||||
<IonButton
|
||||
className="instrument-picker-option"
|
||||
fill="solid"
|
||||
key={instrument.id}
|
||||
aria-label={`Add ${instrument.label}`}
|
||||
onClick={() => addInstrument(instrument.id)}
|
||||
>
|
||||
<span className="instrument-picker-option-copy">
|
||||
<span>{instrument.label}</span>
|
||||
<span>{instrument.description}</span>
|
||||
</span>
|
||||
</IonButton>
|
||||
))}
|
||||
</div>
|
||||
</IonAccordion>
|
||||
))}
|
||||
</IonAccordionGroup>
|
||||
) : (
|
||||
<p className="instrument-picker-empty" role="status">No matching samples.</p>
|
||||
)}
|
||||
</div>
|
||||
</IonContent>
|
||||
</IonModal>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export function PitchControl({ selectedBeat, onChangePitch }: PitchControlProps)
|
||||
return (
|
||||
<div className="pitch-control">
|
||||
<div className="pitch-control-heading">
|
||||
<span>Pitch</span>
|
||||
<span>Pitch {selectedBeat.letter}</span>
|
||||
<output aria-live="polite">
|
||||
{getPitchLabel(pitchSemitones, instrument.pitchBaseMidi)}
|
||||
</output>
|
||||
|
||||
@@ -24,7 +24,7 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="sound-ring-selector-trigger"
|
||||
id={popover.triggerId}
|
||||
className="sound-ring-selector-trigger"
|
||||
fill="clear"
|
||||
disabled={soundIds.length === 0}
|
||||
@@ -46,8 +46,9 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
|
||||
<IonPopover
|
||||
className="sound-ring-popover"
|
||||
trigger="sound-ring-selector-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="end"
|
||||
dismissOnSelect
|
||||
@@ -63,7 +64,9 @@ export const SoundRingSelector = memo(function SoundRingSelector({
|
||||
className="sound-ring-option"
|
||||
fill={selected ? 'solid' : 'clear'}
|
||||
aria-pressed={selected}
|
||||
onClick={() => onSelectSound(soundId)}
|
||||
onClick={() => {
|
||||
onSelectSound(soundId);
|
||||
}}
|
||||
>
|
||||
<span className="sound-ring-option-content">
|
||||
<span
|
||||
|
||||
@@ -10,14 +10,19 @@ interface TempoControlProps {
|
||||
onTempoChange: (tempoBpm: number) => void;
|
||||
}
|
||||
|
||||
const TEMPO_TRACK_HEIGHT = 164;
|
||||
const TEMPO_THUMB_SIZE = 18;
|
||||
|
||||
export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange }: TempoControlProps) {
|
||||
const popover = usePopoverDisclosure();
|
||||
const tempoProgress = ((tempoBpm - MIN_TEMPO_BPM) / (MAX_TEMPO_BPM - MIN_TEMPO_BPM)) * 100;
|
||||
const tempoThumbCenter = TEMPO_THUMB_SIZE / 2
|
||||
+ ((100 - tempoProgress) / 100) * (TEMPO_TRACK_HEIGHT - TEMPO_THUMB_SIZE);
|
||||
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="main-tempo-control-trigger"
|
||||
id={popover.triggerId}
|
||||
className="tempo-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Change tempo, currently ${tempoBpm} BPM`}
|
||||
@@ -32,8 +37,9 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
|
||||
<IonPopover
|
||||
className="tempo-popover"
|
||||
trigger="main-tempo-control-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="top"
|
||||
alignment="start"
|
||||
onDidPresent={popover.onDidPresent}
|
||||
@@ -41,7 +47,13 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
>
|
||||
<div className="tempo-popover-content">
|
||||
<output className="tempo-value" aria-live="polite">{tempoBpm} BPM</output>
|
||||
<div className="tempo-range-track">
|
||||
<div
|
||||
className="tempo-range-track"
|
||||
style={{
|
||||
'--tempo-progress': `${tempoProgress}%`,
|
||||
'--tempo-thumb-center': `${tempoThumbCenter}px`,
|
||||
} as CSSProperties}
|
||||
>
|
||||
<input
|
||||
className="tempo-range"
|
||||
type="range"
|
||||
@@ -50,9 +62,9 @@ export const TempoControl = memo(function TempoControl({ tempoBpm, onTempoChange
|
||||
max={MAX_TEMPO_BPM}
|
||||
step={1}
|
||||
value={tempoBpm}
|
||||
style={{ '--tempo-progress': `${tempoProgress}%` } as CSSProperties}
|
||||
onChange={(event) => onTempoChange(event.currentTarget.valueAsNumber)}
|
||||
/>
|
||||
<span className="tempo-range-thumb" aria-hidden="true" />
|
||||
</div>
|
||||
</div>
|
||||
</IonPopover>
|
||||
|
||||
@@ -19,7 +19,7 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
return (
|
||||
<>
|
||||
<IonButton
|
||||
id="time-signature-trigger"
|
||||
id={popover.triggerId}
|
||||
className="meter-trigger"
|
||||
fill="solid"
|
||||
aria-label={`Change time signature, currently ${beatsPerBar}/4`}
|
||||
@@ -34,8 +34,9 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
|
||||
<IonPopover
|
||||
className="meter-popover"
|
||||
trigger="time-signature-trigger"
|
||||
triggerAction="click"
|
||||
trigger={popover.triggerId}
|
||||
reference="trigger"
|
||||
size="cover"
|
||||
side="bottom"
|
||||
alignment="start"
|
||||
dismissOnSelect
|
||||
@@ -49,7 +50,9 @@ export const TimeSignatureSelector = memo(function TimeSignatureSelector({
|
||||
className="meter-option"
|
||||
fill={option === beatsPerBar ? 'solid' : 'clear'}
|
||||
aria-pressed={option === beatsPerBar}
|
||||
onClick={() => onChange(option)}
|
||||
onClick={() => {
|
||||
onChange(option);
|
||||
}}
|
||||
>
|
||||
<span className="meter-option-content">{option}/4</span>
|
||||
</IonButton>
|
||||
|
||||
@@ -1,16 +1,17 @@
|
||||
import { useCallback, useState } from 'react';
|
||||
import { useCallback, useId, useState } from 'react';
|
||||
|
||||
export interface PopoverDisclosure {
|
||||
triggerId: string;
|
||||
isOpen: boolean;
|
||||
onDidPresent: () => void;
|
||||
onDidDismiss: () => void;
|
||||
}
|
||||
|
||||
export function usePopoverDisclosure(): PopoverDisclosure {
|
||||
const triggerId = useId();
|
||||
const [isOpen, setIsOpen] = useState(false);
|
||||
|
||||
const onDidPresent = useCallback(() => setIsOpen(true), []);
|
||||
const onDidDismiss = useCallback(() => setIsOpen(false), []);
|
||||
|
||||
return { isOpen, onDidPresent, onDidDismiss };
|
||||
return { triggerId, isOpen, onDidPresent, onDidDismiss };
|
||||
}
|
||||
@@ -347,6 +347,7 @@ ion-content.app-content-studio {
|
||||
--background-activated: #3b3944;
|
||||
--border-radius: 9px;
|
||||
--border-width: 0;
|
||||
width: min(230px, calc(100vw - 32px));
|
||||
height: 40px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
@@ -372,7 +373,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.beat-template-popover {
|
||||
--width: 230px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -441,16 +441,6 @@ ion-content.app-content-studio {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.intro-copy {
|
||||
margin: 7px 0 0;
|
||||
color: var(--muted);
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.intro-copy.is-hidden {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* Preset and instrument selectors */
|
||||
.orbit-card {
|
||||
overflow: hidden;
|
||||
@@ -471,6 +461,7 @@ ion-content.app-content-studio {
|
||||
--color: var(--muted);
|
||||
--border-radius: 7px;
|
||||
height: 30px;
|
||||
min-width: 160px;
|
||||
margin: 0;
|
||||
font-family: var(--mono);
|
||||
font-size: 8px;
|
||||
@@ -506,7 +497,6 @@ ion-content.app-content-studio {
|
||||
}
|
||||
|
||||
.sound-ring-popover {
|
||||
--width: 160px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
@@ -585,6 +575,8 @@ ion-content.app-content-studio {
|
||||
|
||||
.timeline-orbit-hit-area {
|
||||
cursor: pointer;
|
||||
outline: none;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
transition: r 720ms cubic-bezier(0.22, 1.15, 0.36, 1);
|
||||
}
|
||||
|
||||
@@ -605,7 +597,7 @@ ion-content.app-content-studio {
|
||||
|
||||
.timeline-tick text {
|
||||
fill: var(--muted);
|
||||
font: 9px var(--mono);
|
||||
font: 14px var(--mono);
|
||||
}
|
||||
|
||||
.timeline-playhead line {
|
||||
@@ -646,7 +638,7 @@ ion-content.app-content-studio {
|
||||
|
||||
.sound-point-letter {
|
||||
fill: var(--base);
|
||||
font: 700 9px var(--mono);
|
||||
font: 700 11px var(--mono);
|
||||
pointer-events: none;
|
||||
text-transform: lowercase;
|
||||
}
|
||||
@@ -723,8 +715,7 @@ ion-content.app-content-studio {
|
||||
font-size: 28px;
|
||||
}
|
||||
|
||||
.hint-swatch,
|
||||
.legend-swatch {
|
||||
.hint-swatch {
|
||||
flex: 0 0 auto;
|
||||
border-radius: 50%;
|
||||
}
|
||||
@@ -743,24 +734,6 @@ ion-content.app-content-studio {
|
||||
color: #7671a7;
|
||||
}
|
||||
|
||||
.sound-legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
gap: 8px 14px;
|
||||
padding-top: 17px;
|
||||
}
|
||||
|
||||
.legend-sample {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
color: var(--soft);
|
||||
font-size: 10px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.category-letter-badge {
|
||||
display: inline-flex;
|
||||
width: 17px;
|
||||
@@ -774,16 +747,6 @@ ion-content.app-content-studio {
|
||||
font: 600 9px var(--mono);
|
||||
}
|
||||
|
||||
.legend-swatch {
|
||||
width: 7px;
|
||||
height: 7px;
|
||||
}
|
||||
|
||||
.legend-empty {
|
||||
color: var(--soft);
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.audio-error {
|
||||
margin: 13px auto 0;
|
||||
color: #ffad8b;
|
||||
@@ -872,25 +835,25 @@ ion-content.app-content-studio {
|
||||
font-size: 19px;
|
||||
}
|
||||
|
||||
ion-popover.instrument-picker-popover {
|
||||
ion-modal.instrument-picker-modal {
|
||||
--width: min(420px, calc(100vw - 24px));
|
||||
--picker-menu-height: min(60vh, 420px);
|
||||
--picker-menu-height: min(
|
||||
60dvh,
|
||||
420px,
|
||||
max(120px, calc(var(--picker-viewport-height, 100vh) - 160px))
|
||||
);
|
||||
--max-height: var(--picker-menu-height);
|
||||
--height: min(620px, calc(100% - (var(--ion-modal-offset-top, 0px) + 10px)));
|
||||
--max-height: calc(100% - (var(--ion-modal-offset-top, 0px) + 10px));
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
|
||||
--border-radius: 18px 18px 0 0;
|
||||
--box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.45);
|
||||
}
|
||||
|
||||
ion-content.instrument-picker-content {
|
||||
--background: var(--surface);
|
||||
--overflow: hidden;
|
||||
}
|
||||
|
||||
.instrument-picker-menu {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: var(--picker-menu-height);
|
||||
max-height: var(--picker-menu-height);
|
||||
height: 100%;
|
||||
max-height: 100%;
|
||||
min-height: 0;
|
||||
box-sizing: border-box;
|
||||
flex-direction: column;
|
||||
@@ -1032,7 +995,7 @@ ion-popover.instrument-picker-popover {
|
||||
--bar-background-active: var(--accent);
|
||||
--bar-height: 3px;
|
||||
--height: 28px;
|
||||
--knob-background: var(--accent);
|
||||
--knob-background: #fff;
|
||||
--knob-size: 12px;
|
||||
--padding-top: 2px;
|
||||
--padding-bottom: 2px;
|
||||
@@ -1109,7 +1072,6 @@ ion-popover.instrument-picker-popover {
|
||||
|
||||
/* Popover contents */
|
||||
.tempo-popover {
|
||||
--width: var(--tempo-control-width);
|
||||
--height: 226px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
@@ -1137,6 +1099,24 @@ ion-popover.instrument-picker-popover {
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.tempo-range-track::before {
|
||||
position: absolute;
|
||||
top: 9px;
|
||||
bottom: 9px;
|
||||
left: 50%;
|
||||
width: 3px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
to top,
|
||||
var(--accent) 0%,
|
||||
var(--accent) var(--tempo-progress),
|
||||
#58537d var(--tempo-progress),
|
||||
#58537d 100%
|
||||
);
|
||||
content: '';
|
||||
transform: translateX(-50%);
|
||||
}
|
||||
|
||||
.tempo-range {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
@@ -1148,69 +1128,47 @@ ion-popover.instrument-picker-popover {
|
||||
border: 0;
|
||||
appearance: none;
|
||||
-webkit-appearance: none;
|
||||
z-index: 1;
|
||||
transform: translate(-50%, -50%) rotate(-90deg);
|
||||
background: transparent;
|
||||
cursor: ns-resize;
|
||||
opacity: 0;
|
||||
touch-action: none;
|
||||
}
|
||||
|
||||
.tempo-range::-webkit-slider-runnable-track {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
border-radius: 999px;
|
||||
background: linear-gradient(
|
||||
to right,
|
||||
var(--accent) 0%,
|
||||
var(--accent) var(--tempo-progress),
|
||||
#58537d var(--tempo-progress),
|
||||
#58537d 100%
|
||||
);
|
||||
}
|
||||
|
||||
.tempo-range::-webkit-slider-thumb {
|
||||
.tempo-range-thumb {
|
||||
position: absolute;
|
||||
top: var(--tempo-thumb-center);
|
||||
left: 50%;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
margin-top: -7.5px;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
-webkit-appearance: none;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-track {
|
||||
width: 100%;
|
||||
height: 3px;
|
||||
border-radius: 999px;
|
||||
background: #58537d;
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-progress {
|
||||
border-radius: 999px;
|
||||
background: var(--accent);
|
||||
}
|
||||
|
||||
.tempo-range::-moz-range-thumb {
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
border: 0;
|
||||
border-radius: 50%;
|
||||
background: var(--accent);
|
||||
box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.18);
|
||||
pointer-events: none;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.tempo-range:focus-visible {
|
||||
.tempo-range-track:focus-within .tempo-range-thumb {
|
||||
box-shadow: 0 0 0 2px var(--base), 0 0 0 4px var(--accent);
|
||||
}
|
||||
|
||||
.tempo-range-track:focus-within {
|
||||
outline: 2px solid var(--accent);
|
||||
outline-offset: 4px;
|
||||
}
|
||||
|
||||
.meter-popover {
|
||||
--width: 96px;
|
||||
--height: 224px;
|
||||
--height: 250px;
|
||||
--background: var(--surface);
|
||||
--backdrop-opacity: 0;
|
||||
--box-shadow: 0 10px 28px rgba(var(--primary-rgb), 0.2);
|
||||
}
|
||||
|
||||
.meter-popover::part(content) {
|
||||
overflow-y: hidden;
|
||||
}
|
||||
|
||||
.meter-popover-content {
|
||||
display: flex;
|
||||
width: 100%;
|
||||
@@ -1229,6 +1187,7 @@ ion-popover.instrument-picker-popover {
|
||||
--border-radius: 7px;
|
||||
width: 100%;
|
||||
height: 31px;
|
||||
min-height: 31px;
|
||||
flex: 0 0 31px;
|
||||
margin: 0;
|
||||
font-size: 11px;
|
||||
@@ -1250,7 +1209,7 @@ ion-popover.instrument-picker-popover {
|
||||
@media (max-width: 600px) {
|
||||
/* Compact layout */
|
||||
.app-shell {
|
||||
padding: 0 14px 26px;
|
||||
padding: max(1.5rem, env(safe-area-inset-top, 0px)) 14px 26px;
|
||||
}
|
||||
|
||||
.app-header {
|
||||
@@ -1327,10 +1286,6 @@ ion-popover.instrument-picker-popover {
|
||||
margin-top: 13px;
|
||||
}
|
||||
|
||||
.intro-copy {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
.orbit-card {
|
||||
padding: 17px 11px 14px;
|
||||
border-radius: 14px;
|
||||
@@ -1400,10 +1355,6 @@ ion-popover.instrument-picker-popover {
|
||||
margin-top: 8px;
|
||||
}
|
||||
|
||||
.intro-copy {
|
||||
margin-top: 4px;
|
||||
}
|
||||
|
||||
.orbit-card {
|
||||
padding: 12px 10px 9px;
|
||||
}
|
||||
@@ -1412,10 +1363,6 @@ ion-popover.instrument-picker-popover {
|
||||
width: min(100%, max(180px, calc(100dvh - 390px)));
|
||||
}
|
||||
|
||||
.sound-legend {
|
||||
gap: 6px 10px;
|
||||
padding-top: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 360px) {
|
||||
|
||||
@@ -13,12 +13,6 @@ export function StudioView({ studio }: StudioViewProps) {
|
||||
<h1>Sharpen your sense of rhythm</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
|
||||
|
||||