fun: tweak
This commit is contained in:
parent
b9a4779a52
commit
ab13271599
|
@ -11,25 +11,23 @@ export default () => ({
|
|||
},
|
||||
shake: ({
|
||||
frequency = 1,
|
||||
magnitude = 3,
|
||||
magnitude = 2,
|
||||
traits,
|
||||
i,
|
||||
length,
|
||||
}) => {
|
||||
const lfo = get(traits, 'Evolving.params.lfo', {});
|
||||
lfo.x = {
|
||||
frequency,
|
||||
location: ((i % length) / length),
|
||||
magnitude: magnitude / 2,
|
||||
median: 0,
|
||||
modulators: ['Random'],
|
||||
resolution: 0.01,
|
||||
};
|
||||
lfo.y = {
|
||||
frequency,
|
||||
location: ((i % length) / length),
|
||||
magnitude,
|
||||
median: 0,
|
||||
modulators: ['Random'],
|
||||
resolution: 0.01,
|
||||
};
|
||||
set(traits, 'Evolving.params.lfo', lfo);
|
||||
return traits;
|
||||
|
|
Loading…
Reference in New Issue
Block a user