I need to define a new (derived) unit of measure that converts Hz to the psychoacoustic scale Mel
M= 1127*ln(1 + f / 700)
where f is the frequency in Hz (and M the corresponding Mel frequency then).
I am using the R units
package, but the units parsing seems to occur in the C code, so I guess solutions in other languages would be helpful.
2