music-helpers | R Documentation |
Helper functions for accessing music object values and attributes.
music_notes(x)
music_info(x)
music_strings(x)
music_key(x)
music_time(x)
music_tempo(x)
music_lyrics(x)
x |
music object. |
Note that while lyrics always shows as an attribute even when NA
, strings
is completely absent as a value if it was not part of the object construction
from a new character string.
depends on the function
music()
, note-checks()
, note-metadata()
, note-summaries()
,
note-coerce()
# Starting string = 5: use ';5'. Carries over until an explicit change.
x <- "a,4;5*5 b,4- c4 cgc'e'~4 cgc'e'1 e'4;2 c';3 g;4 c;5 ce'1;51"
x <- as_music(x)
y <- lyrics_template(x)
y[3:8] <- strsplit("These are some song ly- rics", " ")[[1]]
y
x <- as_music(x, lyrics = y)
attributes(x)
music_split(x)
music_notes(x)
music_info(x)
music_key(x)
music_time(x)
music_tempo(x)
music_lyrics(x)
music_strings(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.