fix NaN issue for some browsers with osc.freq and osc default amp is 0.5