Description Usage Arguments Value
Play a piece of music constructed from vectors of pitch and duration
1 | play_music(notes_pitch = NULL, notes_duration = NULL, tempo = 240)
|
notes_pitch |
Character vector of notes using standard musical note terminology. Append # or b for sharp of flat semitones. Default octave is octave 4 on a piano keyboard. Append octave number for lower or higher octaves. |
notes_duration |
Numeric vector of corresponding note durations in beats. Must be same length as notes_pitch. |
tempo |
Numeric tempo to be played in beats per minute. |
Music played in R console.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.