UNPKG
@temper.sh/pitch
Version:
latest (1.0.2)
1.0.2
1.0.1
Utilities for working with pitch in arbitrary equal temperament spaces
@temper.sh/pitch
/
src
/
pitchClass
/
pitchClass.ts
5 lines
(3 loc)
•
160 B
text/typescript
View Raw
1
2
3
4
5
import
type
{
Pitch
,
PitchClass
}
from
'@/types'
import
{ modEdo }
from
'@/utils/modEdo'
export
const
pitchClass = (
pitch
:
Pitch
):
PitchClass
=>
modEdo
(pitch)