From e20299c3941e093787dbc0f2300d19dbf66aac58 Mon Sep 17 00:00:00 2001 From: Rob van Son Date: Tue, 28 Oct 2014 14:47:25 +0100 Subject: [PATCH] Handling recording time --- MainPage.praat | 4 +++- sgc2.praat | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/MainPage.praat b/MainPage.praat index 2ceb96e..f80316c 100644 --- a/MainPage.praat +++ b/MainPage.praat @@ -239,7 +239,9 @@ endproc procedure processMainPageRecord .clickX .clickY .pressed$ call count_syllables - .recordingTime = recordingTime + ceiling((count_syllables.number - 2)/3) + if count_syllables.number > 2 + .recordingTime = recordingTime + ceiling((count_syllables.number - 2)/3) + endif call record_sound '.recordingTime' call recognizeTone diff --git a/sgc2.praat b/sgc2.praat index e61a83f..6f9167d 100644 --- a/sgc2.praat +++ b/sgc2.praat @@ -43,7 +43,7 @@ recordedSound$ = "" te.recordedSound = 0 te.recordedPitch = 0 samplingFrequency = 44100 -recordingTime = 4 +recordingTime = 2 # Pop-Up window colors sgc2.popUp_bordercolor$ = "{0.5,0.5,1}" -- 2.11.4.GIT