Learn R Programming

music (version 0.1.2)

cplot.piano: Console piano plot for notes

Description

Build an ASCII plot of notes on a piano

Usage

cplot.piano(notes = buildScale("C4", "minor"), blackKey.col = "white")

Arguments

notes

String, vector: Notes to highlight. Default = buildScale("C4", "minor")

blackKey.col

Color to use for black keys. Default = "white" for use on a dark terminal. Set to "black" for use on a light terminal.

Author

E.D. Gennatas

Examples

Run this code
cplot.piano(buildScale("B4", "minor"))

Run the code above in your browser using DataLab