Beispiel #1
0
        public override bool OnGUI(IAudioEffectPlugin plugin)
        {
            float active, window, scale, mode;

            plugin.GetFloatParameter("Active", out active);
            plugin.GetFloatParameter("Window", out window);
            plugin.GetFloatParameter("Scale", out scale);
            plugin.GetFloatParameter("Mode", out mode);
            GUILayout.Space(5.0f);

            DrawControl(
                plugin,
                GUILayoutUtility.GetRect(200, scopeheight, GUILayout.ExpandWidth(true)),
                plugin.GetSampleRate(),
                0
                );
            GUILayout.Space(5.0f);

            DrawControl(
                plugin,
                GUILayoutUtility.GetRect(200, scopeheight, GUILayout.ExpandWidth(true)),
                plugin.GetSampleRate(),
                1
                );
            GUILayout.Space(5.0f);

            return(true);
        }
        public override bool OnGUI(IAudioEffectPlugin plugin)
        {
            // ReSharper disable once NotAccessedVariable
            float active, window, scale;

            plugin.GetFloatParameter("Active", out active);
            plugin.GetFloatParameter("Window", out window);
            plugin.GetFloatParameter("Scale", out scale);
            GUILayout.Space(5.0f);
            var r = GUILayoutUtility.GetRect(200, 200, GUILayout.ExpandWidth(true));

            if (r.width > r.height)
            {
                r.width = r.height;
            }
            else
            {
                r.height = r.width;
            }

            if (DrawControl(plugin, r, plugin.GetSampleRate()))
            {
                plugin.SetFloatParameter("Window", window);
                plugin.SetFloatParameter("Scale", scale);
            }

            GUILayout.Space(5.0f);
            return(true);
        }
    public override bool OnGUI(IAudioEffectPlugin plugin)
    {
        float useLogScaleFloat;
        float showSpectrumFloat;

        plugin.GetFloatParameter("MasterGain", out masterGain);
        plugin.GetFloatParameter("LowGain", out lowGain);
        plugin.GetFloatParameter("MidGain", out midGain);
        plugin.GetFloatParameter("HighGain", out highGain);
        plugin.GetFloatParameter("LowFreq", out lowFreq);
        plugin.GetFloatParameter("HighFreq", out highFreq);
        plugin.GetFloatParameter("LowAttackTime", out lowAttackTime);
        plugin.GetFloatParameter("MidAttackTime", out midAttackTime);
        plugin.GetFloatParameter("HighAttackTime", out highAttackTime);
        plugin.GetFloatParameter("LowReleaseTime", out lowReleaseTime);
        plugin.GetFloatParameter("MidReleaseTime", out midReleaseTime);
        plugin.GetFloatParameter("HighReleaseTime", out highReleaseTime);
        plugin.GetFloatParameter("LowThreshold", out lowThreshold);
        plugin.GetFloatParameter("MidThreshold", out midThreshold);
        plugin.GetFloatParameter("HighThreshold", out highThreshold);
        plugin.GetFloatParameter("LowRatio", out lowRatio);
        plugin.GetFloatParameter("MidRatio", out midRatio);
        plugin.GetFloatParameter("HighRatio", out highRatio);
        plugin.GetFloatParameter("LowKnee", out lowKnee);
        plugin.GetFloatParameter("MidKnee", out midKnee);
        plugin.GetFloatParameter("HighKnee", out highKnee);
        plugin.GetFloatParameter("FilterOrder", out filterOrder);
        plugin.GetFloatParameter("UseLogScale", out useLogScaleFloat);
        plugin.GetFloatParameter("ShowSpectrum", out showSpectrumFloat);
        useLogScale  = useLogScaleFloat > 0.5f;
        showSpectrum = showSpectrumFloat > 0.5f;
        GUILayout.Space(5f);
        Rect r = GUILayoutUtility.GetRect(200, 150, GUILayout.ExpandWidth(true));

        if (DrawControl(plugin, r, plugin.GetSampleRate()))
        {
            plugin.SetFloatParameter("MasterGain", masterGain);
            plugin.SetFloatParameter("LowGain", lowGain);
            plugin.SetFloatParameter("MidGain", midGain);
            plugin.SetFloatParameter("HighGain", highGain);
            plugin.SetFloatParameter("LowFreq", lowFreq);
            plugin.SetFloatParameter("HighFreq", highFreq);
            plugin.SetFloatParameter("LowAttackTime", lowAttackTime);
            plugin.SetFloatParameter("MidAttackTime", midAttackTime);
            plugin.SetFloatParameter("HighAttackTime", highAttackTime);
            plugin.SetFloatParameter("LowReleaseTime", lowReleaseTime);
            plugin.SetFloatParameter("MidReleaseTime", midReleaseTime);
            plugin.SetFloatParameter("HighReleaseTime", highReleaseTime);
            plugin.SetFloatParameter("LowThreshold", lowThreshold);
            plugin.SetFloatParameter("MidThreshold", midThreshold);
            plugin.SetFloatParameter("HighThreshold", highThreshold);
            plugin.SetFloatParameter("LowRatio", lowRatio);
            plugin.SetFloatParameter("MidRatio", midRatio);
            plugin.SetFloatParameter("HighRatio", highRatio);
            plugin.SetFloatParameter("LowKnee", lowKnee);
            plugin.SetFloatParameter("MidKnee", midKnee);
            plugin.SetFloatParameter("HighKnee", highKnee);
        }
        return(true);
    }
Beispiel #4
0
    public override bool OnGUI(IAudioEffectPlugin plugin)
    {
        GUILayout.Space(5f);
        Rect r = GUILayoutUtility.GetRect(200, 100, GUILayout.ExpandWidth(true));

        DrawControl(plugin, r, plugin.GetSampleRate());
        return(true);
    }
        public override bool OnGUI(IAudioEffectPlugin plugin)
        {
            float useLogScaleFloat;
            float showSpectrumFloat;

            plugin.GetFloatParameter("MasterGain", out _masterGain);
            plugin.GetFloatParameter("LowGain", out _lowGain);
            plugin.GetFloatParameter("MidGain", out _midGain);
            plugin.GetFloatParameter("HighGain", out _highGain);
            plugin.GetFloatParameter("LowFreq", out _lowFreq);
            plugin.GetFloatParameter("MidFreq", out _midFreq);
            plugin.GetFloatParameter("HighFreq", out _highFreq);
            plugin.GetFloatParameter("LowQ", out _lowQ);
            plugin.GetFloatParameter("HighQ", out _highQ);
            plugin.GetFloatParameter("MidQ", out _midQ);
            plugin.GetFloatParameter("UseLogScale", out useLogScaleFloat);
            plugin.GetFloatParameter("ShowSpectrum", out showSpectrumFloat);
            _useLogScale  = useLogScaleFloat > 0.5f;
            _showSpectrum = showSpectrumFloat > 0.5f;
            GUILayout.Space(5f);
            var r = GUILayoutUtility.GetRect(200, 100, GUILayout.ExpandWidth(true));

            if (DrawControl(plugin, r, plugin.GetSampleRate()))
            {
                plugin.SetFloatParameter("MasterGain", _masterGain);
                plugin.SetFloatParameter("LowGain", _lowGain);
                plugin.SetFloatParameter("MidGain", _midGain);
                plugin.SetFloatParameter("HighGain", _highGain);
                plugin.SetFloatParameter("LowFreq", _lowFreq);
                plugin.SetFloatParameter("HighFreq", _highFreq);
                plugin.SetFloatParameter("MidFreq", _midFreq);
                plugin.SetFloatParameter("LowQ", _lowQ);
                plugin.SetFloatParameter("MidQ", _midQ);
                plugin.SetFloatParameter("HighQ", _highQ);
            }

            return(true);
        }