Skip to content

Commit

Permalink
Update sonic-weave dependency
Browse files Browse the repository at this point in the history
Include APP_TITLE in the ambient context.

SonicWeave changelog:
* Include VERSION in the ambient context
* Only sort the record's part when pushing onto the scale
* Make conversions softer in terms of formatting if nothing needs to be changed
* Fix formatting of absolute intervals below C
  • Loading branch information
frostburn committed Apr 12, 2024
1 parent bbd9780 commit 5024258
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
12 changes: 6 additions & 6 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.10",
"version": "3.0.0-beta.11",
"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.11",
"sonic-weave": "github:xenharmonic-devs/sonic-weave#v0.0.12",
"sw-synth": "^0.1.0",
"temperaments": "^0.5.3",
"vue": "^3.3.4",
Expand Down
2 changes: 2 additions & 0 deletions src/stores/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import {
repr
} from 'sonic-weave'
import {
APP_TITLE,
DEFAULT_NUMBER_OF_COMPONENTS,
INTERVALS_12TET,
MIDI_NOTE_COLORS,
Expand Down Expand Up @@ -302,6 +303,7 @@ export const useScaleStore = defineStore('scale', () => {
const _ = Interval.fromInteger(baseMidiNote.value)
const baseFreq = new Interval(TimeMonzo.fromArbitraryFrequency(baseFrequency.value), 'linear')
const extraBuiltins: Record<string, SonicWeaveValue> = {
APP_TITLE,
scaleName: name.value,
_,
baseMidiNote: _,
Expand Down

0 comments on commit 5024258

Please sign in to comment.