mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-22 11:08:35 +00:00
palindrome
This commit is contained in:
parent
939bc643be
commit
8fda84c15a
@ -315,7 +315,6 @@ export class Pattern {
|
|||||||
return this.range(Math.log(min), Math.log(max)).fmap(Math.exp);
|
return this.range(Math.log(min), Math.log(max)).fmap(Math.exp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Assumes source pattern of numbers in range -1..1
|
// Assumes source pattern of numbers in range -1..1
|
||||||
range2(min, max) {
|
range2(min, max) {
|
||||||
return this._fromBipolar().range(min, max);
|
return this._fromBipolar().range(min, max);
|
||||||
@ -616,6 +615,10 @@ export class Pattern {
|
|||||||
return new Pattern(query)._splitQueries();
|
return new Pattern(query)._splitQueries();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
palindrome() {
|
||||||
|
this.every(2, rev);
|
||||||
|
}
|
||||||
|
|
||||||
juxBy(by, func) {
|
juxBy(by, func) {
|
||||||
by /= 2;
|
by /= 2;
|
||||||
const elem_or = function (dict, key, dflt) {
|
const elem_or = function (dict, key, dflt) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user