praat-parselmouth developer on retainer: sound.to_pitch(pitch_ceiling=600) marks soprano notes D5–C6 as unvoiced — 44% of voiced frames excluded — vibrato extent 28 cents reported vs 61 cents actual — paper rejected — 14 months — parselmouth developer on monthly retainer

praat-parselmouth 0.4.3 • Python 3.10; sound.to_pitch(pitch_floor=75, pitch_ceiling=600); Praat speech default; soprano E5 (659 Hz) and above → NaN; 44% of voiced frames excluded; vibrato extent 28 cents (reported) vs 61 cents (actual); vibrato rate 5.2 Hz vs 5.6 Hz; fix: pitch_ceiling=1500 for soprano; voiced fraction 56.4%→94.8% • Northfield Parselmouth Ltd. (1,440 soprano recordings; ISMIR paper rejected; 14 months; 1.5h)

Northfield Parselmouth Ltd. is a music information retrieval research group at a UK university studying vibrato characteristics in professional soprano singing. The corpus was 1,440 studio recordings: 120 professional sopranos, each performing 12 operatic arias, totalling 68.4 hours of audio at 44.1 kHz, 24-bit WAV. The research goal was to characterise vibrato rate (the speed of F0 modulation in Hz) and vibrato extent (the peak-to-peak amplitude of F0 modulation in cents) across different voice types, registers, and repertoire periods. The developer extracted the fundamental frequency using sound.to_pitch(time_step=0.01, pitch_floor=75.0, pitch_ceiling=600.0) for all 1,440 recordings. These are the default parameters from Praat’s documentation — calibrated for adult speech. Professional soprano range in operatic repertoire spans D3 to C6 (147 Hz to 1047 Hz). With pitch_ceiling=600: every analysis frame where the singer’s actual F0 exceeds 600 Hz is classified as unvoiced, and pitch.to_array() returns NaN for that frame. The first soprano note above the ceiling is E5 (659 Hz). The E5 boundary sits at the boundary of the most demanding passages in the soprano repertoire — the entire upper register of classical soprano, from E5 to C6, is above 600 Hz. In the Northfield corpus, 43.6% of all voiced frames had actual F0 values above 600 Hz. The measured voiced fraction was 56.4% (should be approximately 94% for clean studio soprano recordings with no silences). The developer did not check voiced fraction before proceeding to vibrato analysis — a silent quality metric that would have immediately flagged the problem.

Vibrato in professional singing is a quasi-periodic modulation of the fundamental frequency at approximately 5–7 Hz. Its two primary acoustic parameters are: vibrato rate (the frequency of modulation, in Hz) and vibrato extent (the peak-to-peak amplitude of the modulation, in cents — where 100 cents = one semitone). These parameters are register-dependent: in the lower chest/middle register (below E5), sopranos produce vibrato with relatively narrow extent (20–40 cents), driven primarily by laryngeal muscle activity. In the upper register (E5 and above, requiring increased sub-glottal pressure and cricothyroid activation), vibrato extent is substantially wider — 70–100 cents — because the laryngeal mechanics at high F0 favour larger modulation excursions. Vibrato rate is also marginally higher in the upper register (5.5–6.0 Hz) versus the lower register (5.0–5.5 Hz). The Northfield analysis excluded the entire upper register (43.6% of frames) due to the pitch ceiling. The vibrato measurements computed on the remaining lower-register frames were: mean vibrato rate 5.2 Hz; mean vibrato extent 28 cents. These are internally consistent values for the lower register in isolation — they are not nonsensical numbers, which is why the error was not caught by sanity checking the output alone. The correct values for the full soprano range: mean vibrato rate 5.6 Hz, mean vibrato extent 61 cents. The ISMIR 2025 submission reported 28 cents and 5.2 Hz. Reviewer 2 wrote: “The reported vibrato extent of 28 cents is notably inconsistent with established literature (Dromey et al. 2003 reported 50–90 cents for trained sopranos; Sundberg 1994 gives 50–60 cents as typical). The authors should check their pitch extraction parameters, particularly pitch_ceiling.” The paper was rejected. The issue had gone undetected for 14 months from corpus ingestion to rejection notice.

# Northfield Parselmouth Ltd. — praat-parselmouth 0.4.3 pitch_ceiling fix
# praat-parselmouth 0.4.3; Praat 6.3.08; Python 3.10; NumPy 1.24; SciPy 1.11
# Corpus: 1,440 soprano recordings (120 sopranos × 12 arias); 44.1 kHz, 24-bit WAV
# Task: vibrato rate and extent analysis across operatic repertoire
#
# Problem: pitch_ceiling=600 (Praat speech default) excludes soprano upper register
#          (E5 = 659 Hz and above = 43.6% of voiced frames → NaN → excluded)
#          vibrato extent 28 cents (lower register only) vs 61 cents (full range)
# Fix:     pitch_ceiling=1500 for soprano; validate voiced fraction > 90% before analysis

import numpy as np
import parselmouth
from scipy import signal as scipy_signal


PITCH_CEILING_BY_VOICE_TYPE = {
    'soprano': 1500,      # D3–C6, 147–1047 Hz; headroom to 1500
    'mezzo-soprano': 1200, # A2–A5, 110–880 Hz
    'tenor': 800,          # C3–C5, 131–523 Hz
    'baritone': 600,       # G2–G4, 98–392 Hz
    'bass': 500,           # E2–E4, 82–330 Hz
    'adult-female-speech': 600,
    'adult-male-speech': 500,
    'child-speech': 700,   # ages 4–12, 220–450 Hz typical
}


def extract_pitch(audio_path: str, voice_type: str = 'soprano',
                  time_step: float = 0.01) -> np.ndarray:
    """Extract F0 contour with voice-type-appropriate pitch ceiling."""
    pitch_ceiling = PITCH_CEILING_BY_VOICE_TYPE.get(voice_type, 600)
    sound = parselmouth.Sound(audio_path)
    pitch = sound.to_pitch(
        time_step=time_step,
        pitch_floor=50.0,
        pitch_ceiling=float(pitch_ceiling)
    )
    f0_array = pitch.to_array()   # shape: (n_frames,); NaN for unvoiced frames
    voiced_fraction = float(np.mean(~np.isnan(f0_array)))
    if voiced_fraction < 0.70:
        import warnings
        warnings.warn(
            f"{audio_path}: voiced fraction {voiced_fraction:.1%} < 70%. "
            f"Check pitch_ceiling ({pitch_ceiling} Hz) against voice type '{voice_type}'. "
            f"For clean studio singing, expected voiced fraction > 90% on sustained passages.",
            stacklevel=2
        )
    return f0_array


def compute_vibrato(f0_array: np.ndarray,
                    time_step: float = 0.01) -> dict:
    """Compute vibrato rate (Hz) and extent (cents) from F0 contour."""
    voiced = f0_array[~np.isnan(f0_array)]
    if len(voiced) < 100:
        return {'rate_hz': float('nan'), 'extent_cents': float('nan'), 'n_voiced': len(voiced)}

    # Convert F0 to semitones (log-linear scale) for uniform vibrato representation
    f0_semitones = 12 * np.log2(voiced / 440.0)

    # Bandpass filter: vibrato band is 4–8 Hz
    fs = 1.0 / time_step  # sample rate of pitch contour (100 Hz for time_step=0.01)
    b, a = scipy_signal.butter(N=4, Wn=[4.0, 8.0], btype='bandpass', fs=fs)
    vibrato_signal = scipy_signal.filtfilt(b, a, f0_semitones)

    # Vibrato extent: peak-to-peak amplitude of vibrato signal (in semitones × 100 = cents)
    extent_semitones = float(np.percentile(vibrato_signal, 95) - np.percentile(vibrato_signal, 5))
    extent_cents = extent_semitones * 100.0

    # Vibrato rate: dominant frequency of vibrato signal in [4, 8] Hz
    freqs, psd = scipy_signal.welch(vibrato_signal, fs=fs, nperseg=min(256, len(vibrato_signal)))
    vibrato_band = (freqs >= 4.0) & (freqs <= 8.0)
    rate_hz = float(freqs[vibrato_band][np.argmax(psd[vibrato_band])]) if vibrato_band.any() else float('nan')

    return {
        'rate_hz': rate_hz,
        'extent_cents': extent_cents,
        'n_voiced': len(voiced),
        'voiced_fraction': float(np.mean(~np.isnan(f0_array))),
    }


# BUGGY: pitch_ceiling=600 (Praat speech default) for soprano corpus
def analyse_corpus_buggy(paths: list[str]) -> list[dict]:
    results = []
    for path in paths:
        sound = parselmouth.Sound(path)
        pitch = sound.to_pitch(time_step=0.01, pitch_floor=75.0, pitch_ceiling=600.0)  # BUG
        f0 = pitch.to_array()
        results.append(compute_vibrato(f0))
    # mean vibrato extent: 28 cents (lower register only — upper register silently excluded)
    return results


# FIXED: pitch_ceiling=1500 for soprano; voiced fraction validation
def analyse_corpus_fixed(paths: list[str], voice_type: str = 'soprano') -> list[dict]:
    results = []
    for path in paths:
        f0 = extract_pitch(path, voice_type=voice_type, time_step=0.01)
        results.append(compute_vibrato(f0))
    # mean vibrato extent: 61 cents (full range including upper register)
    return results

Why the voiced fraction check catches pitch ceiling mismatches before analysis

The critical diagnostic: for clean studio soprano recordings with no silences and no background noise, the expected voiced fraction on any phonated vowel passage is above 90%. A voiced fraction of 56.4% is not plausible for studio-quality singing — it indicates that the pitch extraction algorithm is failing to find a pitch candidate in a large fraction of frames. The two most common causes are: pitch_ceiling set below the singer’s actual F0 (ceiling too low), and pitch_floor set above the singer’s actual F0 (floor too high, rare in soprano). Computing the voiced fraction before proceeding to downstream analysis is a one-line check: np.mean(~np.isnan(pitch.to_array())). At Northfield, this would have returned 56.4% at analysis initialisation — 14 months before the rejection. A voiced fraction below 70% should raise a warning and trigger parameter review. The extract_pitch() function above encapsulates this check: it warns whenever voiced fraction is below 70% and directs the developer to review pitch_ceiling against the actual voice type. The fix requires knowing the voice type of the corpus — information that is always available in a singing voice study. The PITCH_CEILING_BY_VOICE_TYPE lookup encodes the standard Praat recommendations for each voice category and can be extended for edge cases (coloratura soprano: 1600, countertenor: 900).

Northfield Parselmouth Ltd.’s retainer engagement was 1.5h: 0.5h triage (review pitch extraction code; compute voiced fraction on 5 random recordings with pitch_ceiling=600 → 54–58%; compute voiced fraction with pitch_ceiling=2000 → 93–96%; compute F0 histogram on 5 recordings: 43.6% of voiced frames above 600 Hz; root cause confirmed: pitch_ceiling=600 is the Praat speech default, inadequate for soprano); 0.25h root cause (derive correct ceiling: soprano to C6 = 1047 Hz, ceiling = 1047 × 1.2 = 1256 → use pitch_ceiling=1500 for safety margin; test on 10 recordings: voiced fraction 93.8–96.1%, consistent with clean studio recordings; recompute vibrato: rate 5.6 Hz, extent 61 cents — consistent with Dromey 2003); 0.75h fix (update analysis script with PITCH_CEILING_BY_VOICE_TYPE lookup and voiced fraction validation; reanalyse all 1,440 recordings on 8-core machine in 14 minutes; compute corpus vibrato stats; validate against literature; prepare revised analysis section for paper resubmission; 1.5h total). Hours logged to HourTab with per-session breakdown.

Related retainer posts


Track retainer hours without a client portal

HourTab turns your time-tracker CSV into a public URL your client bookmarks. No login. No portal. CSV in, URL out.

See pricing →