view g_cepstrum.R @ 1:dbcf9bc275e3 draft

planemo upload commit 063e049d569aeb45e1008cbf044f2dad850eca3d-dirty
author stevecassidy
date Wed, 07 Dec 2016 19:10:51 -0500
parents
children
line wrap: on
line source


library(wrassp)

args = commandArgs(TRUE)
# args will be like
#        ${wavfile} ${output}
#        ${beginTime} ${endTime}
#        ${windowShift} ${window} ${resolution}
#        ${fftLength}


if (length(args) != 8) {
    print("Wrong number of arguments!")
    q("no", status=1)
}

res = cepstrum(args[1], toFile=FALSE,
               beginTime=as.numeric(args[3]),
               endTime=as.numeric(args[4]),
               windowShift=as.numeric(args[5]),
               window=args[6],
               resolution=as.numeric(args[7]),
               fftLength=as.numeric(args[8])
             )

assp_to_tsv(res, args[2])