triggering oscillators

Nano59's icon

i've built a synth patch based on the additive synthesis example in max msp help. Basically the oscillators are triggered by a stripnote~ object whenever a key is pressed, so the result is that when you play a chord and change one note the oscillator is reset and triggered again. The oscillators go into a *~ object with a function object triggered by a bang going into a line~. All the oscillators are triggered at the same time which may be a problem too.
The constant resetting of the oscillators is a bit annoying. My question is, is there a better way to trigger the oscillators other than the above or a metro~ object with long intervals?

cheers

brendan mccloskey's icon

what precisely do you mean by "all the oscillators are triggered at the same time"? I assume you're using [midiin] or [notein] to extract and map note-numbers for the oscillators and also perhaps velocity to control line/function amplitude. I'm not in front of Max right now, but i'm not sure if there is a strictly MSP (ie, digital audio processing) object called [metro~]; if you mean the Max object [metro] this will trigger output repeatedly. Have you loked at the [makenote] object? If you post your patch with your question you'll get focussed support and advice more quickly.

Chris Muir's icon

Without seeing your patch it's hard to give advice. It sounds like a job for poly~ though.

Nano59's icon

The problem is with a note on all the oscillators are triggered from the beginning and if there is a new note on then the oscillators reset and play from the beginning.

How do you keep the oscillators playing fluidly instead of reacting to a note on. Basically to change note and not distrupt the oscillators.

The main patch (posted below) has an unused attack/release set of objects. This is an old version of it before i did it up. The new version is on my laptop in which is in the shop after the gfx card crapped itself. So if there are any other faults in the patches I apologise. I've fixed them up as best I could

thanks again :)

patch:

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

subpatch:

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