Skip to content

Commit

Permalink
Update sonic-weave dependency
Browse files Browse the repository at this point in the history
SonicWeave changelog:
* Fix non-standard val equaves
* Fix vals in non-orthogonal subgroups
* Fix implicit tempering in small subgroups
* Error messages are more human-readable
* Fix inline comments
* Make monzos the univeral type by admitting Hz and rc as basis elements
* Change prime limit syntax from 12@5 to [email protected]
  • Loading branch information
frostburn committed Apr 15, 2024
1 parent 770d89f commit 2574862
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 21 deletions.
20 changes: 3 additions & 17 deletions package-lock.json

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

4 changes: 2 additions & 2 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.11",
"version": "3.0.0-beta.12",
"scripts": {
"dev": "vite",
"build": "run-p type-check \"build-only {@}\" --",
Expand All @@ -21,7 +21,7 @@
"moment-of-symmetry": "^0.4.2",
"pinia": "^2.1.7",
"qs": "^6.12.0",
"sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.12",
"sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.14",
"sw-synth": "^0.1.0",
"temperaments": "^0.5.3",
"vue": "^3.3.4",
Expand Down
4 changes: 2 additions & 2 deletions src/stores/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ export const useScaleStore = defineStore('scale', () => {

// Extra builtins
function latticeView(this: ExpressionVisitor) {
const scale = this.getCurrentScale()
const scale = this.currentScale
for (let i = 0; i < scale.length; ++i) {
scale[i] = scale[i].shallowClone()
// XXX: Abuses the fact that SonicWeave tracking ids are positive.
Expand Down Expand Up @@ -362,7 +362,7 @@ export const useScaleStore = defineStore('scale', () => {
}
}

const intervals = visitor.getCurrentScale()
const intervals = visitor.currentScale
const ev = visitor.createExpressionVisitor()
const rel = relative.bind(ev)
relativeIntervals.value = intervals.map((i) => rel(i))
Expand Down

0 comments on commit 2574862

Please sign in to comment.