function sinmult(val, time, multiplier) {
return sin(val/(time/3))*multiplier;
}
function cosmult(val, time, multiplier) {
return cos(val/(time/3))*multiplier;