# Path: gum/lib/edit.py
# def resample(frames, ratio):
# def mix_channels(frames, gain_lists):
# def mix_channels_auto(frames, n):
# 
# Path: gum/controllers/effect.py
# def reverse(x):
# def normalize(x):
# def negate(x):
# def fade(x, type='in'):
# def fade_out(x):
# def mkfx_overwrite_selection(function):
#     def process(sound, start, end):
#         M = abs(x).max()
#     N = len(x)
# 
# Path: gum/models/sound.py
# def list_extensions():
#     def __init__(self, filename=None):
#     def numchan(self):
#     def save(self):
#     def save_as(self, filename):
#     def cut(self, start, end):
#     def _do_cut(self, start, end):
#     def copy(self, start, end):
#     def paste(self, start, end, clip):
#     def _do_paste(self, start, end, clip):
#     def mix(self, start, end, clip):
#     def _do_mix(self, start, end, clip):
#     def undo(self):
#     def redo(self):
#     def is_empty(self):
#     def is_fresh(self):
#     def is_saved(self):
# def testSound():
#     def fake_sndfile(filename):
# class Sound(object):
#     SR = 44100


from gum.lib import edit
from gum.controllers import effect
from gum.models import sound

def replace_frames(sound, y):
    sound.frames = y

def monoize(sound, start, end):
    x = sound.frames

# Path: gum/lib/edit.py
# def resample(frames, ratio):
# def mix_channels(frames, gain_lists):
# def mix_channels_auto(frames, n):
# 
# Path: gum/controllers/effect.py
# def reverse(x):
# def normalize(x):
# def negate(x):
# def fade(x, type='in'):
# def fade_out(x):
# def mkfx_overwrite_selection(function):
#     def process(sound, start, end):
#         M = abs(x).max()
#     N = len(x)
# 
# Path: gum/models/sound.py
# def list_extensions():
#     def __init__(self, filename=None):
#     def numchan(self):
#     def save(self):
#     def save_as(self, filename):
#     def cut(self, start, end):
#     def _do_cut(self, start, end):
#     def copy(self, start, end):
#     def paste(self, start, end, clip):
#     def _do_paste(self, start, end, clip):
#     def mix(self, start, end, clip):
#     def _do_mix(self, start, end, clip):
#     def undo(self):
#     def redo(self):
#     def is_empty(self):
#     def is_fresh(self):
#     def is_saved(self):
# def testSound():
#     def fake_sndfile(filename):
# class Sound(object):
#     SR = 44100


# Path: gum/fx/monoize.py
from gum.lib import edit
from gum.controllers import effect
from gum.models import sound


def replace_frames(sound, y):
    sound.frames = y

def monoize(sound, start, end):
    x = sound.frames

    y = edit.mix_channels_auto(sound.frames, 1)