How to make different Specs

I am new to meteor and this is my first app. It is a sonification system using various data from a static file to control sound parameters such as adsr i.e. attack decay release, but each parameter has its own nominal range so I would like to make different range specs for each one. Say a control value is 0.355 float number and with that I would like to control both the attack of the sine tone as well as the release of the envelope. Ideally, I would target these parameters with the same value but it will be scaled up/down to the range spec of the parameter. Any idea how to do that? Coming from audio language supercollider this is easy using a class called Spec.add(‘freq’, [0.1, 30.0], ‘exp’) is there any lib or other way to make something similar.