hello : )
I have used the ‘scale’ object before which is great, but I wonder if there is a logarithmic scale object under another name i have missed that has preset response curves or a curve that can be plotted on a graph by the user allowing for a scale result that is not so linear.
The other alternative I see is to make lots of individual splits and scale objects to create a logarithmic result, but I was hoping for a more efficient and tidy solution.perhaps someone has done something like this before?
thanks for any help. : )
the [scale] object, can use an exponential base to have a more "curved" effect other than a linear output! may you could use it for what you want!
There are a few Max objects that will ‘do’ log maths, the simplest being [scale], [pow] and [expr]:
----------begin_max5_patcher---------- 543.3ocyVssaiBCD8YpT+Grr5CMRoqrM2R1Oj8k1pUNfSqq.aD3nlsU6+95K .AssQwjPS5K1hYFFeliOy.ue8UAvUxsrFH3mf6AAAuqsDXsYrDzYH.VR2lUP arAByjkkLgBNu0ohsUYcv1VIEZOfaqjuxpm0GwZoP0veiYhBi+ApydEUk8LW 7zuqYYJGHBWhz9Aw1ULgX1H5G.O18RhMkbQASYACd3QHnk1i.9KVcNUP6Oed t0rb0K2gWBGjH4FUWlPVq+85qL65s4dyGqKj5T0mVWNU+oh4pHiepls.vUTw SvcExHXkHTrgHRWtialTRYwdHExQSJME7bVceZqpYMZkAUwkhA0UbbhsVhLk O.0trqr9.WNf99LwSbpKcQV0SjkzBIGlnFxEo6gKvGMWHXupy7m1uTCd.paV t8l034faVSl8.D5SwOlNJGofSHtVp3CndHiV8DM4LlepmvD7TpdHnnSW8Dd1 TOZYCPW3wGZvyQIZZ4hVQSBYx0LjKjlg3l3fWlNIZl1YwNE3QJYve0Twn6Cb W5mRMgNasAMYzBF.oGrk1tpwc3TODs8+QRbcEgKNP+PxX6G7crg67fEbwG9q MKpMN9OVrQtoNqq569ZOX.xyYMJtv1nLLJ8Tc.dWTOyyyY1.54oRddkjKTsH A739ubmZvQtLfC4MygN+fKxKvkdY.GwKvEdY.GxaM24GbgdgM72Xh6zuTMFz a+iLinSK -----------end_max5_patcher-----------
[expr] also has log10 and log (natural log).
If you want to draw your mapping by hand you can use [table].
Here’s an abstraction that you may find helpful.
Zachary – this object is great. Thanks for sharing..
about time that scale object got patched. tanx alot!
Thanks srs and dtr. Glad you like it. I have a similar version of zmap, and other abstractions here: http://www.zacharyseldess.com/z.abstractions.html
Thank you Zachary for the abstractions!
FYI, there is a thread that has been started a while ago with the intention of summmarizing simple mapping methods that maxers know about: http://cycling74.com/forums/topic/re-mapping-a-range-of-numbers-add-your-tricks-here
Thank you Zachary, just what I needed! A newbie question: are these objects written in C?