Fine detune of sample after intial note value set?

asiansteve's icon

I'd like to set the pitch of a buffer~ using mtof with a num object and then detune it by say -1 to +1 or more, on a dial where the center of the dial is unison.

My problem is once the initial frequency is set the dial ends up jumping the note to a different value instead of detuning.

I also am using messages to automatically speed up or slow down the sample and the dial will not follow the pitch.

Here is what I have so far some one suggested something about how I have the dial now but it is not working.

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

Also, is there anyway to copy compressed with a buffer~ loaded?

simohnf's icon

Not sure if this the problem you're getting at but try using a line~ object instead of sig~, that way you can choose a ramp time and you will get a gradual change rather than a jump... Also you have nothing connected to the left inlet of the * object which is setting the pitch so you're always just gonna get 0 out of it.

simohnf's icon

Try this maybe

4070.Detune.maxpat
Max Patch
asiansteve's icon

Thanks chubby! So that works now. The only thing I'm still having trouble wrapping my brain around is having a dial have a middle point say (64) and that being unison pitch. And counterclockwise turns detune and clockwise increase pitch.

I noticed dials wont take minimum negative values.

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

Here appears to be a crude way of doing so.

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

see the [scale] object:

hth

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

Thanks works great. Is there a way to double click a knob and have it return to center position. I have a message to center the knob but was wondering if there is a way to maybe have to double click a message before it is fired?