Posted: Thu Oct 20, 2011 6:27 am Post subject:
Triangle,pulse and sawtooth waves in Max using cycle~ ??Subject description: How can I create other waveshapes in Max using cycle and some maths??

Hi all. I am currently doing a project for University involving making a Monosynth using Max/Msp. The synth must have at least 4 waveshapes BUT I'm not allowed to use Phasor~, Tri~, Rect~ or any of those. Instead I must use Cycle~ with a link to a buffer through some sort of mathematical function... I understand the process of creating a sine wave but not how to incorporate other waveshapes into the buffer lookup table... Does anyone have any experience in this and if so, could you give me a few pointers?? Any help appreciated, Thanks,
Steve.

without telling you all the answers, it's pretty easy to make these three waveforms in a buffer._________________Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.Home,My Studio,and another view

Hi! Yes thats it. Using a cycle~ to create a wavetable buffer containing a single cycle of saw sqr tri and sine ( sine is simple.) I've managed the triangle wave now using : expr 2/3.14259 *asin (sin(2*3.14159 *$f1)). This gives me a nice triangle wave. The $f1 is an inlet from a number box containing the ( /511) for floating point division.
I will have a look at the links below. Thanks!!

Ok Mr Edison, Sawtooth is odd and even harmonics with reciprocals of the amplitude.... Using this knowledge I supplied the expr below to the buffer.
I can't get past using more than 9 permutations of the wave before and error occurs ( the expr box goes grey and there are no ins or outs...) . Is this the best way of doing it? I though I could use another uzi firing bangs into a number being another variable ($f2)for the harmonic multiplication and having the amplitude coming in as $f3 but i'm not sure how to go about it.. Its a tricky one. I don't like to make excuses but I am new to Max/msp....

saws.jpg

Description:

Max/MSP patch of attempt at a sawtooth buffer... Long way of working... ???

Mathematically the sawtooth is a combination of all harmonics. Practically speaking you can't really produce it the way you're going about it unless you're into calling functions recursively.

But consider the actual resulting waveform. It's linear, as are square waves (or any pulse of which a square is a 50% duty cycle pulse), and a triangle which is also linear.

You only need to generate the right shape into the buffer and these are basic waveforms._________________Garret: It's so retro.
EGM: What does retro mean to you?
Parker: Like, old and outdated.Home,My Studio,and another view

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot vote in polls in this forumYou cannot attach files in this forumYou can download files in this forum

Please support our site. If you click through and buy from our affiliate partners, we earn a small commission.