added rate param, replacing hack in engine.sc
towards more params in control panel
rate controllable from panel