Forums > MaxMSP

frequency pitch to groove~ pitch translation

November 2, 2008 | 9:26 pm

could anyone give me a hint how to translate (eventually midi controlled and tempered) tone pitch to controlling pitch with a groove object?

obviously pitch value 1 is the base tone, 2 is an octave, 3 is a quint above, 4 is the 3nd octave and following harmonic division of frequencies, nevertheless:

how can i establish to control semitones for the pitch of the groove object?

i am aware of the existence of a scaling system, but can’t find info within this forum as the search function here is rather limited (if only for the 30 secs limit)

dedicated for the one inclined: thank you very much in advance!

jrp


November 2, 2008 | 9:32 pm

I think this might help you. The second number box sets the number of steps between octaves, so in your case you could set "$f2" to "12" inside the [expr]. The toggle switches between forwards and backwards and the first number box does the calculation: 0 for normal speed, 12 for double speed, -12 for half speed and so on.

lh

– Pasted Max Patch, click to expand. –

November 2, 2008 | 10:14 pm

thank you very much!

could thi spossibly be aplied to some kind of keyboard object as well?

please excuse my probably very standard inquieries… and feel free to not answer in case i am too demanding.

jrp


November 2, 2008 | 10:19 pm

Look at [kslider] you could easily hook this up to the left inlet of the [expr] object in my patch. You will have to open the [kslider] object info panel and change the offset and number of notes displayed to get what you want though. Ask as many questions on this forum as you like but bear in mind that for simple questions like this people are likely to point you to the tutorials and with good reason: they are the best place to start.

lh


November 2, 2008 | 10:27 pm

No problem about the tutorials, i read them a lot these days, thanx for reminding, and thanx very much for your help.

jrp


November 3, 2008 | 12:47 am

If I understand this might help you.

– Pasted Max Patch, click to expand. –

On Sun, Nov 2, 2008 at 11:27 PM, jayrope wrote:

>
> No problem about the tutorials, i read them a lot these days, thanx for
> reminding, and thanx very much for your help.
>
> jrp
> –
> —
> fiction-induced heat
>


November 3, 2008 | 10:42 am

desiredfish, i am afraid your patch shows only one outlet.

don’t worry, i got it working already thanx to thereishopforus.

jrp


November 4, 2008 | 8:35 am


November 4, 2008 | 5:00 pm

Ew, but the "transratio" patch uses the nasty looking [expr exp(0.057762265*$f1)] which works just as well but doesn’t make much sense. [expr pow(2.,($f1/12))] seems a lot nicer to me.

I have the same problem with the [ftom] help patch explaining the calculation as [expr (69. + (1./0.057762265) * log($f1/440.))]. Obviously not an actual problem as it’s the exact same maths going on. However, to me, it looks plain wrong.

Whilst I’m on the subject of evil maths someone please destroy the last inlet of [scale]! ;)


November 4, 2008 | 5:05 pm

i gues sthe difference is just because 0.057762265*$f1 is less ‘expensive’ computing then $f1/12. obviously under certain circumstances $f1/12 would be more exact…


Viewing 10 posts - 1 through 10 (of 10 total)