makelab                 package:emu                 R Documentation

_W_r_i_t_e _o_u_t _E_S_P_S-_s_t_y_l_e _l_a_b_e_l _f_i_l_e_s

_D_e_s_c_r_i_p_t_i_o_n:

     Writes out separate ESPS-label files for each utterance to a
     specified directory.

_U_s_a_g_e:

     makelab (vectimes, uttname, dir, extn = "xlab", labels = NULL) 

_A_r_g_u_m_e_n_t_s:

vectimes: a vector of times

 uttname: a character vector of the same length as vectimes giving the
          utterance name associated with each element of vectimes

     dir: a character specifying the directory

    extn: a character specifying the extension of the resulting files.
          Defaults to xlab

  labels: either a single character vector or a character vector the
          same length as vectimes.  Defaults to "T"

_V_a_l_u_e:

     ESPS-style label files are written out to the directory of the
     user's choice. One ESPS-label file is created for each utterance
     containing all time values for that utterance.

_A_u_t_h_o_r(_s):

     Jonathan Harrington

_E_x_a_m_p_l_e_s:

        #first two segments (for the whole example) of segmentlist vowlax 
        vowlax[1:2,]

        #format track of vowlax
        vowlax.fdat[1:2,]

        #Formant values of the midpoint of the segment
        vowlax.fdat.5 = dcut(vowlax.fdat,0.5,prop=TRUE)

        #the time marks of the midpoint of the segment
        times = vowlax.fdat.5[1:2,1]
        times

        #utterance names to the segments
        utts = utt(vowlax[1:2,])
        utts 

        #the path to save the label files to "." is the RHOME Directory
        path = "."

        #write the label files to path
        ## Not run: makelab(times, utts, path, labels="T")

        #the first two segments are from the same utterance,
        #thus one label file was created in the R_HOME directory

