Trouble with linedrive
Hello everyone, I am currently trying to use linedrive in Max/MSP 4 and I am having trouble. Firstly I’d like to ask if there is a maximum value that you can enter for linedrives first argument? I am trying to create an exponential curve for pitch bend data so I have the first number set to 16344 and linedrive outputs either a "nan" message or a 0. when I run any number higher than 7447 into it, not sure why. Any help would be greatly appreciated!
What are you trying to use as the third argument? You can easily get in to trouble if this value is wrong, try something that is a very, very tiny amount above 1. It might even be easier using something like [expr] to get your exponential curve as this will give you more control. What sort of values are you trying to get out of the [linedrive] object?
If I want to use "expr" does anyone know a mathematical formula I could put in to create and vary logarithmic curves? To be honest I’m not amazing at math!
Have a look at the logarithmic and exponential functions shown below to get an idea of what you can do with the [expr] object. These equations output between 0 and 1 but using multiplication you could easily scale it to the values you need.
----------begin_max5_patcher---------- 783.3ocyX0sjZCBF853SAaFuncFWKP9u20mit6zIZPk1Dvwfy51c128BjD0p 0DZLh6ExXPBb9Nemuej2F43NiuiT5B9J36.Gm2F43nmRMgS8yNtEo6lmmVpW l6bdQAgIbmT8aBxNgd9UTAnf.VP2TJdn4WWmJluhxV9iMj4hpSAi8mBm.hzi gIpQLbJD7b8qrfyDrzBhdS+1FZZdylw1VPY4DgFGnCSx2JZlEdzlTR+sdSP3 oMSSyz6Je1Oez2UM06iFoFlXnsOaqPvYsXbn.0gABhzFWby3diy.S.cNVwMm X0xDutlTcbtyRYKcAO2CSgQdQt0m4Ey4oYEjxR.bZX21IBqMzX7v5EQF6EC8 tH0LnzBD.agMhz1ebfZzCOMnebA9Z4Bjc3hGdDfZgLhC0pdu6LY.uHYPkIu5 EeH3KWlS5TG3E2DMbho2uf+fjg2RTQ3oKIm4ZGil.FiAdPX2xcDL5PdbTr8c wAA1QumSYDY5vtIjpjg9g8MYn2+jP7LmPZIY3j5O8StrMWPKyoYjMsUXGUUL 2Wq7Q9ZgQRmU+JkOKdMmbYIA9vJkuuDYUmW0wbz1eb08n1ohdQCKx4RfY.Cf hODYLbUEwlKDtbk.oMjJTTvf24.Y25Mf07W9z3EnmdZB5KiWf+b2jEJQGufP Q8kst57H3ANOhYgKUIM9XDsDdyiVjPgVHeT0i9dmPKMV5qEGAvqMDRBolyEs +b6abE16VFW0OBK5iLe4eGxCsNc9ujTlQUriP5ntj6UpG7P2BSmknpy5buqP gCu+Un5n9TsD4tWdBGYnFQCLc2pmbeNZiSM+eSYk7sal2rU0Wy.3f4kQJETV pfxYGsF0e39nEshlkQXGeyKEzr0b4eLoFCWv+YLjhL.SJwjMwTnAXx2tXR0w W2XJxtXxD8zI.+liIOSzS91ESAlvS1MtKzD8zI.+lySIljeB8ADSv+OLEiT2 ZVntWtjfluesdTnorGxdYRMQ4isaVqSB9u.lrqxG6YJlrmuKzHLY4tELJSJt OQinD8EZiww6e5jluF89n+v8mgyN -----------end_max5_patcher-----------
You might want to consider looking at Emmanuel Jourdan’s lovely take on the function object, which – in addition to many other cool things – does curves.