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
/
transpose
/
transpose.ts
8 lines
(5 loc)
•
196 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
import
type
{
Chord
,
Interval
}
from
'@/types'
export
const
transpose = (
chord
:
Chord
,
interval
:
Interval
):
Chord
=>
{
return
chord.
map
(
(
note
) =>
note + interval) }
export
const
t = transpose