2.2.2 • Published 6 years ago

tonal-abc-notation v2.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Abc

npm version

Convert note strings between ABC and scientific notation

This is part of tonal music theory library.

Example

const Abc = require("tonal-abc-notation")
Abc.toNote("c") // => "C5"
Abc.toAbc("Db2") // =>  "_D,,"

Example

import Tonal from "tonal"
import { toAbc } from "tonal-abc-notation"
Tonal.Scale.notes("C major").map(toAbc);

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

ParamTypeDescription
abcNotestringthe note in ABC notation

Example

Abc.toNote("c") // => "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

ParamTypeDescription
notestringa note in scientific notation

Example

abc.toAbc("C#4") // => "^C"
2.2.2

6 years ago

2.2.1

6 years ago

2.2.0

6 years ago

2.1.2

7 years ago

2.1.0

7 years ago

2.0.0

7 years ago

1.1.2

7 years ago

1.1.0

8 years ago

1.0.0

8 years ago

1.0.0-pre6

8 years ago