static void menu_cb_getPitch (EDITOR_ARGS) { EDITOR_IAM (PitchEditor); if (my d_startSelection == my d_endSelection) { Melder_informationReal (Pitch_getValueAtTime ((Pitch) my data, my d_startSelection, kPitch_unit_HERTZ, 1), L"Hz"); } else { Melder_informationReal (Pitch_getMean ((Pitch) my data, my d_startSelection, my d_endSelection, kPitch_unit_HERTZ), L"Hz"); } }
static void menu_cb_getShimmer_dda (EDITOR_ARGS) { EDITOR_IAM (PointEditor); if (my d_startSelection == my d_endSelection) Melder_throw ("To measure shimmer, make a selection first."); Melder_informationReal (PointProcess_Sound_getShimmer_dda ((PointProcess) my data, my d_sound.data, my d_startSelection, my d_endSelection, 1e-4, 0.02, 1.3, 1.6), NULL); }
static void menu_cb_getJitter_ddp (EDITOR_ARGS) { EDITOR_IAM (PointEditor); if (my d_startSelection == my d_endSelection) Melder_throw ("To measure jitter, make a selection first."); Melder_informationReal (PointProcess_getJitter_ddp ((PointProcess) my data, my d_startSelection, my d_endSelection, 1e-4, 0.02, 1.3), NULL); }
static void menu_cb_getShimmer_dda (PointEditor me, EDITOR_ARGS_DIRECT) { if (my startSelection == my endSelection) Melder_throw (U"To measure shimmer, make a selection first."); Melder_informationReal (PointProcess_Sound_getShimmer_dda ((PointProcess) my data, my d_sound.data, my startSelection, my endSelection, 1e-4, 0.02, 1.3, 1.6), nullptr); }
static void menu_cb_getJitter_ddp (PointEditor me, EDITOR_ARGS_DIRECT) { if (my startSelection == my endSelection) Melder_throw (U"To measure jitter, make a selection first."); Melder_informationReal (PointProcess_getJitter_ddp ((PointProcess) my data, my startSelection, my endSelection, 1e-4, 0.02, 1.3), nullptr); }
static void menu_cb_getJitter_local_absolute (PointEditor me, EDITOR_ARGS_DIRECT) { if (my d_startSelection == my d_endSelection) Melder_throw (U"To measure jitter, make a selection first."); Melder_informationReal (PointProcess_getJitter_local_absolute ((PointProcess) my data, my d_startSelection, my d_endSelection, 1e-4, 0.02, 1.3), U"seconds"); }