diff --git a/playground/README.md b/playground/README.md new file mode 100644 index 00000000..d66ec22f --- /dev/null +++ b/playground/README.md @@ -0,0 +1,80 @@ +# Sovereign Sound Playground + +Interactive audio-visual experience — no servers, no dependencies, pure browser. + +## Apps + +### Playground v3 (Full Instrument) +`playground.html` — The complete experience: +- Visual piano keyboard (2 octaves) +- 6 visualization modes: Waveform, Particles, Bars, Spiral, Gravity Well, Strobe +- 5 color palettes: Cosmic, Sunset, Ocean, Forest, Neon +- Ambient beat with chord progressions +- Mouse/touch playback on visualizer +- Chord detection +- Recording to WAV +- Export as PNG + +### Synesthesia +`synesthesia.html` — Paint with sound: +- Click and drag to create colors and shapes +- Each position generates a unique tone +- Particles respond to your movement +- Touch supported + +### Ambient +`ambient.html` — Evolving soundscape: +- Automatic chord progressions +- Floating orbs respond to audio +- Reverb-drenched textures +- Click to enter, let it wash over you + +### Interactive +`interactive.html` — 26 key-shape mappings: +- Press A-Z to play notes +- Each key has a unique shape and color +- Shapes animate and fade +- Visual keyboard at bottom +- Touch supported + +### Visualizer +`visualizer.html` — WAV frequency visualization: +- Load any audio file +- 4 modes: Spectrum, Waveform, Spectrogram, Circular +- Drag and drop support +- Real-time frequency analysis + +## Features + +- Zero dependencies — just open in a browser +- Local-first — no network requests +- Touch support on all apps +- Keyboard support +- Recording and export +- Multiple visualization modes +- Color palettes + +## Usage + +Open any HTML file in a browser. That's it. + +```bash +# Quick start +open playground/playground.html + +# Or serve locally +python3 -m http.server 8080 --directory playground +``` + +## Keyboard Shortcuts (Playground v3) + +- A-; (lower row): Play piano notes +- Mouse drag on visualizer: Create sound +- Click piano keys: Play notes + +## Technical + +- Web Audio API for sound generation +- Canvas 2D for visualization +- MediaRecorder for recording +- No build step, no framework diff --git a/playground/ambient.html b/playground/ambient.html new file mode 100644 index 00000000..a621f88f --- /dev/null +++ b/playground/ambient.html @@ -0,0 +1,243 @@ + + + + + + Ambient — Evolving Soundscape + + + +
Ambient
+ +
+ +
+ + + diff --git a/playground/interactive.html b/playground/interactive.html new file mode 100644 index 00000000..114a9395 --- /dev/null +++ b/playground/interactive.html @@ -0,0 +1,294 @@ + + + + + + Interactive — 26 Key Shapes + + + +
Interactive
+
Press A-Z to play
+ + + + diff --git a/playground/playground.html b/playground/playground.html new file mode 100644 index 00000000..643ccab2 --- /dev/null +++ b/playground/playground.html @@ -0,0 +1,1216 @@ + + + + + + Sovereign Sound Playground + + + +
+
+ + +
+ + + + + +
+ +
+
+ + +
+ +
+ + +
+ +
+ + + +
+
+ +
Waveform
+ +
+

Sovereign Sound Playground

+

Play notes on the piano below, or click/drag on the visualizer to create sound. Use the mode selector to change visualization styles.

+

Touch supported • MIDI coming soon

+
+ +
+
+ +
+ +
+
+ +
+ + + + diff --git a/playground/synesthesia.html b/playground/synesthesia.html new file mode 100644 index 00000000..a8abb87f --- /dev/null +++ b/playground/synesthesia.html @@ -0,0 +1,198 @@ + + + + + + Synesthesia — Paint with Sound + + + +
Synesthesia
+ + + + diff --git a/playground/visualizer.html b/playground/visualizer.html new file mode 100644 index 00000000..b62abc53 --- /dev/null +++ b/playground/visualizer.html @@ -0,0 +1,371 @@ + + + + + + Visualizer — WAV Frequency + + + +
Visualizer
+
+ Drop WAV file here or use controls +
+ +
+ + + + + +
+ + +