#These 2 got the same result
synth_est2 <- synth_sounds(
mar = 0.01, sig2 = 0.9,
frequencies = 2:4,
durations = c(0.1, 0.2),
fm = TRUE,
am = TRUE,
shuffle = TRUE,
seed = 123,
sampling.rate = 12
)
td <- tempdir()
# export in a single file
Rraven::exp_est(
X = synth_est2,
single.file = TRUE,
path = td,
file.name = "synth_sounds2.wav"
)
# plot spectro
seewave::spectro(
readWave(file.path(td, "synth_sounds2.wav"), from = 0, to = 3, units = "seconds"),
scale = FALSE,
palette = viridis,
grid = FALSE,
flim = c(0.5, 5.5),
collevels = seq(-20, 0, 1),
osc = TRUE, colwave = "#482878FF",
heights = c(2, 1),
wl = 140
)
synth_est2 <- synth_sounds(
mar = 0.01, sig2 = 0.9,
frequencies = 2:4,
durations = c(0.1, 0.2),
fm = TRUE,
am = TRUE,
shuffle = TRUE,
seed = 123,
sampling.rate = 12
)
seewave::spectro(
readWave(file.path(td, "synth_sounds2.wav"), from = 0, to = 3, units = "seconds"),
scale = FALSE,
palette = viridis,
grid = FALSE,
flim = c(0.5, 5.5),
collevels = seq(-20, 0, 1),
osc = TRUE, colwave = "#482878FF",
heights = c(2, 1),
wl = 140
)