Skip to main content

Namespace: PitchClass

Interfaces

References

fromMnn

Renames and re-exports pc


ic

Renames and re-exports between

Type Aliases

PitchClass

Ƭ PitchClass: Shape & PitchClassBrand

Integer notation of pitch class

See

https://en.wikipedia.org/wiki/Pitch_class

Defined in

internal/PitchClass.ts:18


Shape

Ƭ Shape: RangedNat<typeof min, typeof max>

Defined in

internal/PitchClass.ts:6

Variables

ALL

Const ALL: readonly PitchClass[]

Defined in

internal/PitchClass.ts:34


MAX

Const MAX: 11 & PitchClassBrand

Defined in

internal/PitchClass.ts:33


MIN

Const MIN: 0 & PitchClassBrand

Defined in

internal/PitchClass.ts:32

Functions

from

from(v): PitchClass

Parameters

NameType
v0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

Returns

PitchClass

Defined in

internal/PitchClass.ts:24


fromIntClamp

fromIntClamp(v): PitchClass

Parameters

NameType
vInt

Returns

PitchClass

Defined in

internal/PitchClass.ts:26


fromIntMod

fromIntMod(v): PitchClass

Parameters

NameType
vInt

Returns

PitchClass

Defined in

internal/PitchClass.ts:27


fromNum

fromNum(v): PitchClass

Parameters

NameType
vnumber

Returns

PitchClass

Defined in

internal/PitchClass.ts:25


fromUnknown

fromUnknown(v): PitchClass

Parameters

NameType
vunknown

Returns

PitchClass

Defined in

internal/PitchClass.ts:28


hasShape

hasShape<T>(v): v is T & (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11)

Type parameters

Name
T

Parameters

NameType
vT

Returns

v is T & (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11)

Defined in

internal/PitchClass.ts:7


invert

invert(v, index?): PitchClass

Parameters

NameTypeDefault value
vPitchClassundefined
index0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 110

Returns

PitchClass

Defined in

internal/PitchClass.ts:36


mark

mark(_v): _v is PitchClass

Parameters

NameType
_v0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11

Returns

_v is PitchClass

Defined in

internal/PitchClass.ts:20


markNum

markNum(v): v is PitchClass

Parameters

NameType
vnumber

Returns

v is PitchClass

Defined in

internal/PitchClass.ts:21


markUnknown

markUnknown(v): v is PitchClass

Parameters

NameType
vunknown

Returns

v is PitchClass

Defined in

internal/PitchClass.ts:22


pic

pic(from, to): PitchIntervalClass

Parameters

NameType
fromPitchClass
toPitchClass

Returns

PitchIntervalClass

Defined in

internal/conversion.ts:41


transpose

transpose(value, interval): PitchClass

Parameters

NameType
valuePitchClass
intervalPitchIntervalClass

Returns

PitchClass

Defined in

internal/conversion.ts:30