# Path: pym2149/iface.py
# class Config(lurlene.iface.Config): pass
# 
# class Tuning: pass


from .iface import Config, Tuning
from diapyr import DI, types
from lurlene.context import Context
import bisect, logging, math
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pym2149 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pym2149.  If not, see <http://www.gnu.org/licenses/>.


log = logging.getLogger(__name__)

class ContextTuning(Tuning):

    @types(Context, DI)
    def __init__(self, context, di):
        self.context = context
        self.di = di

    def __getattr__(self, name):
        return getattr(self.di(self.context.get('tuning')), name)

    def dispose(self):
        pass

class EqualTemperament:


# Path: pym2149/iface.py
# class Config(lurlene.iface.Config): pass
# 
# class Tuning: pass


# Path: pym2149/pitch.py
from .iface import Config, Tuning
from diapyr import DI, types
from lurlene.context import Context
import bisect, logging, math

# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# pym2149 is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with pym2149.  If not, see <http://www.gnu.org/licenses/>.


log = logging.getLogger(__name__)

class ContextTuning(Tuning):

    @types(Context, DI)
    def __init__(self, context, di):
        self.context = context
        self.di = di

    def __getattr__(self, name):
        return getattr(self.di(self.context.get('tuning')), name)

    def dispose(self):
        pass

class EqualTemperament:


    @types(Config)