Sawtooth Wave Via expr

Rocky's icon

Hi, can someone tell me if this is a sawtooth wave (or atleast getting there) i know there is not enough harmonics
Thanks!

Max Patch
Copy patch and select New From Clipboard in Max.


Mattijs's icon

Quote: Rocky wrote on Fri, 01 December 2006 11:50
----------------------------------------------------
> Hi, can someone tell me if this is a sawtooth wave (or atleast getting there) i know there is not enough harmonics
> Thanks!

It looks like a sawtooth. I changed your patch so that it actually generates the waveform. Doubleclick the buffer~ to see it.

Max Patch
Copy patch and select New From Clipboard in Max.

Rocky's icon

really appreciate the help, can you explain what the trigger does and why the buffer is set to 24 and also the -1.
Thanks

volker böhm's icon

On 01 Dec 2006, at 11:50, Freddy wrote:

>
> Hi, can someone tell me if this is a sawtooth wave (or atleast
> getting there) i know there is not enough harmonics
> Thanks!

i would use something like this to sum an "arbitrary" number of
partials into a single sawtooth-waveform.
volker.

Max Patch
Copy patch and select New From Clipboard in Max.

Mattijs's icon

Quote: Rocky wrote on Fri, 01 December 2006 12:37
----------------------------------------------------
> really appreciate the help, can you explain what the trigger does and why the buffer is set to 24 and also the -1.
> Thanks
----------------------------------------------------

np :)

The trigger makes sure the second argument of pack is set before the first argument. This is because the first argument triggers the pack to send its output.

The 24 is because the buffer needs to know how much samples it is supposed to hold. 24 is in milliseconds, with a samplerate of 44100 Hz this amounts to (a bit more than) 1024 samples.

-1 after uzi is because uzi's third outlet starts outputting at 1 while the sample index in peek~ starts at 0.

This can all be found in the tutorials and help files. I would advise you to do the max and msp tutorials. There's a lot info you might find useful.

Cheers,
Mattijs