if (FALSE) {
s400 = soundgen(
sylLen = 300, pitch = c(280, 370, 330),
subDep = list(
time = c(0, .5, .51, 1),
value = c(0, 0, 10, 10)
), subRatio = 3,
smoothing = list(interpol = 'approx'), formants = 'a',
rolloff = -12, addSilence = 50, temperature = .001,
plot = TRUE, ylim = c(0, 2)
)
s = analyze(s400, samplingRate = 16000,
windowLength = 50, step = 10,
pitchMethods = c('dom', 'autocor', 'hps'), priorMean = NA,
plot = TRUE, ylim = c(0, 3),
extraContour = list('subDep', type = 'b', col = 'brown'))
s$detailed[, c('subRatio', 'subDep')]
s2 = analyze(s400, samplingRate = 16000,
windowLength = 50, step = 10,
pitchMethods = c('dom', 'autocor', 'hps'), priorMean = NA,
subh = list(method = 'harm'),
plot = TRUE, ylim = c(0, 3),
extraContour = list('subDep', type = 'b', col = 'brown'))
s$detailed[, c('subRatio', 'subDep')]
}
Run the code above in your browser using DataLab