| Hans Mikelson wrote:
>
> Hello Csounders,
>
> A while ago someone asked for a way to smoothly transform from a saw tooth
> wave to a ramp wave. I have attached one version of this. This instrument
> uses the algorithm for a bouncing ball similar to that used for "Pong" and
> other video games. This could be modified to produce a wide variety of
> triangle like wave transformations.
See and try my "mirror" opcode source at the url:
http://www.agora.stm.it/G.Maldonado/download.htm
the sintax is:
idest imirror isig, ilow, ihigh
kdest mirror ksig, klow, khigh
adest mirror asig, klow, khigh
As you can see, it can work at any rate and the distance and position of
the two walls (low and high) can be varied at k-rate. Obviously it
allows k-rate != from a-rate.
bye and happy csounding :)
--
Gabriel Maldonado
mailto:g.maldonado@agora.stm.it
http://www.agora.stm.it/G.Maldonado/home2.htm
|