diff --git a/src/components/modals/generation/HistoricalScale.vue b/src/components/modals/generation/HistoricalScale.vue index c5a675fa..32e21f52 100644 --- a/src/components/modals/generation/HistoricalScale.vue +++ b/src/components/modals/generation/HistoricalScale.vue @@ -145,7 +145,7 @@ function generate(expand = true) { } } if (historical.format === 'cents') { - source += `\ni => cents(i, ${scale.centsFractionDigits})` + source += `\ncents(£, ${scale.centsFractionDigits})` } // Check if the scale can be centered around C if ( diff --git a/src/components/modals/modification/RandomVariance.vue b/src/components/modals/modification/RandomVariance.vue index 1442659a..1ed21e71 100644 --- a/src/components/modals/modification/RandomVariance.vue +++ b/src/components/modals/modification/RandomVariance.vue @@ -25,7 +25,7 @@ const equave = computed(() => { }) function modify(expand = true) { - scale.sourceText += `\nrandomVariance(${centString(modal.varianceAmount)}, ${modal.varyEquave})\ninterval => cents(interval, ${scale.centsFractionDigits})` + scale.sourceText += `\nrandomVariance(${centString(modal.varianceAmount)}, ${modal.varyEquave})\ncents(£, ${scale.centsFractionDigits})` if (expand) { const { visitor, defaults } = scale.getUserScopeVisitor() scale.sourceText = visitor.expand(defaults) diff --git a/src/components/modals/modification/StretchScale.vue b/src/components/modals/modification/StretchScale.vue index 07243916..0b37084d 100644 --- a/src/components/modals/modification/StretchScale.vue +++ b/src/components/modals/modification/StretchScale.vue @@ -16,7 +16,7 @@ const modal = useModalStore() const scale = useScaleStore() function modify(expand = true) { - scale.sourceText += `\nstretch(${decimalString(modal.stretchAmount)})\ninterval => cents(interval, ${scale.centsFractionDigits})` + scale.sourceText += `\nstretch(${decimalString(modal.stretchAmount)})\ncents(£, ${scale.centsFractionDigits})` if (expand) { const { visitor, defaults } = scale.getUserScopeVisitor() scale.sourceText = visitor.expand(defaults)