View source: R/output_functions.R
chord_synth | R Documentation |
Creates a Wave
object for a given chord
chord_synth(
chord,
signal = "tria",
duration_sec = 1,
velocity = 100,
sample_rate_hz = 48000,
bit_width = 24
)
chord |
a vector of frequencies for the chord |
signal |
The |
duration_sec |
how many seconds to hold each note, default = 1 |
velocity |
MIDI velocity, default = 100, max is 127 |
sample_rate_hz |
sample rate in hz, default = 48000 |
bit_width |
bit width of samples, default = 24 |
the full path to output_directory
## Not run:
justmajor7th <- c(1, 5/4, 3/2, 7/4)
wave <- chord_synth(256*justmajor7th, duration_sec = 10)
tuneR::play(wave)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.