Cleanup
This commit is contained in:
parent
3ef6c7c921
commit
11dd8a318a
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue