Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed 'else' format syntax error #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
130 changes: 73 additions & 57 deletions myprosody/dataset/essen/MLTRNL.praat
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ minpause = 'minimum_pause_duration'
Read from file... 'soundin$'





# use object ID
soundname$ = selected$("Sound")
soundid = selected("Sound")
Expand Down Expand Up @@ -321,68 +324,81 @@ if int<2
vsa=vsa+1
elsif space>=3 and space<=12
vsa=vsa+1
else vsa=vsa+0
else
vsa=vsa+0
endif

f1uplim =(lnf2f1-13.17)/-0.012
f1lowlim =(lnf2f1-8.18)/-0.0148

if 1/ff<=0.176 and 1/ff>= 0.0744
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.227 and 1/ff>= 0.127
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.245 and 1/ff>=0.145
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.361 and 1/ff>= 0.261
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.605 and 1/ff>= 0.505
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.760 and 1/ff>= 0.660
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.733 and 1/ff>= 0.632
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.489 and 1/ff>= 0.388
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.414 and 1/ff>= 0.313
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.312 and 1/ff>= 0.211
vowel1=vowel1+1
else vowel1=vowel1+0
endif
if 1/ff<=0.569 and 1/ff>= 0.469
vowel1=vowel1+1
else vowel1=vowel1+0
endif
counter1=counter1+1

if lnf1>='f1lowlim' and lnf1<='f1uplim'
inside = 'inside'+1
else
outside = 'outside'+1
endif

vectorf# [k] = ff

fff = 'fff'+'f1uplim'
eee = 'eee'+'f1lowlim'
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.227 and 1/ff>= 0.127
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.245 and 1/ff>=0.145
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.361 and 1/ff>= 0.261
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.605 and 1/ff>= 0.505
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.760 and 1/ff>= 0.660
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.733 and 1/ff>= 0.632
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.489 and 1/ff>= 0.388
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.414 and 1/ff>= 0.313
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.312 and 1/ff>= 0.211
vowel1=vowel1+1
else
vowel1=vowel1+0
endif
if 1/ff<=0.569 and 1/ff>= 0.469
vowel1=vowel1+1
else
vowel1=vowel1+0
endif

counter1=counter1+1

if lnf1>='f1lowlim' and lnf1<='f1uplim'
inside = 'inside'+1
else
outside = 'outside'+1
endif

vectorf# [k] = ff

fff = 'fff'+'f1uplim'
eee = 'eee'+'f1lowlim'
ffff = 'fff'/'int'
eeee = 'eee'/'int'
pron =('inside'*100)/('inside'+'outside')
Expand Down Expand Up @@ -868,4 +884,4 @@ if int<2
endif
if int<2
appendInfoLine: 0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0,tab$,0, tab$,0
endif
endif