Merge commit '63eb912434' into notes-and-numbers
This commit is contained in:
commit
9b3f77f4f5
29 changed files with 22191 additions and 20121 deletions
|
|
@ -55,7 +55,9 @@ Pattern.prototype._transpose = function (intervalOrSemitones) {
|
|||
const semitones = typeof interval === 'string' ? Interval.semitones(interval) || 0 : interval;
|
||||
return event.withValue(() => event.value + semitones);
|
||||
}
|
||||
return event.withValue(() => Note.transpose(event.value, interval));
|
||||
// TODO: move simplify to player to preserve enharmonics
|
||||
// tone.js doesn't understand multiple sharps flats e.g. F##3 has to be turned into G3
|
||||
return event.withValue(() => Note.simplify(Note.transpose(event.value, interval)));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue