v0.67.2: the air horn is the classic rap horn
trav's recording from instantrapairhorn.com replaces the steady can. A click plays the whole blast untouched; held, it laps the steady stretch through a crossfade matched to the recording's own loudness; let go after a lap, it jumps straight to the recording's own ending.
This commit is contained in:
@@ -417,7 +417,7 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
|
||||
"Synced", until its own tempo fader moves; only one deck follows; the
|
||||
½×/1×/2× switch re-syncs a synced pair (`sync_ratio` folds any number of
|
||||
octaves). |◀ per deck. The air horn is a real recording
|
||||
(`sounds/airhorn.mp3`, CC0, see `sounds/CREDITS.md`; Round 98 below). The zoomed lanes ease out ×2
|
||||
(`sounds/airhorn.mp3`, see `sounds/CREDITS.md`; Round 99 below). The zoomed lanes ease out ×2
|
||||
while a deck is paused or held. The sink reopens when the system's
|
||||
default output changes (`output._Pump`: `audioOutputsChanged`, a device
|
||||
id check, an error check) — it used to go silent until DJ mode reopened.
|
||||
@@ -432,20 +432,20 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
|
||||
both waveforms. **Sync sets once** (trav's call): it puts this deck at the
|
||||
other's tempo and stays lit only while that holds (`_check_sync`: same
|
||||
song on the other deck, tempos still equal) — nothing follows anything.
|
||||
**The horn** (Round 98, the fourth go — the first three failed on the
|
||||
*recording*, not the code: "Air Horn Hype" is a two-note phrase whose
|
||||
pitch wanders 9 %, so any loop of it is a beat and any click a
|
||||
"bee-doop"). Now `sounds/airhorn.mp3` is guitarguy1985's steady can
|
||||
(359–361 Hz for 7 s, CC0). Held, it simply plays on and laps
|
||||
`Horn.LOOP` (1.0–7.3 s) through a 0.3 s equal-power crossfade baked into
|
||||
the sample; a press is a fresh blast from `ONSET` and cuts any still
|
||||
sounding in 25 ms; a release, after at least `MIN_BLAST` 0.5 s, fades
|
||||
over `RELEASE` 0.3 s while the read rate falls to `BEND` 0.94 — the
|
||||
"-ew" (a click ≈ 0.8 s). `render` works in pieces that stop at each
|
||||
state change. test_round98 holds it to numbers (pitch within 2 % for
|
||||
12 s held and after taps, no seam step bigger than the recording's own).
|
||||
**Before swapping the recording, measure its pitch track** — a steady
|
||||
sample is the whole design.
|
||||
**The horn** (Round 99, the fifth go — trav chose the sound: the
|
||||
classic rap horn from instantrapairhorn.com, `sounds/airhorn.mp3`). It is
|
||||
one blast: a swoop ~420 → 305 Hz in its first 0.35 s, then 302 Hz steady
|
||||
to 1.62 s, then its own short end. A click plays the whole recording
|
||||
untouched, as that page does. Held, it laps `Horn.LOOP` (0.729–1.450 s)
|
||||
through a 0.2 s crossfade baked into a copy (`_laps`); the steady part is
|
||||
beating reeds, not a repeating wave (seams correlate ~0.3 at best), so
|
||||
the crossfade is equal loudness *for the measured correlation*. Let go
|
||||
before a lap, it plays out; after one, it jumps (40 ms, matched to the
|
||||
nearest wave cycle) to the loop end, so the ending follows at once. A
|
||||
press cuts a blast still sounding in 25 ms. test_round99 holds it to the
|
||||
recording's own loudness range. **Before changing the recording, measure
|
||||
its pitch and loudness track** — Rounds 93–98 failed on the recording,
|
||||
not the code.
|
||||
**Loops** (Round 97, djay's Quantize behaviour): a loop starts on the
|
||||
*nearest* beat (it may be just behind — playback carries on inside it);
|
||||
under a beat, it snaps to its own grid; resizing keeps the start and
|
||||
|
||||
Reference in New Issue
Block a user