This commit is contained in:
Aria
2025-10-04 02:13:42 -05:00
parent 3ef6c7c921
commit 11dd8a318a
+1 -1
View File
@@ -268,7 +268,7 @@ export const scale = register(
const isObject = typeof value === 'object';
// If value is a pure value, place it on `n` so that we interpret it as a scale
// degree
value = typeof value !== 'object' ? { n: value } : value;
value = isObject ? value : { n: value };
if ('note' in value) {
const note = _getNearestScaleNote(scale, value.note);
return pure({ ...value, note });