Trouble with Additive synth CONFUSED

Jan 10, 2012 at 2:04pm

Trouble with Additive synth CONFUSED

I am making an additive synth for a uni project and have run into a bit of trouble. As far as I know this patch should work but it isn’t lol any suggestions?…

#61145
Jan 10, 2012 at 3:49pm

You don’t need that line~. Go straight from adsr~ to *~.

Also, there’s nothing additive here. Your use of segmented patch cords makes it hard to follow the signal flow. And, I’m not sure that note-off logic is necessary since the patch is monophonic. When/if you go for polyphony, be sure to look at the Borax object.

mz

#220362
Jan 10, 2012 at 4:31pm

Now it’s additive. It’s a work in progress lol. Thanks for the help! What other note off logic would you suggest to use with midi? I tried [midiin]>[cycle~] before but the note doesn’t stop when I let go of the key. Could it be done more simply with [select] objects?
Also the next bit I am trying to add with the [noise] object is confusing me. I would like to automate the signal. For example press a button which would trigger the noise object to send noise for a specified time before stopping.

#220363
Jan 10, 2012 at 4:31pm

p.s. apologies if the text doesn’t work. I used a custom font…

#220364
Jan 10, 2012 at 8:13pm

The midi note stuff was more complicated than it needed to be, I think. I replaced it with some simpler code, then complicated it again with some velocity scaling stuff. I also added a noise blip on the beginning of notes.

– Pasted Max Patch, click to expand. –

It’s still not an additive synth, BTW.

#220365
Jan 10, 2012 at 11:07pm

your sustain should be a floating point value between 0. and 1.

how come you scale the float on the velocity and not /127.?

isn’t this a subtractive synth?

#220366
Jan 11, 2012 at 1:27am

Thanks for the help! I really appreciate it. I don’t understand how it isn’t an additive synth though. I’m adding different waveform together to create a new one… surely that is additive

#220367
Jan 11, 2012 at 2:04am

Or is it all about the partials?

#220368
Jan 11, 2012 at 2:56am

Here we go. Pretty much completed =) I decided to stick with the original midi note stuff because for some reason it was more responsive. The new one that you created for me Chris, was great but if i overlapped two notes slightly there were some issues with notes cutting off when i didn’t want them too.
Also, now I’ve added the option of changing the 2nd 3rd 4th and 5th oscillators to be partials of the fundamental it should be a fully fledged additive synth right?
Thanks for all the help guys! Let me know what you think XD

– Pasted Max Patch, click to expand. –
#220369
Jan 11, 2012 at 3:39am

I missed the sustain thing.

The reason that this is not additive is that in a traditional additive synth there are sine wave oscillators arranged in the harmonic series.

#220370
Jan 11, 2012 at 5:42am

I just noticed that a comment snuck in before my last comment. I didn’t notice a problem with my note parsing code, but if you end up putting this into a poly~ so that it can be played polyphonically the note input code will change anyway.

As far as this being an additive synth, I don’t really think it is yet. True, you have a few oscillators that can be set to harmonic ratios to the fundamental, but there would need to be individual envelopes for each partial, and there would need to be significantly more partials before I would call it an additive synth. It’s not just mixing oscillators, it’s how those oscillators change in relation to each other.

This is closer to a Hammond organ in spirit, so far. You have slider to create a mix of harmonics, a Hammond has drawbars, but the concept is similar.

#220371

You must be logged in to reply to this topic.