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
Shape
Ƭ Shape: RangedNat<typeof min, typeof max>
Defined in
Variables
ALL
• Const ALL: readonly PitchClass[]
Defined in
MAX
• Const MAX: 11 & PitchClassBrand
Defined in
MIN
• Const MIN: 0 & PitchClassBrand
Defined in
Functions
from
▸ from(v): PitchClass
Parameters
| Name | Type |
|---|---|
v | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
Returns
Defined in
fromIntClamp
▸ fromIntClamp(v): PitchClass
Parameters
| Name | Type |
|---|---|
v | Int |
Returns
Defined in
fromIntMod
▸ fromIntMod(v): PitchClass
Parameters
| Name | Type |
|---|---|
v | Int |
Returns
Defined in
fromNum
▸ fromNum(v): PitchClass
Parameters
| Name | Type |
|---|---|
v | number |
Returns
Defined in
fromUnknown
▸ fromUnknown(v): PitchClass
Parameters
| Name | Type |
|---|---|
v | unknown |
Returns
Defined in
hasShape
▸ hasShape<T>(v): v is T & (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11)
Type parameters
| Name |
|---|
T |
Parameters
| Name | Type |
|---|---|
v | T |
Returns
v is T & (0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11)
Defined in
invert
▸ invert(v, index?): PitchClass
Parameters
| Name | Type | Default value |
|---|---|---|
v | PitchClass | undefined |
index | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 0 |
Returns
Defined in
mark
▸ mark(_v): _v is PitchClass
Parameters
| Name | Type |
|---|---|
_v | 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 |
Returns
_v is PitchClass
Defined in
markNum
▸ markNum(v): v is PitchClass
Parameters
| Name | Type |
|---|---|
v | number |
Returns
v is PitchClass
Defined in
markUnknown
▸ markUnknown(v): v is PitchClass
Parameters
| Name | Type |
|---|---|
v | unknown |
Returns
v is PitchClass
Defined in
pic
▸ pic(from, to): PitchIntervalClass
Parameters
| Name | Type |
|---|---|
from | PitchClass |
to | PitchClass |
Returns
Defined in
transpose
▸ transpose(value, interval): PitchClass
Parameters
| Name | Type |
|---|---|
value | PitchClass |
interval | PitchIntervalClass |