Expand description
The pitch layer of a monophonic line: glides between notes, pitch drops at the strike of a low note, and vibrato.
The glides and the vibrato read the f0 track; the drops read the sub-band line of the stem, because the track smears a drop that settles in tens of milliseconds. Every record carries its own confidence. A line that plays chords reports nothing, since no method here separates the voices.
Structs§
- DropFit
- A fitted drop.
- Drop
Skips - The low notes the drop search read no drop at, by the first gate that stopped each.
- Glide
Fit - A fitted glide.
- Pitch
Counts - How many candidates each search read.
- Pitch
Flags - Flags of the pitch layer.
- Pitch
Input - What the pitch layer reads.
- Pitch
Layer - The pitch layer of a stem.
- Rated
- A record with its confidence.
- SubBand
Line - The instantaneous frequency of the 20 to 200 Hz band of a segment, with the envelope of that band.
- Vibrato
Fit - A vibrato read from one span.
Enums§
- Drop
Miss - Why a fit does not count as a drop.
- Pitch
Error - The pitch layer failed.
Constants§
- ATTACK_
HIGH - The longest attack of a high-confidence drop.
- CURVE_
HIGH - The largest curve power of a high-confidence glide. A faster start
reads its rise less well: up to 11 % off at
p4.4 on the generated sets, within 7.1 % at 3 or less. - CURVE_
RANGE - The range of the curve power
p. - CYCLES_
HIGH - A vibrato over this many cycles or more reads at high confidence.
- DROP_
BAND_ GATE - A strike whose RMS in the band of the line, over the 20 ms after the
onset, lies more than this below the loudest
QUIET_FRAMEof that band in the stem is no candidate. - DROP_
CONVENTION - The convention of a drop, as
layers.jsonnames it. - DROP_
FIT_ START - The fit starts this long after the onset. The line of a tone switched on from silence overshoots by about 11 Hz at 3 ms and by 1 to 4 Hz at 7 ms, at 30 to 150 Hz, and settles within 1 Hz by 30 ms.
- DROP_
GLIDE_ DISTANCE - A glide from silence is a drop when its run starts this close to the onset of an accepted drop.
- DROP_
MAX - The largest drop that counts: three octaves. The line reads up to
200 Hz, so a larger fall starts far outside the band and its
dfis extrapolated from the tail alone. - DROP_
MAX_ RESIDUAL - The largest RMS residual of an accepted fit, as a share of the fall the fit span shows.
- DROP_
MIN - The smallest drop that counts.
- DROP_
NOTE_ LEAD - The note a drop settles on starts at most this long before the onset.
- DROP_
NOTE_ MATCH - A drop settles on a note whose pitch lies within this many cents of
f_end. - DROP_
ONSET_ SHARE - The onset of a strike: the first sample whose band envelope reaches this share of its peak.
- DROP_
RESIDUAL_ HIGH - A drop whose residual share stays below this reads at high confidence.
- DROP_
TAU_ MIN - The smallest
tauof a fit, about 3 ms. - EXTENT_
SHARE - The raw extent the f0 track reads, as a share of the true extent, by rate.
- FAST_
TAU - A drop with
tauunder this needs a strike ofSTRIKE_RISE. The swing of the line where a ringing tone restarts its phase fits a fast fall: a plain retriggered 808 read 32 semitones with atauof 4 ms. - GAP_
DIP_ DB - A gap of the track whose full-band RMS, over 10 ms, falls this far below the 20 ms before or after it is not bridged.
- GLIDE_
CONVENTION - The convention of a glide, as
layers.jsonnames it. - GLIDE_
SLOPE_ MIN - The slope above which the pitch moves, in cents per second: 0.861 semitone per second, the floor of a published portamento detector. Untuned.
- JITTER_
HIGH - The largest jitter of a high-confidence glide, in cents. A unison beats, and the track then wanders on the stable pitches.
- JITTER_
LOW - The jitter above which a glide reads at low confidence.
- KURTOSIS_
LOW - A vibrato whose contour has a kurtosis below this reads at low confidence: it jumps between two levels, as a trill does. The sines of the generated set read 1.36 to 1.66, a semitone trill 1.06.
- LINE_
CONVENTION - The convention of the line, as
layers.jsonnames it. - NOTE_
FRAMES_ LOW - The layer reads at low confidence below this share of note frames.
- NOTE_
FRAME_ MATCH - A voiced frame belongs to a sounding note within this many cents.
- NOTE_
LINE_ EDGE - The low-pass of the note line, as a multiple of the note’s pitch.
- NOTE_
LINE_ LOSS - A fit on the note line counts when the note line keeps the fall: its RMS envelope over the fall lies at most this far below the band’s.
- ONSET_
SMOOTHING - The centred average of the band envelope that the onset search reads.
- RESIDUAL_
HIGH - A glide whose fit residual stays at or below this many cents, whose
stable pitches jitter at most
JITTER_HIGHand whose motion lastsSPAN_HIGHor more reads at high confidence. - RISE_
PERIODS - The span, in periods of the note, of the band envelope average that tells a strike found again from a strike of its own.
- RUN_
START_ RISE - A sound starts where the full-band RMS rises by this factor, 20 dB: from silence, not from a dip of a beating unison.
- RUN_
TRIM - The vibrato search skips this much at each end of a steady span.
- SPAN_
HIGH - The shortest motion of a high-confidence glide.
- STRIKE_
ATTACK - A drop without a full-band rise needs an attack this short or shorter. Struck 808 notes read 9 to 13 ms; a unison falling into the band from above reads 190 ms.
- STRIKE_
LOOKAHEAD - The onset search ends this long after the note onset.
- STRIKE_
LOOKBACK - The onset search of a strike starts at most this long before the note onset, because the transcriber places the onset of a falling note late.
- STRIKE_
RISE - A strike raises the full-band RMS by this factor, 6 dB. The glide search reads it as a new note, and a drop that is fast or starts at the top of the band needs it.
- VIBRATO_
CONVENTION - The convention of a vibrato, as
layers.jsonnames it. - VIBRATO_
LOW_ PITCH - A vibrato on a pitch below this reads at low confidence.
- VIBRATO_
SPAN_ MIN - The shortest voiced span the search reads.
- WEAK_
FROM - The harmonic check of a strike reads the bands from this long after the onset.
- WEAK_
RATIO - A fundamental is weak when the band around twice the pitch exceeds the band around the pitch by this factor, 6 dB.
Functions§
- band_
onset - The onset of a strike inside
from..to, from the band envelope. - fit_
drop - Fits the drop model to the line from
onseton, up toendat most.Nonewhen fewer than three line values fall inside the fit span. - fit_
vibrato - Fits a vibrato to voiced frames
(time, f0)in time order.Nonewhen the frames span less thanVIBRATO_SPAN_MIN, hold no motion, or are too few for the line and the sine together.