I have a range of values from 0 – 150 and I have scaled them across a 30 – 5000 hz frequency range and am outputting as a sine wave.
The problem I have is that this ends up with predominantly high pitch notes. Is there a way to use log function to scale these values exponentially across the range?
Check the [scale] object, noting in particular its fifth argument/inlet which enables an exponential scaling curve
for linear to frequency conversion you can also abuse (adding offsets and such) the mtof object. -110
just a mentioned already, scale and mtof:
----------begin_max5_patcher---------- 491.3ocwU1sbaBCDE9Z3oPit10ijwXG2GjdSmLYDvhiRAIFI4T2lIu6U+.NN s3NXqF5MVnUKKeb7YWdIMAWHOBZL5ynuhRRdIMIwGxEHoeeBtkcrrgo8ogEv 2kEOgWDNx.GM9vGDcrxugpQ0CGUKEFM+mf6XJcIoOr3PKWz.Fe0nuETdvLDc UezPHyO5f.f35FIyfWLbA599D4UdFrb8IJ47muf05uW7W.UESvFNqiYJejK1 +fBJMghSy2XYDQWQbKa7abWit2cKull59YwDEIKe1Wo2dZJKGFP8.HXEMdhH yfJUvD6GUj1ciZztfpjuxsjShRhZAslsG9CiTFwVYB4ZbQqFUenWReFUR1Fm sYaPRBVn6tQI4BsV0FYKhtL99pqSQxiSQBdkbZTljKnHsFY8bKGqiqmg5Wxh arhk+BP8eZrBW72GpjEk.0aWHeD1EcIqAPjkVqI4pZi17Ov2PiRV5altayx7 QzE+yC2vE+9mv80yE+8hkVdPUNP6vWKQzSXWAZCWvLbo37jr4r9TNOxqp.w4 dsJt1Y+7uxjQ+W6pvgLAbxlEbxmBMuG4ORbVOAb1MazrcBzjOazPm.MqmMZx lnM9VnIzyy55dFT59R5AwNJ7Io5zXKrcNVXquhXE7LeH+7TW0dM8W.MeBmG -----------end_max5_patcher-----------
Also, this thread might be worth to check:
C74 RSS Feed | © Copyright Cycling '74