Public · macOS

Oscine

A native macOS instrument stage and studio where eleven pure-DSP instruments perform fifty built-in pieces, render every note as light, and stay playable live mid-song.

GitHub ↗
  • swift
  • swiftui
  • dsp
  • python
Phosphor
live DSP instruments, 0 samples
11
pieces (30 classic, 20 original)
50
native offline bounce ceiling
96 kHz
  • Zero samples or SoundFonts: additive 88-key piano, Karplus-Strong guitar and bass, 12-piece drums, FM bells, supersaw pad, electric piano, strings, brass, drawbar organ, and harp all run as live Swift DSP.
  • The Phosphor mosaic stage replaces fixed cards with one hairline-split plane where active voices grow and idle ones collapse into strips.
  • Includes an FL-style piano roll (⌘E), live mouse/keyboard jamming mid-song, playlists, and a headless --render CLI.
  • All 50 built-in pieces are generated from committed Python scripts and verified by a validator for ranges, frets, and drum maps.

Live synthesis & Phosphor stage

Every note is computed in real time behind a shared reverb bus, safety limiter, 3.5 dB headroom, and load-aware voice stealing. Because nothing is pre-rendered, per-instrument solo/mute, faders, playback rate (0.5×–1.5×), and live jamming all flow through the exact same synth and lighting envelopes.

Instead of static cards, Phosphor splits one near-black surface with hairlines: active voices claim vertical space while quiet instruments fold into compact strips, colored by luminance tiers of one hue (Signal Teal, Ion Violet, or Ember Amber). Projects bounce natively to WAV, AIFF, ALAC, or AAC at up to 96 kHz, or headless via Oscine --render.

Code as composition

The 50-piece library pairs 30 public-domain works (Bach, Mozart, Beethoven, Chopin, Debussy, Satie, Joplin) with 20 original pieces generated as note-level JSON from Python scripts in scripts/songgen/ and checked by scripts/validate_songs.py. Oscine started as a test with claude-fable-5: building a native macOS audio studio and composing its repertoire in the same repo.