| Accidental {gm} | R Documentation | 
Create Accidental Object
Description
Create an Accidental object to represent an accidental symbol.
Usage
Accidental(name, i, j = NULL, to = NULL, bracket = NULL)
Arguments
| name | A single character, which represents the name of the
accidental.  | 
| i | A single positive integer, which represents the position of the accidental in a musical line. | 
| j | Optional. A single positive integer, which represents the position of the accidental in a chord. | 
| to | Optional. A single character or a single positive integer, which indicates the musical line where to add the accidental. | 
| bracket | Optional. A single logical, which indicates if the accidental is enclosed in brackets. | 
Value
A list of class Accidental.
See Also
+.Music() for adding an Accidental to a Music object.
Examples
# Create an `Accidental`
accidental <- Accidental("natural", 2, bracket = TRUE)
accidental
# Add it to a `Music`
music <- Music() + Meter(4, 4) + Line(c("C4", "C4")) + accidental
music
# Generate the music score
if (interactive()) {
  show(music)
}