Abc
Convert note strings between ABC and scientific notation
This is part of tonal music theory library.
Example
const Abc = Abc // => "C5"Abc // => "_D,,"
Example
TonalScale;
- Abc
.toNote(abcNote)
⇒string
.toAbc(note)
⇒string
Abc.toNote(abcNote)
⇒ string
Convert a (string) note in ABC notation into a (string) note in scientific notation
Kind: static method of Abc
Returns: string
- the note in scientific notation of null if not valid
Param | Type | Description |
---|---|---|
abcNote | string |
the note in ABC notation |
Example
Abc // => "C5"
Abc.toAbc(note)
⇒ string
Convert a (string) note in scientific notation into a (string) note in ABC notation
Kind: static method of Abc
Returns: string
- the note in ABC notation or null if not valid note
Param | Type | Description |
---|---|---|
note | string |
a note in scientific notation |
Example
abc // => "^C"