Skip to content

Commit

Permalink
Bypass complex monzo calculations in the tuning table
Browse files Browse the repository at this point in the history
Update xen-dev-utils and scale-workshop-core dependencies.

ref #528
  • Loading branch information
frostburn committed Jan 13, 2024
1 parent 873c0b9 commit b213592
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 13 deletions.
16 changes: 8 additions & 8 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
Expand Up @@ -20,12 +20,12 @@
"moment-of-symmetry": "^0.3.3",
"pinia": "^2.1.7",
"qs": "^6.11.2",
"scale-workshop-core": "github:xenharmonic-devs/scale-workshop-core#v0.0.9",
"scale-workshop-core": "github:xenharmonic-devs/scale-workshop-core#v0.1.0",
"temperaments": "^0.4.6",
"vue": "^3.3.4",
"vue-router": "^4.2.5",
"webmidi": "^3.1.7",
"xen-dev-utils": "^0.2.2",
"xen-dev-utils": "^0.2.3",
"xen-midi": "^0.1.1"
},
"devDependencies": {
Expand Down
5 changes: 2 additions & 3 deletions src/components/TuningTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,11 @@ const rows = computed(() => {
const colors = props.keyColors.length ? props.keyColors : ['white']
return props.frequencies.map((frequency, i) => {
const index = i - props.baseMidiNote
const monzo = props.scale.getMonzo(index)
return {
index: i,
frequency: frequency,
cents: monzo.toCents(),
ratio: monzo.valueOf(),
cents: props.scale.getCents(index),
ratio: props.scale.getRatio(index),
name: props.scale.getName(index),
keyColor: colors[mmod(index, colors.length)],
isRoot: index === 0,
Expand Down

0 comments on commit b213592

Please sign in to comment.