jamoma / JamomaMax

Implementation of Jamoma for Cycling'74 Max:
http://www.jamoma.org
41 stars 9 forks source link

Mapper ramp above 0 breaks mapping #1017

Open petervanhaaften opened 7 years ago

petervanhaaften commented 7 years ago

With Mapper, setting a ramp value above 0 breaks the mapping. In my tests no values are outputted by Mapper with a ramp value above 0, across all function types.

Tested on OSX10.10.5, Max 7.3.1, Jamoma 1.0.1, mapper.module.

petervanhaaften commented 7 years ago

Also tested on latest nightly build, problem seems to persist.

evanmtp commented 7 years ago

The ramp function of j.parameter only works for objects that have their @type attribute set to decimal, integer or array. In my testing, if I send values to a j.parameter with another @type (or no @type specified), I get the raw values from the input with "ramp [rampValue]" appended to the end of the message. Here's a test patch - try using /mouse/position/x as input, and route the output to the various j.parameter objects within the patch (they're all under /Untitled in the mapper).


----------begin_max5_patcher----------
785.3oc6X0rbZCCD9L7T3wmoYj7ujdpOB8dmNLx1KFkXjXjjIvjIu6U+Yho3
DHv.zC8BZz5UZ28a+10q40wiBK3a.YXv2C9UvnQuNdzHqHifQ98iBWR1T1Pj
V0BWBRIoFBm3dlB1nrxQOfPI3r7.AY4p.LBg5TogxfRdKypWhWHsxdJdwSeK
JsSSV6RdqpATVSg8RWI.IvTDEkylIfRkycwSSd.MIHIK2rf7+D7a+ojpsMf0
Fc2t6pUaWAtKHLbmxZCSYc1MpytDU4BJqdOaZsSbdpYI0tIKxXUyQda7XyOS
NQjjAunC+C.xmdXEQigfBDAnjY0.CDzxfeXb7.+tvAPwrgQwnu.dL4CwD7ww
jDKlDgcKmKn7wzq7n777omA8BelzKWXkkdyoWItka.8JcVKStBJoyoP0Pjpn
6KoJwgA3zqFoJEGO8wAoRQC.GnOmJcMIE3rd8bhSuhjB7LhPP19SiDeaGqfA
3G3o2W9AN1SLxtH9g1pEfXn3K4yiucn1LfQJbgJ5qE6EDV842zE0qSQz0rSQ
7LJSA0fnOsvKZHfK89RLhxcKIWVii4MbsgGJ9h+WfXLmKVRrAd1wQjjaEUIZ
Vk9MJKIM8o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