**DEPRECATED:** This S3 function is deprecated. Use the R6 interface instead:
sound$to_pitch(time_step, pitch_floor, pitch_ceiling)
Examples
# Old S3 approach (DEPRECATED, shown for reference)
sound <- Sound$create_tone(frequency = 150, duration = 0.5, sampling_rate =
16000)
pitch <- extract_pitch(sound, pitch_floor = 75, pitch_ceiling = 300)
#> Warning: extract_pitch() is deprecated and will be removed in v6.0.0. Use sound$to_pitch(time_step, pitch_floor, pitch_ceiling) instead.
# New R6 approach (RECOMMENDED)
pitch2 <- sound$to_pitch(pitch_floor = 75, pitch_ceiling = 300)
mean_f0 <- pitch2$get_mean()