Using umenu and selector to select between wave forms???

jmantonucci's icon

Hi-

I'm new to Max/MSP. I want to use the selector object with the umenu object to allow easy selection between 4 waveforms: cycle~, saw~, tri~, and rect~. I have each wave object output connected to each of the four inlets on my select object, but how to I connect the umenu object to switch between each of these selections?

Thanks for the help!!

Andro's icon

You have to fill in the custom field with the messages separated by a comma, load up the umenu example and open the inspector for the object to see what I mean.

dannyflint's icon
Max Patch
Copy patch and select New From Clipboard in Max.

is this what you want?

jmantonucci's icon
Max Patch
Copy patch and select New From Clipboard in Max.

Yes, but it's for a polyphonic synth. I want to be able to choose which waveform for my synth. I'm using poly~, and this is my sub patch:

However, I'm unsure how to attach this umenu/selector~ to my patch to make it output. I've tried doing it many different ways, but all I hear are clicks when I play my MIDI keyboard. Before I tried this, I just had saw~ in between mtof and *~ 0.5 and it worked perfectly. I simply want to be able to have the option of changing waveforms!!

dannyflint's icon
Max Patch
Copy patch and select New From Clipboard in Max.

it changes waveforms fine with the k slider, or am i missing your point

Danny

jmantonucci's icon
Max Patch
Copy patch and select New From Clipboard in Max.

All I get is clicks when I try.

Devin's icon

I must say that I've been trying to do the same thing unsuccessfully. When I introduce the different waveform options in the subpatcher, I lose the polyphony.

Source Audio's icon

There are sooo many mistakes in that patch ....
Look at notein right output (midi channel) routed to kslider velocity input !!!!
Than all that stuff "prepend midinote" pack , unpack etc beween kslider note number output and mtof.
All Oscilators need a plain float as frequency.
In that patch you don't have any velocity integrated at all.
That would have to be done converting velocity 0 -127 to 0. - 1. Audio Level - Smoothed !
for example use matrix~ 1 1 1 with loadbanged message "ramp 10" , and 0 0 $1 message feeded with Velocity / 127. (float !)
----------
Also there is a more elegant way to select waveforms,
read the cycle~ helpfile and reference, about refering to a buffer
loaded with waveforms.
You have to learn how to create 512 samples buffers,
but once that is done, You can have many waveforms to choose from.
Another option is to load real samples into buffer and play them with groove,
using transposition formula to get right pitches for midi notes.
I hope that helps You a bit.

Christopher Dobrian's icon
Christopher Dobrian's icon

But more to the point of your initial question:

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