From 8dc2f7a95f322c8ecd77edb0c48b4c4bfdf7aa4a Mon Sep 17 00:00:00 2001 From: Lumi Pakkanen Date: Tue, 30 Apr 2024 14:40:10 +0300 Subject: [PATCH] Update sonic-weave and xen-dev-utils dependencies Adapt to swapped lest operands. SonicWeave changelog - Add nthPrime and primeRange utilities - Add wilsonHeight complexity measure - Implement primeMonzo conversion utility - Swap operands of lest --- package-lock.json | 20 +++++++++---------- package.json | 6 +++--- .../modals/modification/ConvertType.vue | 12 +++++------ 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/package-lock.json b/package-lock.json index 569e0a97..81ab4124 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "scale-workshop", - "version": "3.0.0-beta.21", + "version": "3.0.0-beta.22", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "scale-workshop", - "version": "3.0.0-beta.21", + "version": "3.0.0-beta.22", "dependencies": { "isomorphic-qwerty": "^0.0.2", "ji-lattice": "^0.0.3", @@ -14,14 +14,14 @@ "moment-of-symmetry": "^0.4.2", "pinia": "^2.1.7", "qs": "^6.12.0", - "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.30", + "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.31", "sw-synth": "^0.1.0", "temperaments": "^0.5.3", "values.js": "^2.1.1", "vue": "^3.3.4", "vue-router": "^4.3.0", "webmidi": "^3.1.8", - "xen-dev-utils": "^0.4.0", + "xen-dev-utils": "^0.5.1", "xen-midi": "^0.2.0" }, "devDependencies": { @@ -5467,12 +5467,12 @@ } }, "node_modules/sonic-weave": { - "version": "0.0.30", - "resolved": "git+ssh://git@github.com/xenharmonic-devs/sonic-weave.git#0f86d831eefdb5c5e77f6918b75b9e7e4fc50ae2", + "version": "0.0.31", + "resolved": "git+ssh://git@github.com/xenharmonic-devs/sonic-weave.git#45165dbeb10765c0ce02185ab3c57003d3f94c8e", "license": "MIT", "dependencies": { "moment-of-symmetry": "^0.4.2", - "xen-dev-utils": "^0.4.0" + "xen-dev-utils": "^0.5.1" }, "bin": { "sonic-weave": "bin/sonic-weave.js" @@ -6616,9 +6616,9 @@ } }, "node_modules/xen-dev-utils": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.4.0.tgz", - "integrity": "sha512-wABrZPEIx09lk3bDf40gB8G1YrUNo9luqQmDViCkxjmzvkyjgwm5pw0Kl/QWyI1f/tAA+sBZxEIjJvWPI2VUbw==", + "version": "0.5.1", + "resolved": "https://registry.npmjs.org/xen-dev-utils/-/xen-dev-utils-0.5.1.tgz", + "integrity": "sha512-lU59gi4QHjr4spUDIhMV756USN/ekXS2FDu+PPtRQLNeU2CHcL5jORUCkjZ3qoTaF9+y5xtEhe2+aMIwmDS4ww==", "engines": { "node": ">=10.6.0" }, diff --git a/package.json b/package.json index 65b048c2..ea2e4705 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "scale-workshop", - "version": "3.0.0-beta.21", + "version": "3.0.0-beta.22", "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", @@ -21,14 +21,14 @@ "moment-of-symmetry": "^0.4.2", "pinia": "^2.1.7", "qs": "^6.12.0", - "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.30", + "sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.31", "sw-synth": "^0.1.0", "temperaments": "^0.5.3", "values.js": "^2.1.1", "vue": "^3.3.4", "vue-router": "^4.3.0", "webmidi": "^3.1.8", - "xen-dev-utils": "^0.4.0", + "xen-dev-utils": "^0.5.1", "xen-midi": "^0.2.0" }, "devDependencies": { diff --git a/src/components/modals/modification/ConvertType.vue b/src/components/modals/modification/ConvertType.vue index de006d36..d17fee2f 100644 --- a/src/components/modals/modification/ConvertType.vue +++ b/src/components/modals/modification/ConvertType.vue @@ -23,19 +23,19 @@ onMounted(() => { function modify(expand = false) { scale.sourceText += '\n' if (modal.type === 'decimal') { - scale.sourceText += `interval => interval lest decimal(interval, ${myDecimalFractionDigits.value})` + scale.sourceText += `interval => decimal(interval, ${myDecimalFractionDigits.value}) lest interval` } else if (modal.type === 'fraction') { if (modal.fractionTolerance || modal.preferredNumerator || modal.preferredEtEquaveDenominator) { - scale.sourceText += `interval => interval lest fraction(interval, ${modal.fractionTolerance ? centString(modal.fractionTolerance) : 'niente'}, ${modal.preferredNumerator}, ${modal.preferredDenominator})` + scale.sourceText += `interval => fraction(interval, ${modal.fractionTolerance ? centString(modal.fractionTolerance) : 'niente'}, ${modal.preferredNumerator}, ${modal.preferredDenominator}) lest interval` } else { - scale.sourceText += 'interval => interval lest fraction(interval)' + scale.sourceText += 'interval => fraction(interval) lest interval' } } else if (modal.type === 'nedji') { - scale.sourceText += `interval => interval lest nedji(interval, ${modal.preferredEtNumerator}, ${modal.preferredEtDenominator}, ${modal.preferredEtEquaveNumerator}, ${modal.preferredEtEquaveDenominator})` + scale.sourceText += `interval => nedji(interval, ${modal.preferredEtNumerator}, ${modal.preferredEtDenominator}, ${modal.preferredEtEquaveNumerator}, ${modal.preferredEtEquaveDenominator}) lest interval` } else if (modal.type === 'cents') { - scale.sourceText += `interval => interval lest cents(interval, ${myCentsFractionDigits.value})` + scale.sourceText += `interval => cents(interval, ${myCentsFractionDigits.value}) lest interval` } else { - scale.sourceText += `interval => interval lest ${modal.type}(interval)` + scale.sourceText += `interval => ${modal.type}(interval) lest interval` } if (expand) { const { visitor, defaults } = scale.getUserScopeVisitor()