v0.67.1: the air horn is one continuous tone
The old recording was a two-note phrase that wobbled 9% in pitch, so no loop of it could hold a tone. A steady CC0 can (guitarguy1985, 359-361 Hz for 7 s) replaces it: held, it plays on and laps a long crossfade; a click is at least half a second; letting go bends the pitch down as it fades.
This commit is contained in:
@@ -417,8 +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`): a tap plays the
|
||||
phrase, holding loops its first blast. The zoomed lanes ease out ×2
|
||||
(`sounds/airhorn.mp3`, CC0, see `sounds/CREDITS.md`; Round 98 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.
|
||||
@@ -433,18 +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 97, the third go — measure before touching it): the
|
||||
recording's first blast wobbles in pitch and loudness on a ~0.15 s
|
||||
cycle, so a loop cut against that cycle *is* a repeating beat. Held, it
|
||||
loops exactly one cycle (`Horn.LOOP` 0.0779 s + 0.1494 s, the best
|
||||
self-similarity, corr 0.81), levelled (envelope divided out: min/max
|
||||
0.74 → 0.88) and crossfaded equal-power; a press is a fresh blast and
|
||||
cuts any still sounding in 25 ms (taps stay separate); a release, after
|
||||
at least `MIN_BLAST` 0.18 s, crossfades into the recording's own ending
|
||||
(`TAIL` 0.42–0.60 s: the pitch drop and fade) — a click is a 0.37 s BWAH
|
||||
that trails off. `render` works in pieces that stop at each state change,
|
||||
so a block's size never changes the sound. test_round97 holds all of it
|
||||
to numbers (no step bigger than the recording's own, held swing > 0.7).
|
||||
**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.
|
||||
**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