playFreq | R Documentation |
Play frequency
playFreq( frequency, oscillator = "sine", duration = rep(1, length(frequency)), BPM = 120, sample.rate = 44100, attack.time = 50, inner.release.time = 50, plot = FALSE )
frequency |
Numeric, Vector: Frequency / frequencies to play |
oscillator |
String: "sine", "square", "saw". Default = "sine" |
duration |
Float: Note duration in beats. Default = 1 |
BPM |
Integer: Beats per minute. Default = 120 |
sample.rate |
Integer: Sample rate. Default = 44100 |
attack.time |
Integer: Attack time. Default = 50 (Helps prevent popping) |
inner.release.time |
Integer: Release time, that ends on note OFF (instead of beginning at note OFF). Default = 50 (Also helps prevent popping) |
plot |
Logical: If TRUE, plot waveform |
E.D. Gennatas
## Not run: playFreq(440) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.