Page 1 of 1
how to produce triangle wave over time
Posted: 15 Mar 2013 14:31
by Softcore
Taken from the manual, we can use:
x = sin(time*2)*0.5+0.5 to produce x values that will form a sine wave.....
Is there a similar way to achieve x output for a triangle wave?
In fact what I want to achieve is for x to linearly move from 0 to 1 to 0 over time......Any suggestions?
Thanks!
Re: how to produce triangle wave over time
Posted: 15 Mar 2013 20:24
by Joe Soap
You might want to take a look at Jay's LModIT in the Lib . . . it seems to do . . . stuff!
Re: how to produce triangle wave over time
Posted: 17 Mar 2013 12:58
by Macciza
Hi
Maybe x=abs((time%2)-1) . . .
or as a function lfoTri(freq) = abs((time*freq%2)-1) with freq being the argument to vary the speed . . .
Can also modify these equations for amp and offset if needed . . .
Cheers
MM
Re: how to produce triangle wave over time
Posted: 18 Mar 2013 18:07
by Softcore
Thanks for the suggestions!
Re: how to produce triangle wave over time
Posted: 18 Mar 2013 18:19
by nitefish
Sorry,but I don't understand:
this is "x" from what object?
SignalScope?
What about the "y",so ?
Re: how to produce triangle wave over time
Posted: 18 Mar 2013 18:36
by Joe Soap
Doesn't have to be a Signalscope.
Could be any parameter you want to modulate.
Could even be a Y.