Skip to content

Commit

Permalink
Update sonic-weave and xen-dev-utils dependencies
Browse files Browse the repository at this point in the history
Better type enforcement.
The product of gcd and lcm is the same as the product of the arguments.
  • Loading branch information
frostburn committed Apr 21, 2024
1 parent 512fd47 commit d714522
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 15 deletions.
68 changes: 58 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.16",
"version": "3.0.0-beta.17",
"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.21",
"sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.22",
"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.2.9",
"xen-dev-utils": "^0.3.0",
"xen-midi": "^0.2.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions src/stores/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -395,11 +395,11 @@ export const useScaleStore = defineStore('scale', () => {
)
} else if (autoColors.value === 'cents') {
colors.value = intervals.map(
(interval) => interval.color?.value ?? centsColor(interval).value
(interval) => interval.color?.value ?? centsColor.bind(ev)(interval).value
)
} else {
colors.value = intervals.map(
(interval) => interval.color?.value ?? factorColor(interval).value
(interval) => interval.color?.value ?? factorColor.bind(ev)(interval).value
)
}
labels.value = intervals.map((interval) => interval.label || name(interval))
Expand Down

0 comments on commit d714522

Please sign in to comment.