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
/
interval
/
interval.ts
4 lines
(2 loc)
•
124 B
text/typescript
View Raw
1
2
3
4
import
type
{
Interval
,
Pitch
}
from
'@/types'
export
const
interval = (
start
:
Pitch
,
end
:
Pitch
):
Interval
=>
end - start