R: Generate sine wave with variable frequency
问题 This might be more of a math question than an R question but here it goes... I'm trying to generate a low frequency oscillator (LFO2) where the frequency is controlled by another low frequency oscillator (LFO1). LFO1 has a frequency of 0.02 Hz while I want LFO2 to have a frequency that oscillates between 0.00 and 0.11 Hz dependent on the output of LFO1. # length in seconds track_length <- 356 upsample <- 10 # upsample the signal # LFO rates (Hz) rate1 <- 0.02 rate2_range <- list(0.00, 0.11) #