fixed export
This commit is contained in:
parent
03090e399c
commit
450f9685f3
1 changed files with 2 additions and 2 deletions
|
|
@ -95,7 +95,7 @@ function scaleOffset(scale, offset, note) {
|
|||
* "c2 c3".fast(2).transpose("<1P -2M 4P 3m>".slow(2)).note()
|
||||
*/
|
||||
|
||||
export const transpose = register(['transpose', 'trans'], function transposeFn(intervalOrSemitones, pat) {
|
||||
export const {transpose, trans} = register(['transpose', 'trans'], function transposeFn(intervalOrSemitones, pat) {
|
||||
return pat.withHap((hap) => {
|
||||
const note = hap.value.note ?? hap.value;
|
||||
if (typeof note === 'number') {
|
||||
|
|
@ -151,7 +151,7 @@ export const transpose = register(['transpose', 'trans'], function transposeFn(i
|
|||
* .note()
|
||||
*/
|
||||
|
||||
export const scaleTranspose = register(
|
||||
export const {scaleTranspose, scaleTrans, strans} = register(
|
||||
['scaleTranspose', 'scaleTrans', 'strans'],
|
||||
function (offset /* : number | string */, pat) {
|
||||
return pat.withHap((hap) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue