Search results

Types

Classes
Interfaces
Enums
Functions
Type aliases
Constants

Members

Properties
Methods
Getters
Setters
Enum members
Show privates

Other

In this module only

Function getPitchClassesInterval

Defined in PureMusicUtils.ts

(
pitchClass1: PitchClasstype PitchClassPitchClass,
pitchClass2: PitchClasstype PitchClassPitchClass
): number

Calculate the pure interval between 2 pitch classes.

· pitchClass1 - first note
· pitchClass2 - second note

Returns

undefined

Example

getPitchClassesInterval('C', 'E') // 4