This commit is contained in:
alex 2022-04-15 22:41:39 +01:00
parent f41d89515c
commit 939bc643be

View File

@ -311,6 +311,11 @@ export class Pattern {
return this.mul(max - min).add(min);
}
rangex(min, max) {
return this.range(Math.log(min), Math.log(max)).fmap(Math.exp);
}
// Assumes source pattern of numbers in range -1..1
range2(min, max) {
return this._fromBipolar().range(min, max);