Here's what I have.
Instead of the switch I'd like to use a formula to determine the CalculatedVolume. Any ideas?
Any mathematicians out there?
(do
(include "need20.cal") ; Require version 2.0 or higher of CAL
(int Trackno 0)
(int Volume -3)
(int CalculatedVolume)
(getInt Volume "Please enter initial volume " -12 6)
(switch Volume
6 (= CalculatedVolume 127)
0 (= CalculatedVolume 101)
-3 (= CalculatedVolume 88)
-6 (= CalculatedVolume 75)
-12 (= CalculatedVolume 53)
)
(while (< Trackno 256)
(do
(TrackVolume CalculatedVolume Trackno )
(++ Trackno)
)
)
)