CYCLING ’74: TOOLS FOR SOUND, GRAPHICS, AND INTERACTIVITY
Search
Sign In / Create Account
Sign In / Create Account
log in vexpr
phiol
Jul 13 2018 | 6:42 pm
Hi all,
I'm try to do a log on a list but can figure out how to do it using vexpr log10
so I resorted to jit.op @op log @val 64
Could anyone shed light to how to do with vexpr instead thanks
phiol
Pasted Max Patch: Click to Expand
Jul 13 2018 | 10:06 pm
kLSDiz
The simplest solution works for me:
Pasted Max Patch: Click to Expand
But if you want to calculate a logarithm to a arbitrary base (jit.op @op log is just a natural logarithm) you can use this formula: log(x)/log(base). (see
https://en.wikipedia.org/wiki/Logarithm#Change_of_base
)
Share
Jul 14 2018 | 12:27 am
phiol
Thanks a lot KLSDIZ
All I need to know (or at least this is what I understand) is that log is a function and so it needs the () as in log()
so vexpr log($f1)/log(64) + 1. or vexpr log($f1)/log($f2) + 1 would give me the dynamic base.
Thanks
Share
Jul 16 2018 | 9:53 pm
phiol
what I actually wanted was a booster in both directions not even a log.
here it is
Pasted Max Patch: Click to Expand
Share
Sign in to reply
Forums
MaxMSP
Max
What is Max?
New in Max 8
Max in Education
Max for Live
Extending Max
Explore
Made with Max
Max Packages
Projects
Blog
Learn
Get Started
Tutorials
Places to Learn Max
Documentation
Forums
Help
Shop
Download Max 8
Max
What is Max?
New in Max 8
Max in Education
Max for Live
Extending Max
Explore
Made with Max
Max Packages
Projects
Blog
Learn
Get Started
Tutorials
Places to Learn Max
Documentation
Forums
Help
Shop