music-helpers {tabr} | R Documentation |
Accessing music object values and attributes
Description
Helper functions for accessing music object values and attributes.
Usage
music_notes(x)
music_info(x)
music_strings(x)
music_key(x)
music_time(x)
music_tempo(x)
music_lyrics(x)
Arguments
x |
music object. |
Details
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.
Value
depends on the function
See Also
music()
, note-checks()
, note-metadata()
, note-summaries()
,
note-coerce()
Examples
# 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)
[Package tabr version 0.5.0 Index]