View source: R/output_functions.R
chord_plot | R Documentation |
Creates a ggplot2
object to plot a chord
chord_plot(chord, title_string, keyboard_map, base_note_number = 48)
chord |
a numeric vector with the scale degrees for the chord |
title_string |
A string to use for a plot title. This will usually be the chord name from a chord table |
keyboard_map |
the keyboard map for the scale |
base_note_number |
This routine assumes a 37-key synth keyboard,
with the leftmost key emitting a MIDI note number for a C. Thus,
|
a ggplot2
object that can be printed
## Not run:
eikosany <- cps_scale_table()
eikosany_map <- keyboard_map(eikosany)
print(chord_plot(
c(1, 6, 11, 15),
"1:3:5:7",
eikosany_map,
48
))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.