Create Pitch from Sound Directly (returns XPtr) - Basic Parameters
Source:R/praat-direct.R
to_pitch_direct.RdCreate Pitch analysis directly, returning raw external pointer. This is a simplified version with basic parameters only.
**NOTE:** For full control over voicing parameters (silence_threshold, voicing_threshold, etc.), use `to_pitch_ac_direct()` or `to_pitch_cc_direct()` instead.
See also
to_pitch_ac_direct, to_pitch_cc_direct
for full parameter control
Examples
sound <- Sound$create_tone(frequency = 200, duration = 0.5)
# Returns raw pointer (basic parameters)
pitch_ptr <- to_pitch_direct(sound)
# Use with other direct query functions
stats <- get_pitch_stats_direct(pitch_ptr)