# -*- coding: utf-8 -*-

#
# Author: <NAME>, Finland 2015-2016
#
# This file is part of Kunquat.
#
# CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/
#
# To the extent possible under law, Kunquat Affirmers have waived all
# copyright and related or neighboring rights to Kunquat.
#

from .procparams import ProcParams


class FreeverbParams(ProcParams):

    @staticmethod
    def get_default_signal_type():
        return 'mixed'

    @staticmethod
    def get_port_info():
        return {
            'in_00':  'audio L',
            'in_01':  'audio R',
            'in_02':  'reflect',
            'in_03':  'damp',
            'out_00': 'audio L',
            'out_01': 'audio R',
        }

    def __init__(self, proc_id, controller):
        super().__init__(proc_id, controller)

    def get_reflectivity(self):
        return self._get_value('p_f_refl.json', 20)

    def set_reflectivity(self, value):
        self._set_value('p_f_refl.json', value)

    def get_damp(self):
        return self._get_value('p_f_damp.json', 20)

    def set_damp(self, value):
        self._set_value('p_f_damp.json', value)



# -*- coding: utf-8 -*-

#
# Author: <NAME>, Finland 2015-2016
#
# This file is part of Kunquat.
#
# CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/
#
# To the extent possible under law, Kunquat Affirmers have waived all
# copyright and related or neighboring rights to Kunquat.
#

from .procparams import ProcParams


class FreeverbParams(ProcParams):

    @staticmethod
    def get_default_signal_type():
        return 'mixed'

    @staticmethod
    def get_port_info():
        return {
            'in_00':  'audio L',
            'in_01':  'audio R',
            'in_02':  'reflect',
            'in_03':  'damp',
            'out_00': 'audio L',
            'out_01': 'audio R',
        }

    def __init__(self, proc_id, controller):
        super().__init__(proc_id, controller)

    def get_reflectivity(self):
        return self._get_value('p_f_refl.json', 20)

    def set_reflectivity(self, value):
        self._set_value('p_f_refl.json', value)

    def get_damp(self):
        return self._get_value('p_f_damp.json', 20)

    def set_damp(self, value):
        self._set_value('p_f_damp.json', value)



# -*- coding: utf-8 -*- # # Author: <NAME>, Finland 2015-2016 # # This file is part of Kunquat. # # CC0 1.0 Universal, http://creativecommons.org/publicdomain/zero/1.0/ # # To the extent possible under law, Kunquat Affirmers have waived all # copyright and related or neighboring rights to Kunquat. #