implement "?" operator in minilanguage (for degradeBy)
this will require update to krill-parser.js (aggregated in later commit) to work properly
This commit is contained in:
parent
8244ba7754
commit
964ee68974
2 changed files with 6 additions and 1 deletions
|
|
@ -21,6 +21,8 @@ const applyOptions = (parent) => (pat, i) => {
|
|||
return reify(pat).fast(speed);
|
||||
case 'bjorklund':
|
||||
return pat.euclid(operator.arguments_.pulse, operator.arguments_.step, operator.arguments_.rotation);
|
||||
case 'degradeBy':
|
||||
return reify(pat)._degradeByWith(strudel.rand.early(0.0001 * _nextSeed()).segment(1), operator.arguments_.amount);
|
||||
// TODO: case 'fixed-step': "%"
|
||||
}
|
||||
console.warn(`operator "${operator.type_}" not implemented`);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue