fixed OSC
This commit is contained in:
parent
d79fe1f91e
commit
9bb85c8bfa
@ -13,7 +13,7 @@ class Oscillator {
|
|||||||
|
|
||||||
public float update() {
|
public float update() {
|
||||||
_theta += _step;
|
_theta += _step;
|
||||||
return (sin(_theta) * _length / 2) + _length / 2;
|
return (sin(_theta) * (_length / 2)) + (_length / 2) + _min;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user