scale fail!

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

Hi, I'm trying to scale frequency back to MIDI so my dials move as the frequency is changed allowing them to update when i switch between filters. Any help would be appreciated..

edbraund's icon

Have a look at [ftom]

josha's icon

Hi,

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

yes, I've used ftom in the patch. Without scaling the patch was working fine- like this>

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

But when i used scaling it stops working.

I think I've messed up on the frequecny to MIDI, but i'm not sure..

vichug's icon

well of course, you take a value in Hz as a MIDI one... and you reconvert it to Hz(but it is already Hz)... but i don't understand what you're trying to do here, it's a bit bizarre !

Roman Thilenius's icon

put the ftom behind the scale

josha's icon

sorry if I'm confusing anyone. To clarify: patch 1 (below), allows me to change frequency of 2 filters using one dial. I can control which band the dial changes using the tab. The dial position updates when i toggle the tab.

Max Patch
Copy patch and select New From Clipboard in Max.
I needed to scale the dial value as it was too coarse so scaled MIDI to Hz. This is where its going wrong-  I would like this to work like patch 1 (i.e. the dial position updating as I switch between filters using tab) but with the scaling added to make the dials control smoother..

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

`

josha's icon

Apologies for the bump. I'm still scratching my head over this. Any help would be massively appreciated..

Peter McCulloch's icon

Filtergraph~ is outputting the values for all of its filters with every update, so you need to distinguish between the different filters. (You can see this by attaching a print object to filtergraph~'s frequency outlet; it happens too fast for you to see in a numberbox.)

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

Try this: