PWM on different objects

Feb 17, 2013 at 2:05pm

PWM on different objects

hello,

new to max/msp obviously.Can anyone help me on how can I do a pulse width modulation on objects (cycle,saw etc) other than rect ?

thanks in advance

#66565
Feb 18, 2013 at 2:16am

you can’t
[rect] generates PULSE waveshape. PULSE waveshape does have PULSE width.
saw waveshape and sine waveshape does not have pulse in their waveshape, so you can’t even set it’s width, while it just doesn’t exist.
You can shape their waves in other ways (for example morph SAW into TRI into RAMP), but you just can’t modulate their pulse width, if they don’t have any…

#239593
Feb 18, 2013 at 4:12am

You can draw arbitrary shapes for cycle~, it uses a sine wave by default but it can be anything, just make a buffer~ with 512 samples and draw into it using waveform~. All the info you need is in the help files for each :)

happy waveshaping

#239595
Feb 18, 2013 at 11:38am

As I’ve been very vocal on this forum recently, I’d like to sing leafcutter’s praises for this gen code, which allows one to vary the width between cycles. I hope he doesn’t accuse me of being an in-formant

; )

– Pasted Max Patch, click to expand. –

Brendan

#239596
Feb 18, 2013 at 12:06pm

….so far, it’s brought me a ray of sunshine, but no dough.

Or tea

Etc

#239597
Feb 18, 2013 at 10:58pm

you can’t pwm other waveforms very easily in MSP but you can bend their phase’s…

– Pasted Max Patch, click to expand. –
#239598
Feb 19, 2013 at 5:32am

however, i´d like to second seejayjames suggestion to start from cycle~ or wave~ and not from these modern all-in-one oscillator objects, which, in my opinion, are only getting you sidetracked from the fact that maxmsp is a programming language (and not a modular synth).

it will cause some headache at first when you build a PWM-able cycle-based oscillator yourself, but you will end up with a solution which works with ANY thinkable waveform – plus you will learn a lot from doing so.

-110

#239599

You must be logged in to reply to this topic.