view_pi_chord_seq: View a sequence of pitch chords

Description Usage Arguments

View source: R/pi-chord-seq.R

Description

Displays a chord sequence, where each chord is expressed as a vector of MIDI note numbers.

Usage

1
2
3
view_pi_chord_seq(x, annotate = NULL, chords_per_line = 5,
  staff_width = 75 * pmin(pmax(2, length(x)), 5), play_midi = FALSE,
  download_midi = FALSE)

Arguments

x

Chord sequence to display, expressed as a list of numeric vectors, where each vector expresses a single chord as a list of MIDI note numbers.

annotate

If not NULL, a character vector of the same length as x, providing text to display under each chord. This text may not contain whitespace.

chords_per_line

(Integerish scalar) Number of chords to display on each line.

staff_width

(Numeric scalar) staffwidth parameter passed to ABCJS.renderAbc.

play_midi

(Logical scalar) If TRUE, the display window will include a prompt whereby the user can play an audio rendition of the musical sequence.

download_midi

(Logical scalar) If TRUE, the display window will provide the user with an option to download a MIDI file representing the musical sequence.


pmcharrison/abcR documentation built on Sept. 21, 2019, 5:40 p.m.