score: Create a music score

View source: R/tracks.R

scoreR Documentation

Create a music score

Description

Create a music score from a collection of tracks.

Usage

score(track, chords = NULL, chord_seq = NULL)

Arguments

track

a track table consisting of one or more tracks.

chords

an optional named list of chords and respective fingerings generated by chord_set, for inclusion of a top center chord diagram chart.

chord_seq

an optional named vector of chords and their durations, for placing chord diagrams above staves in time.

Details

Score takes track tables generated by track() and fortifies them as a music score. It optionally binds tracks with a set of chord diagrams. There may be only one track in track() as well as no chord information passed, but for consistency score() is still required to fortify the single track as a score object that can be rendered by tab().

Value

a tibble data frame

See Also

phrase(), track(), trackbind()

Examples

x <- phrase("c ec'g' ec'g'", "4 4 2", "5 432 432")
x <- track(x)
score(x)

tabr documentation built on Sept. 12, 2024, 6:18 a.m.