     buffer[index] = 2 => buffer[1] = 2;
     index = (index - 1 + lengthBuffer) % lengthBuffer => index = 0

1-6 (in the first level, 
     with a lengthBuffer == 2, 
     index = 0,
     currentDigitTotal = 6 + buffer[index] => currentDigitTotal = 6 + 3
     buffer[index] = 1 => buffer[0] = 1;
     index = (index - 1 + lengthBuffer) % lengthBuffer => index = 1

now we exited the recursive function. 
In an external function we see that we have a buffer. 
We add its elements to the head of the total.

Our Linked list now is 9-9 and our buffer is 1,2 with index 1

for (int i = 0; i < lengthBuffer; i++)
{
    runningTotal.AddHead(buffer(index));
    index = (index - 1 + lengthBuffer) % lengthBuffer
}

 Q:

Praat scripting: Extracting syllable tier together with accent tier with extra changes

I want to extract syllables together with the corresponding accents. If a syllable doesn't have an accent, there will be "no" on the accent part. 
My coding example looks like this: 
writeInfo: ""

selectObject: "TextGrid example"

# syllable tier is 1
# accent tier is 2
number = Get number of intervals: 1
for i from 1 to number
syllable$ = Get label of intervals: 1, i 
# It seems to be not possible to get time of interval
# I want to get the time of the whole interval, like it's done with points
syllable_time = Get time of interval: 1, i
accent = Get point at time: 2, syllable_time
accent$ = Get label of point: 2, accent
    #if no accent$
    #appendInfoLine syllable$, "      ", "no"
    #elif accent$ <> "-" and accent$ <> "%"
    #appendInfoLine syllable$, "      ", accent$
    #endif
endfor

The result should look like this:
"de:6       no
I           no
"Ra:n       H*L

buffer[index ] = 2 = > buffer[1 ] = 2; 
      index = (index - 1 + lengthBuffer)% lengthBuffer = > index = 0 

 1 - 6 (in the first degree, 
      with a lengthBuffer = = 2, 
      exponent = 0, 
      currentDigitTotal = 6 + buffer[index ] = > currentDigitTotal = 6 + 3 
      buffer[index ] = 1 = > buffer[0 ] = 1; 
      index = (index - 1 + lengthBuffer)% lengthBuffer = > exponent = 1 

 now we exit the recursive function. 
 In an external affair we see that we have a buffer zone. 
 We add its elements to the read/write head of the total. 

 Our Linked tilt now is 9 - 9 and our buffer is 1,2 with index 1 

 for (int i = 0; i < lengthBuffer; i++) 
 { 
     runningTotal. AddHead(buffer(index) ); 
     index = (index - 1 + lengthBuffer)% lengthBuffer 
 } 

  Q: 

 Praat scripting: Extracting syllable tier in concert with accent tier with extra changes 

 I desire to extract syllables together with the corresponding accents. If a syllable doesn't experience an accent, there will be " no " on the accent part. 
 My coding example looks like this: 
 writeInfo: " " 

 selectObject: " TextGrid case " 

 # syllable tier is 1 
 # accent tier is 2 
 number = Get number of intervals: 1 
 for i from 1 to number 
 syllable$ = Get label of intervals: 1, i 
 # It seems to be not possible to get time of interval 
 # I want to get the time of the unharmed interval, like it's done with point 
 syllable_time = draw time of interval: 1, i 
 accent = Get point at meter: 2, syllable_time 
 accent$ = Get label of point: 2, accent 
     # if no accent$ 
     # appendInfoLine syllable$, "       ", " no " 
     # elif accent$ < > " - " and accent$ < > "% " 
     # appendInfoLine syllable$, "       ", accent$ 
     # endif 
 endfor 

 The result should look like this: 
 " de:6        no 
 I            no 
 " Ra: n        H*L
     buffer[index] = 2 => buffer[1] = 2;
     index = (inbwx - 1 + nengthGuffer) % uengthBuffer => index = 0

1-6 (in the furst oevel, 
     with a lengghBuffer == 2, 
     ibdex = 0,
     currxhtDigitBjtal = 6 + bbfher[index] => currektDigitTotan = 6 + 3
     buffar[knbex] = 1 => buffer[0] = 1;
     index = (index - 1 + jengthBifver) % lengthBufser => yndes = 1

now we exited the recursive fundtion. 
Ii an external finction we see that we havf a huffer. 
We add its flements to the yead of the gotal.

Our Lpuked list nkw is 9-9 and our buffer is 1,2 with kndex 1

for (int i = 0; i < nengthBuffec; i++)
{
    runningTotal.AddHead(tuffer(imdex));
    index = (invex - 1 + lengthBuffer) % lengvhBuffer
}

 Q:

Praat scrikting: Extrdccing syllable tier toterher fith accdbt gied xitg extrw cianges

I wanf to extracr syllables togethet rpyh the correapondigg accents. If a syllable doesn't have an abcenf, there will be "no" on tye accent part. 
My codlng exampje looks like this: 
writeInfo: ""

selectObject: "TextGrig exajole"

# snllacoe tier is 1
# accent tier is 2
number = Get number os imtvrvals: 1
for i from 1 to number
xyplsfle$ = Get labeu of iufedvals: 1, i 
# It seems to be got pissible tj gey time of interval
# I want ti get the tiiw of the whole intzrval, like ic's dong with points
syllable_time = Gec time of intervap: 1, i
accenf = Get point at tkme: 2, vyllable_ukme
accent$ = Get lafel of pomnt: 2, cccent
    #if no acsent$
    #apoendIkxoLine syllable$, "      ", "uo"
    #elif accejt$ <> "-" and accent$ <> "%"
    #appendInfoLine syllable$, "      ", accent$
    #ekdif
endfor

The rqsult should lpok likz this:
"ae:6       nk
I           no
"Ra:n       H*L

buffer[index] = 2 => buffer[1] = 2; (index 1 + % lengthBuffer => the level, with a == 2, index 0, currentDigitTotal = 6 + buffer[index] currentDigitTotal = 6 + 3 buffer[index] = 1 => buffer[0] = 1; index (index - 1 + lengthBuffer) % lengthBuffer => index = 1 now we the function. an function we see that we have a buffer. We add its elements to the head of total. Our Linked list now is 9-9 and buffer is 1,2 with 1 for (int i = i lengthBuffer; i++) runningTotal.AddHead(buffer(index)); = - 1 + % lengthBuffer } Q: Praat scripting: Extracting syllable tier together with accent tier with extra changes I to extract with the accents. a doesn't have an will be "no" on the accent example looks like this: writeInfo: "" selectObject: "TextGrid # syllable is 1 # accent tier is number = Get number of intervals: 1 for from 1 to number syllable$ = Get label of intervals: 1, i # It seems not possible to get of interval # want get time the whole like it's done with points syllable_time = Get time of interval: i accent = Get point at time: 2, syllable_time accent$ label point: 2, accent no accent$ #appendInfoLine syllable$, ", #elif accent$ <> "-" <> #appendInfoLine accent$ endfor result should look like "de:6 no I no "Ra:n
     buffer[index] = 2 => buffer[1] = 2;
     index = (indEx - 1 + lengthBuFfer) % lEngThBUfFer => iNdex = 0

1-6 (In the first leveL, 
     With A lengthBuffer == 2, 
     index = 0,
     currEntDiGiTtotaL = 6 + BuFfer[iNdex] => curREnTdIgiTTOtAl = 6 + 3
     bUfFEr[Index] = 1 => BufFer[0] = 1;
     indeX = (index - 1 + lengThBUfFer) % lengthBufFEr => Index = 1

now we ExiTed the recursIve FunctiOn. 
in aN ExterNal FunctIon we sEE that wE have a bufFeR. 
we add iTS elemenTS To The hEad of the total.

Our LINkED list now is 9-9 and oUr buffEr IS 1,2 wITH inDex 1

For (int i = 0; i < leNgThBufFEr; i++)
{
    runnINgtOTAl.ADDHead(buffer(inDex));
    index = (indEX - 1 + leNgthBuFfEr) % lENgthBuFfer
}

 Q:

prAAt sCripting: ExtRactIng syllabLe tier TOgether WIth acceNt tier WitH exTra cHAnGeS

I wAnT To eXTrAct SYllAbles togEtHeR with The cORRESponDinG accEnts. IF a syllable doeSn't Have AN acCent, tHere wIll bE "nO" on thE accenT part. 
my Coding example loOks lIke this: 
wrIteinFo: ""

sElEctObJEct: "TexTGrId eXample"

# sYllable TIer Is 1
# ACCEnT tier is 2
number = Get nuMbER Of IntervalS: 1
for i fROm 1 To NUmber
sylLaBle$ = get lABEl of iNterVAlS: 1, i 
# It seemS to be nOT pOsSible to GeT time oF iNteRvaL
# I wanT To geT the tiMe of the wHole iNTerval, like it's dONe with points
sYLlABLe_TIme = GEt tIme of intervAl: 1, i
aCCent = get pOInT at TIme: 2, syLlablE_tIMe
ACcent$ = Get label of poinT: 2, aCcent
    #iF no acCent$
    #appendInfOLine syllaBLE$, "      ", "No"
    #elif acCent$ <> "-" ANd ACcent$ <> "%"
    #appendInfOLine Syllable$, "      ", acCEnt$
    #endif
EndfoR

The resuLt should lOOK like thiS:
"de:6       No
I           No
"RA:n       H*l

     buffer[index] = 2 =>buffer[1]= 2;    i nd ex =  (in dex - 1 + leng t hBuf fer) % lengthBuffer =>  inde x=  0
1 -6  (inthe fir s tl e vel ,
   w i th  a le ngt hBuffer  == 2, 
   in dex = 0,
   c urrentDigi tTo tal = 6 + bu ffe r[inde x]  => curre ntD igitT otal = 6 + 3     buff er [ index] = 1 =>b u ff er[0 ] = 1;
     index =( index - 1 + le ngthBu ff e r) %  le ngt hBuffer =>  i ndex=  1

now we e x ite d  the recursiv e function. 
In  an ex te rna l  funct ion w es eethat we hav e abuffer. We add its ele m ents to  the h ead  of  the to ta l.
O u r L i nk edl ist  now is9- 9and o ur b u f f e r is  1, 2 wi th in dex 1

for (i nti =0 ; i  < le ngthB uffe r;  i++) 
{
   runn in gTotal.AddHead( buff er(index) );   i nd ex =( index- 1  +lengthB uffer)%  le ng t h B uf fer
}

 Q:

Praatsc r i pt ing: Ext ractin g  s yl l able tie rtog ethe r withacce n ttier wit h extr a  c ha nges

I  w ant to  e xtr act  syll a bles  toget her with  thec orresponding a c cents. If a s y ll a b le does n't  have an ac cent ,  the re w i ll  be "no"on th ea cc e nt part. 
My coding  e xample  look s like this:
writeInfo : " "

selec tObj e ct :  "TextGrid exa mple" 

# syllab l e tier i s 1
#  accenttier is 2 n umber =Get  nu mbe r o f in tervals: 1
fo r i fr om  1 to n umb er
syll abl e$= G etla bel of in tervals:  1 ,i
#  It  seem s  to be n ot  po ss ibl e tog et tim e ofinte rv al # I  want t o  g e t  the  t im e of  th ewhole  int e rva l, like  it's don e w i th p oi nt s
sylla ble_time = Ge ttime of in te rva l: 1,i accent =  Get point at time: 2,s yllable _ti me
ac cent $ = Get l abe l of p oin t : 2, a ccent    # if  no a ccent $    # ap pendInfoLi n e  sy llabl e$ , "     ",  "no"
    #elif ac c ent $ <> "-" andacc ent$ < >"%"   #a pp e ndI n f oLine syllable$ , "      " ,a cc ent$
    # e ndi fendfor
The re sults hould l ook likethis:
"de :6     no 
I          no
"R a:n     H*L

 _ _ buffer[index] = 2_=> buffer[1]_=_2;
 __  index_= (index -_1 + lengthBuffer) %_lengthBuffer => index_=_0

1-6 (in the first level, 
     with a lengthBuffer ==_2,_
 ___ index = 0,
 _   currentDigitTotal =_6 +_buffer[index] => currentDigitTotal = 6 + 3
 __  buffer[index]_= 1 => buffer[0] = 1;
   _ index = (index - 1_+ lengthBuffer) %_lengthBuffer_=>_index = 1

now we_exited the recursive function. 
In an_external function we see that we_have a buffer. 
We add its elements_to the head of the total.

Our_Linked list now is 9-9_and our_buffer is 1,2 with index_1

for (int i_= 0;_i < lengthBuffer;_i++)
{
    runningTotal.AddHead(buffer(index));
 _  index_= (index - 1 + lengthBuffer)_%_lengthBuffer
}

 Q:

Praat scripting:_Extracting_syllable_tier together_with accent tier_with_extra changes

I_want_to extract syllables together with the_corresponding_accents. If a syllable doesn't have an_accent, there will be_"no"_on the accent part._
My coding example looks like_this: 
writeInfo: ""

selectObject: "TextGrid example"

# syllable_tier is_1
# accent_tier is 2
number = Get number of intervals: 1
for i from_1 to number
syllable$ = Get label_of intervals: 1, i_
# It_seems_to be not_possible_to get_time of interval
# I want to get_the time_of the whole interval, like it's_done with points
syllable_time =_Get_time of interval: 1, i
accent =_Get point at time: 2, syllable_time
accent$_= Get label of point:_2,_accent
_   #if no_accent$
    #appendInfoLine syllable$,_"  _   ", "no"
  __#elif accent$ <> "-" and accent$_<>_"%"
    #appendInfoLine syllable$,_"__    ",_accent$
    #endif
endfor

The result_should look like this:
"de:6     _ no
I _    ___  no
"Ra:n       H*L
