Merge pull request 'fix: regression caused by incorrectly exported alias for transpose and scaleTranspose' (#1489) from fixtest into main
Reviewed-on: https://codeberg.org/uzu/strudel/pulls/1489
This commit is contained in:
commit
b089328da3
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()
|
* "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) => {
|
return pat.withHap((hap) => {
|
||||||
const note = hap.value.note ?? hap.value;
|
const note = hap.value.note ?? hap.value;
|
||||||
if (typeof note === 'number') {
|
if (typeof note === 'number') {
|
||||||
|
|
@ -151,7 +151,7 @@ export const transpose = register(['transpose', 'trans'], function transposeFn(i
|
||||||
* .note()
|
* .note()
|
||||||
*/
|
*/
|
||||||
|
|
||||||
export const scaleTranspose = register(
|
export const { scaleTranspose, scaleTrans, strans } = register(
|
||||||
['scaleTranspose', 'scaleTrans', 'strans'],
|
['scaleTranspose', 'scaleTrans', 'strans'],
|
||||||
function (offset /* : number | string */, pat) {
|
function (offset /* : number | string */, pat) {
|
||||||
return pat.withHap((hap) => {
|
return pat.withHap((hap) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue