Datasets:
Upload GETTING-STARTED.md with huggingface_hub
Browse files- GETTING-STARTED.md +91 -0
GETTING-STARTED.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# retro-sync — Getting Started
|
| 2 |
+
|
| 3 |
+
## What is this?
|
| 4 |
+
|
| 5 |
+
A music publishing platform that encodes public domain music into steganographic NFT tiles.
|
| 6 |
+
Browse the catalog, play MIDIs decoded from PNG images, register works with collection societies.
|
| 7 |
+
|
| 8 |
+
## Quick Start (5 minutes)
|
| 9 |
+
|
| 10 |
+
### 1. Browse the catalog
|
| 11 |
+
Visit: https://solana.solfunmeme.com/retro-sync/menu.html
|
| 12 |
+
|
| 13 |
+
### 2. Play music from tiles
|
| 14 |
+
Click any collection → tiles load → click "🎵 Reconstruct" → play individual tracks
|
| 15 |
+
|
| 16 |
+
### 3. Add a new collection
|
| 17 |
+
```bash
|
| 18 |
+
git clone https://github.com/meta-introspector/retro-sync
|
| 19 |
+
cd retro-sync
|
| 20 |
+
nix develop
|
| 21 |
+
|
| 22 |
+
# Search for any composer in the MIDI dataset
|
| 23 |
+
bash scripts/onboard.sh "chopin nocturne" -n 15
|
| 24 |
+
|
| 25 |
+
# Build stego tiles (needs pypng)
|
| 26 |
+
nix-shell -p python3Packages.pypng imagemagick --run \
|
| 27 |
+
"bash scripts/stego-build.sh projects/chopin-nocturne"
|
| 28 |
+
|
| 29 |
+
# Generate catalog entry
|
| 30 |
+
python3 scripts/catalog-gen.py
|
| 31 |
+
python3 scripts/artist-ids.py
|
| 32 |
+
|
| 33 |
+
# Export CWR for collection societies
|
| 34 |
+
python3 scripts/export-cwr.py
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
### 4. Deploy
|
| 38 |
+
```bash
|
| 39 |
+
# To local web server
|
| 40 |
+
bash scripts/deploy-space.sh projects/chopin-nocturne
|
| 41 |
+
|
| 42 |
+
# To HuggingFace
|
| 43 |
+
bash scripts/publish-catalog.sh
|
| 44 |
+
```
|
| 45 |
+
|
| 46 |
+
## Architecture
|
| 47 |
+
|
| 48 |
+
```
|
| 49 |
+
MIDI files
|
| 50 |
+
→ onboard.sh (search + project setup)
|
| 51 |
+
→ midi2svg.sh (lilypond sheet music SVGs)
|
| 52 |
+
→ stego-build.sh (embed MIDIs in PNG tiles)
|
| 53 |
+
→ catalog-gen.py (WorkRegistration JSON)
|
| 54 |
+
→ artist-ids.py (Wikidata QID → RS-ID + ISNI)
|
| 55 |
+
→ export-cwr.py (CWR 2.2 for societies)
|
| 56 |
+
→ publish-catalog.sh (HuggingFace)
|
| 57 |
+
```
|
| 58 |
+
|
| 59 |
+
## URLs
|
| 60 |
+
|
| 61 |
+
| What | URL |
|
| 62 |
+
|------|-----|
|
| 63 |
+
| Catalog menu | /retro-sync/menu.html |
|
| 64 |
+
| Bach Inventions | /retro-sync/bach-invention/ |
|
| 65 |
+
| Bartók | /retro-sync/bartok/ |
|
| 66 |
+
| Catalog JSON | /retro-sync/catalog/works.json |
|
| 67 |
+
| Artists JSON | /retro-sync/catalog/artists.json |
|
| 68 |
+
| CWR export | /retro-sync/catalog/retro-sync.cwr |
|
| 69 |
+
| HF Space | https://huggingface.co/spaces/introspector/retro-sync |
|
| 70 |
+
|
| 71 |
+
## API (when backend is running)
|
| 72 |
+
|
| 73 |
+
| Endpoint | What |
|
| 74 |
+
|----------|------|
|
| 75 |
+
| POST /api/register | Register a work |
|
| 76 |
+
| POST /api/upload | Upload a track |
|
| 77 |
+
| GET /api/societies | List collection societies |
|
| 78 |
+
| POST /api/gateway/ern/push | DDEX ERN push |
|
| 79 |
+
| GET /api/manifest/:id | NFT manifest lookup |
|
| 80 |
+
| POST /api/manifest/mint | Mint NFT |
|
| 81 |
+
|
| 82 |
+
## File Formats
|
| 83 |
+
|
| 84 |
+
| File | Format | What |
|
| 85 |
+
|------|--------|------|
|
| 86 |
+
| project.toml | TOML | Project config (title, sources, segments) |
|
| 87 |
+
| works.json | JSON | WorkRegistration catalog (API-compatible) |
|
| 88 |
+
| artists.json | JSON | Artist IDs (RS-ID, QID, ISNI, VIAF) |
|
| 89 |
+
| retro-sync.cwr | CWR 2.2 | Society submission file |
|
| 90 |
+
| *.png | PNG+stego | 512×512 tiles with NFT7 payload |
|
| 91 |
+
| *.svg | SVG | Sheet music (lilypond rendered) |
|