| accidental | R Documentation |
Use this if you want to extract only the accidentals from pitch data,
discarding octave and step information.
Set explicitNaturals = FALSE if you don't want explicit naturals.
accidental(
x,
...,
generic = FALSE,
simple = FALSE,
octave.relative = FALSE,
Key = NULL,
transposeArgs = list(),
parseArgs = list(),
gamutArgs = list(),
inPlace = FALSE
)
x |
Input data to parse as pitch information. The |
... |
Arguments passed to the pitch deparser. There are also two hidden (advanced) arguments you can specify: |
generic |
Should "specific" pitch information (accidentals and qualites) be discarded? Defaults to Must be a singleton |
simple |
Should "compound" pitch information (octave/contour) be discarded? Defaults to Must be a singleton |
Key |
The input Defaults to Must be a |
transposeArgs |
An optional list of arguments passed to a special Defaults to an empty Must be a |
parseArgs |
An optional list of arguments passed to the pitch parser. Defaults to an empty Must be a |
inPlace |
Should non-pitch information be retained in the output string. Defaults to Must be a singleton This argument only has an effect if the input (the |
Other pitch functions:
bhatk(),
degree(),
freq(),
helmholtz(),
interval(),
kern(),
lilypond(),
octave(),
pc(),
pitch(),
quality(),
semits(),
solfa(),
solfg(),
step(),
tonh()
Other partial pitch functions:
octave(),
quality(),
step()
## Not run:
chorales <- readHumdrum(humdrumRroot, 'HumdrumData/BachChorales/.*krn')
within(chorales, accidentals(Token))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.