interval library

Constants

IVL_STR → const String
"(AA|A|P|M|m|d|dd)([-+]?\\d+)"
IVL_TNL → const String
npm version tonal
"([-+]?\\d+)(d{1,4}|m|M|P|A{1,4})"
TYPES → const String
"PMMPPMM"

Properties

altToQ String Function(String type, [dynamic alt])
final
build String Function([dynamic map])
Given a interval property object, get the interval name
final
cache Map
final
chroma → dynamic Function(dynamic str)
Get the chroma of the interval. The chroma is a number between 0 and 7 that represents the position within an octave (pitch set)
final
CLASSES List<int>
final
fillStr String Function(String s, dynamic n)
final
fromSemitones String Function(num num)
Get interval name from semitones number. Since there are several interval names for the same number, the name it"s arbitraty, but deterministic.
final
ic int Function([dynamic ivl])
Get the interval class number of a given interval.
final
IN List<int>
read / write
invert String Function(dynamic str)
Get the inversion (https://en.wikipedia.org/wiki/Inversion_(music)#Intervals) of an interval.
final
IQ List<String>
read / write
name → dynamic Function([dynamic str])
Get interval name. Can be used to test if it"s an interval. It accepts intervals as pitch or string in shorthand notation or tonal notation. It returns always intervals in tonal notation.
final
NAMES List<String>
final
names Object Function([dynamic types])
List basic (perfect, major, minor) interval names within a octave
final
NO_IVL Map<String, Null>
final
num → dynamic Function(dynamic str)
Get the number of the interval
final
numToStep → dynamic Function(dynamic n)
final
properties Map<String, Object> Function([String str])
final
qToAlt int Function(String type, [String q])
final
REGEX RegExp
final
semitones → dynamic Function(dynamic str)
Get size in semitones of an interval
final
simplify String Function(dynamic str)
Get the simplified version of an interval.
final
SIZES List<int>
final
tokenize List<String> Function([dynamic str])
final

Functions

props([String str]) → dynamic
Get interval properties. It returns an object with: