Skip to content

Commit

Permalink
Update sonic-weave and xen-dev-utils dependencies
Browse files Browse the repository at this point in the history
Adapt to swapped lest operands.

SonicWeave changelog
- Add nthPrime and primeRange utilities
- Add wilsonHeight complexity measure
- Implement primeMonzo conversion utility
- Swap operands of lest
  • Loading branch information
frostburn committed May 3, 2024
1 parent daf2275 commit 8dc2f7a
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
20 changes: 10 additions & 10 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -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 {@}\" --",
Expand All @@ -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": {
Expand Down
12 changes: 6 additions & 6 deletions src/components/modals/modification/ConvertType.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8dc2f7a

Please sign in to comment.