Skip to content

Commit

Permalink
Run the formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
frostburn committed Apr 27, 2024
1 parent aadf6eb commit 2c920ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/exporters/korg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,7 @@ export class KorgExporter extends BaseExporter {

// prepare files for zipping
const format = getKorgModelInfo(this.modelName)
const tuningInfo = this.getTuningInfoXml(
this.modelName,
'ScaleWorkshop',
scale.title
)
const tuningInfo = this.getTuningInfoXml(this.modelName, 'ScaleWorkshop', scale.title)
const fileInfo = this.getFileInfoXml(this.modelName)
const [fileNameHeader, fileType] = this.useOctaveFormat
? ['TunO_000.TunO_', format.octave]
Expand Down
7 changes: 6 additions & 1 deletion src/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,12 @@ export class Scale {
* @param baseFrequency Base frequency of 1/1.
* @param baseMidiNote MIDI note corresponfing to base frequency
*/
constructor(intervalRatios: number[], baseFrequency: number, baseMidiNote: number, title: string) {
constructor(
intervalRatios: number[],
baseFrequency: number,
baseMidiNote: number,
title: string
) {
this.intervalRatios = intervalRatios
this.baseFrequency = baseFrequency
this.baseMidiNote = baseMidiNote
Expand Down
7 changes: 6 additions & 1 deletion src/stores/scale.ts
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,12 @@ export const useScaleStore = defineStore('scale', () => {
}
if (ratios.length) {
const name = str.bind(ev)
scale.value = new Scale(ratios, visitorBaseFrequency, baseMidiNote.value, ev.rootContext!.title)
scale.value = new Scale(
ratios,
visitorBaseFrequency,
baseMidiNote.value,
ev.rootContext!.title
)
if (autoColors.value === 'silver') {
colors.value = intervals.map(
(interval, i) =>
Expand Down

0 comments on commit 2c920ac

Please sign in to comment.