Skip to content

Commit

Permalink
Migrate from temperaments package to sonic-weave/Temperament
Browse files Browse the repository at this point in the history
Fix circle step pattern display with multiple periods.
Remove support for non-equave constraints.
  • Loading branch information
frostburn committed Jul 9, 2024
1 parent e32c473 commit 23373b0
Show file tree
Hide file tree
Showing 10 changed files with 434 additions and 970 deletions.
142 changes: 6 additions & 136 deletions package-lock.json

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

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@
"moment-of-symmetry": "^0.8.2",
"pinia": "^2.1.7",
"qs": "^6.12.0",
"sonic-weave": "0.9.0",
"sonic-weave": "^0.10.1",
"sw-synth": "^0.1.0",
"temperaments": "^0.5.3",
"values.js": "^2.1.1",
"vue": "^3.3.4",
"vue-router": "^4.3.0",
Expand Down
72 changes: 0 additions & 72 deletions src/__tests__/tempering.spec.ts

This file was deleted.

3 changes: 2 additions & 1 deletion src/components/PeriodCircle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ const mosLabel = computed(() => {
else if (step === M) countM++
else if (step === L) countL++
}
return `${countL}L ${countM}M ${countS}s`
const n = props.numPeriods
return `${n * countL}L ${n * countM}M ${n * countS}s`
}
// There are degenerate edgecases with step variety = 2. Show nothing to avoid implying MOS.
return ''
Expand Down
Loading

0 comments on commit 23373b0

Please sign in to comment.