tabr (version 0.4.9)

interval_semitones: Interval semitones

Description

Convert named intervals to numbers of semitones. For a complete list of valid interval names and abbreviations see mainIntervals(). interval may be a vector.

Usage

interval_semitones(interval)

Value

integer

Arguments

interval

character, interval ID. See details.

See Also

mainIntervals()

Examples

Run this code
x <- c("minor third", "m3", "augmented second", "A2")
y <- c("P1", "m2", "M2", "m3", "M3", "P4", "TT", "P5")
interval_semitones(x)
interval_semitones(y)

Run the code above in your browser using DataLab