view_abc_string: View ABC string

Description Usage Arguments Examples

View source: R/abc-view.R

Description

Creates an HTML preview of a piece of ABC notation expressed as a string. This preview should automatically appear in the RStudio viewer pane.

Usage

1
2
view_abc_string(x, play_midi = FALSE, download_midi = FALSE,
  staff_width = 740)

Arguments

x

(Character scalar) ABC notation to view, expressed as a string.

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.

staff_width

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

Examples

1
2
3
view_abc_string("C D E F G")
view_abc_string("L:1\nC D E F G")
view_abc_string("L:1\n[CEG]\n")

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