This is equivalent to using any pitch function with the
arguments generic = TRUE, simple = TRUE, and step.labels = NULL.
By default, step() will returns steps relative to the key---set Key = NULL if you don't want this.
Arguments
- x
Input data to parse as pitch information.
The
xargument can be any (atomic) vector, or a tonalInterval, orNULL.- ...
Arguments passed to the pitch deparser.
There are also two hidden (advanced) arguments you can specify:
memoizeanddeparse(see the details below).- generic
Should "specific" pitch information (accidentals and qualites) be discarded?
Defaults to
FALSE.Must be a singleton
logicalvalue: an on/off switch.- simple
Should "compound" pitch information (octave/contour) be discarded?
Defaults to
FALSE.Must be a singleton
logicalvalue: an on/off switch.- Key
The input
Keyused by the parser, deparser, and transposer.Defaults to
NULL.Must be a
diatonicSetor something coercable todiatonicSet; must be either length1orlength(x)- transposeArgs
An optional list of arguments passed to a special
transpose()call.Defaults to an empty
list().Must be a
listof named arguments totranspose().- parseArgs
An optional list of arguments passed to the pitch parser.
Defaults to an empty
list().Must be a
listof named arguments to the pitch parser.- inPlace
Should non-pitch information be retained in the output string.
Defaults to
FALSE.Must be a singleton
logicalvalue: an on/off switch.This argument only has an effect if the input (the
xargument) ischaracterstrings, and there is extra, non-pitch information in the input strings "besides" the pitch information. If so, andinPlace = TRUE, the output will be placed into an output string beside the original non-pitch information. IfinPlace = FALSE, only the pitch output information will be returned (details below).
Examples
if (FALSE) {
chorales <- readHumdrum(humdrumRroot, 'HumdrumData/BachChorales/.*krn')
within(chorales, step(Token))
within(chorales, step(Token, step.labels = c('C', 'D', 'E', 'F', 'G', 'A', 'B')))
}