Get a specific quantile of pitch values without R6 wrapper overhead. Useful for VUV analysis workflows where you need Q1, Q3 for adaptive pitch range.
Usage
get_pitch_quantile_direct(
pitch,
quantile,
from_time = 0,
to_time = 0,
unit = c("hertz", "semitones", "mel", "erb", "loghertz")
)See also
get_pitch_quantiles_batch for getting multiple
quantiles at once
Examples
sound <- Sound$create_tone(frequency = 150, duration = 0.5, sampling_rate =
16000)
pitch_ptr <- to_pitch_cc_direct(sound)
q1 <- get_pitch_quantile_direct(pitch_ptr, 0.25)
q3 <- get_pitch_quantile_direct(pitch_ptr, 0.75)