powered by
Convert a noteworthy string to a list of noteworthy n-grams.
note_ngram(notes, n = 2, tally = FALSE, rests = FALSE)
list of noteworthy objects or a tibble
a noteworthy string.
Number of grams. Must be >= 1 and <= number of timesteps in notes.
notes
logical, tally n-grams in a data frame. Otherwise a list.
logical, exclude rests. Affects the number of timesteps.
x <- as_noteworthy("c r ceg dfa ceg dfa") note_ngram(x) (x <- note_ngram(x, tally = TRUE)) x$ngram <- as.character(x$ngram) x
Run the code above in your browser using DataLab