private void compress(QButton Sender) { for (int i = 0; i < numBands; i++) { CurrentEqualizer.Values[i] = Math.Max(-SCALE_FLOAT, Math.Min(SCALE_FLOAT, CurrentEqualizer.Values[i] * 0.9f)); scrollBars[i].Value = (int)CurrentEqualizer.Values[i]; } EqChanged.Invoke(); }
private void reset(QButton Sender) { EqualizerSetting es = DefaultEqualizerSettings.FirstOrDefault(s => s.Name == CurrentEqualizer.Name); if (es == null) { for (int i = 0; i < numBands; i++) { scrollBars[i].Value = 0; CurrentEqualizer.Values[i] = 0; } } else { float[] f = (numBands == 10) ? compressBands(es.Values) : es.Values; for (int i = 0; i < numBands; i++) { scrollBars[i].Value = (int)f[i]; CurrentEqualizer.Values[i] = f[i]; } } EqChanged.Invoke(); }
private void eqChanged() { eqChangeTimer = Clock.NULL_ALARM; EqChanged.Invoke(); }
private void btnNumBands_ButtonPressed(QButton Button) { switchNumBands((numBands == 10) ? 30 : 10); EqChanged.Invoke(); }