-
invert
-
Get the inversion of an interval. The inversion of an interval is always a simple interval
Example
invert('3M') // => '6m'
-
semitones
-
Get the semitones of a interval
- Source:
Example
semitones('5P') // => 7 semitones('-5P') // => -7
-
simplify
-
Simplify an interval
Example
simplify('9M') // => '2M' simplify('-9M') // => '-2M'
-
type
-
Get the type of an interval (
'P'
for perfetable and'M'
for majorable)It does NOT return the quality of the interval (@see interval/quality)
Example
type('4P') // => 'P' type('5A') // => 'P' type('3m') // => 'M' type('2d') // => 'M'
Maintenance
Commit Frequency
Further analysis of the maintenance status of music-interval based on released npm versions cadence, the repository activity, and other data points determined that its maintenance is Inactive.
An important project maintenance signal to consider for music-interval is that it hasn't seen any new versions released to npm in the past 12 months, and could be considered as a discontinued project, or that which receives low attention from its maintainers.
In the past month we didn't find any pull request activity or change in issues status has been detected for the GitHub repository.