# [PD] [mtof~] !!!

William Huston williamahuston at gmail.com
Wed Oct 5 09:06:10 CEST 2016

```I just discovered this!
It looks like it shipped with extended?
Also looks like it is in Max?

This thing is awesome because it solves a problem I often have
with LFO wave-shaping.

I have an LFO like [osc~ 3] which has a range of (-1, 1).
I want to be able to use this to represent a frequency scaler.

So let's say that +1 is like +1VDC @ 1VDC/octave
(like a modular synth).  So +1 is like 12 semitones up (octave)
and -1 is like 12 semitones down.

However this seems really complicated to take a sine wave
with a range -1,1 and scale that to 0.5,2 to represent a frequency
scalar. (f * 0.5 = one octave down, f * 2 = one octave up).

if V~ is your LFO voltage value (input) and
you want to generate your voltage-scalar S~:
Then it's something like

*S~ = (2^(1/12)) ^ (V~ * 12)*
This can be done with an [expr~] or with some math~,
but it seems cumbersome to me.

But if I can convert a (float) MIDI value to frequency value,
*at signal rate*, then I can simply ADD my ordinary [osc~ 3] LFO
(and also linear Bend-value) and i'm done.

(I think of this signal-rate "voltage" representing frequency
to be actually like
* F~ = MIDIval + LFO~ + Bend)*

This is so handy, I would like to ask that [mtof~] be added to Vanilla
(if it's not already there) or maybe Alexandre can report
if it is in his new Cyclone?

Thanks,
BH

--
--
May you, and all beings
be happy and free from suffering :)
-- ancient Buddhist Prayer (Metta)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20161005/f88be471/attachment.html>
```