dB2linear
szk.DB2LINEAR gives polynomials that can be used to convert...
- Type
- MIDI Effect
- Author
- floszk
- Version
- 1.0
- License
- Commercial
- Live version
- 9.0.2
- Max version
- 6.1.2
- Downloads
- 3
- Updated
- 2020-02-19
Description
szk.DB2LINEAR gives polynomials that can be used to convert a dB volume value to 0-up-to-1 linear range, in respect of the Ableton Live’s Mixer behaviour when observed by M4L (that is not well documented … unless I missed something). It proposes conversions to control meters from « realistic » volume values instead of twisting and swinging with 0-to-1 ranges.
Device location
Put the device on any track.
Observe / Remote volume track
Just monitor or move the track volume to have an idea of the Observer and Object returned values.
Set volume with a db value ?
Live.Object track volume setting needs a value between 0 and 1. The question is : how to convert a db value [-60 6 db] to a 0-to-1 value ? We empirically checked the correspondence between these different scales and fit the response with polynomials. Use the plots, play with them and watch results. To limit CPU usage we limited polynomials to 2nd and 3rd degrees. Expressions are given below. You can also get the empirical values in simple text format for your own (better ?) calculations.
For more information please visit : http://flo.szk.fr/m4l/