Create Harmonicity from Sound Directly (returns XPtr)
Source:R/praat-direct.R
to_harmonicity_direct.RdCreate Harmonicity from Sound Directly (returns XPtr)
Usage
to_harmonicity_direct(
sound,
time_step = 0.01,
minimum_pitch = 75,
silence_threshold = 0.1,
periods_per_window = 1
)Examples
sound <- Sound$create_tone(frequency = 200, duration = 0.5)
hnr_ptr <- to_harmonicity_direct(sound)
hnr <- Harmonicity(.xptr = hnr_ptr)
hnr$get_mean(0, 0)
#> [1] 113.1902