Test whether a pitch belongs to the scale.
MIDI pitch or bare pitch class.
The key/scale to test against.
True if the pitch class is a member of the scale.
import { majorKey, isScaleTone } from '@libraz/libcantus';const key = majorKey(0); // C majorisScaleTone(64, key); // true — E is in C majorisScaleTone(61, key); // false — C# is not Copy
import { majorKey, isScaleTone } from '@libraz/libcantus';const key = majorKey(0); // C majorisScaleTone(64, key); // true — E is in C majorisScaleTone(61, key); // false — C# is not
Test whether a pitch belongs to the scale.