コード例 #1
0
ファイル: PulseInstrumentPanel.py プロジェクト: alexras/lsmc
    def __init__(self, parent):
        InstrumentPanel.__init__(self, parent, channels.PULSE_CHANGE)

        self.envelope = ReadOnlyTextViewField(self, two_digit_hex_format("envelope"))

        self.wave = WaveViewField(self)

        self.pan = ReadOnlyTextViewField(self, instr_attr("pan"))
        self.length = ReadOnlyTextViewField(self, len_format)
        self.sweep = ReadOnlyTextViewField(self, two_digit_hex_format("sweep"))
        self.vibe = VibeTypeViewField(self)
        self.pu2_tune = ReadOnlyTextViewField(self, two_digit_hex_format("phase_transpose"))
        self.pu_fine = ReadOnlyTextViewField(self, one_digit_hex_format("phase_finetune"))
        self.automate = ReadOnlyTextViewField(self, automate_format)
        self.table = ReadOnlyTextViewField(self, table_format)

        self.add_field("Envelope", self.envelope)
        self.add_field("Wave", self.wave)
        self.add_field("Output", self.pan)
        self.add_field("Length", self.length)
        self.add_field("Sweep", self.sweep)
        self.add_field("Vib. Type", self.vibe)
        self.add_field("PU2 Tune", self.pu2_tune)
        self.add_field("PU Fine", self.pu_fine)
        self.add_field("Automate", self.automate)
        self.add_field("Table", self.table)
コード例 #2
0
ファイル: SelectedSynthPanel.py プロジェクト: alexras/lsmc
    def __init__(self, parent, range_param):
        wx.Panel.__init__(self, parent=parent, id=wx.ID_ANY)
        self.hpos = 0

        self.sizer = wx.GridBagSizer(hgap=20, vgap=7)

        self.sizer.Add(wx.StaticText(self, label=range_param.capitalize()),
                       pos=(0, 0), span=(1, 2))
        self.hpos += 1

        self.volume = ReadOnlyTextViewField(
            self, within(range_param, two_digit_hex_format("volume")))
        self.filter_cutoff = ReadOnlyTextViewField(
            self, within(range_param, two_digit_hex_format(
                "filter_cutoff")))
        self.phase_amount = ReadOnlyTextViewField(
            self, within(range_param, two_digit_hex_format(
                "phase_amount")))
        self.vertical_shift = ReadOnlyTextViewField(
            self, within(range_param, two_digit_hex_format(
                "vertical_shift")))

        self.add_field("Volume", self.volume, self.sizer)
        self.add_field("Cutoff", self.filter_cutoff, self.sizer)
        self.add_field("Phase", self.phase_amount, self.sizer)
        self.add_field("VShift", self.vertical_shift, self.sizer)

        self.SetSizer(self.sizer)
コード例 #3
0
ファイル: WaveInstrumentPanel.py プロジェクト: alexras/lsmc
    def __init__(self, parent):
        InstrumentPanel.__init__(self, parent, channels.WAVE_CHANGE)

        self.volume = ReadOnlyTextViewField(
            self, two_digit_hex_format("volume"))
        self.pan = ReadOnlyTextViewField(self, instr_attr("pan"))
        self.vibe = VibeTypeViewField(self)
        self.synth = ReadOnlyTextViewField(self, synth_format)
        self.play = ReadOnlyTextViewField(self, instr_attr("play_type"))
        self.length = ReadOnlyTextViewField(
            self, one_digit_hex_format("steps"))
        self.repeat = ReadOnlyTextViewField(
            self, one_digit_hex_format("repeat"))
        self.speed = ReadOnlyTextViewField(self, one_digit_hex_format("speed"))
        self.automate = ReadOnlyTextViewField(self, automate_format)
        self.table = ReadOnlyTextViewField(self, table_format)

        self.add_field("Volume", self.volume)
        self.add_field("Output", self.pan)
        self.add_field("Vib. Type", self.vibe)
        self.add_field("Synth", self.synth)
        self.add_field("Play", self.play)
        self.add_field("Length", self.length)
        self.add_field("Repeat", self.repeat)
        self.add_field("Speed", self.speed)
        self.add_field("Automate", self.automate)
        self.add_field("Table", self.table)
コード例 #4
0
ファイル: NoiseInstrumentPanel.py プロジェクト: alexras/lsmc
    def __init__(self, parent):
        InstrumentPanel.__init__(self, parent, channels.NOISE_CHANGE)

        self.envelope = ReadOnlyTextViewField(self, two_digit_hex_format("envelope"))
        self.pan = ReadOnlyTextViewField(self, instr_attr("pan"))
        self.length = ReadOnlyTextViewField(self, len_format)
        self.shape = ReadOnlyTextViewField(self, two_digit_hex_format("sweep"))
        self.s_cmd = ReadOnlyTextViewField(self, instr_attr("s_cmd"))

        self.automate = ReadOnlyTextViewField(self, automate_format)
        self.table = ReadOnlyTextViewField(self, table_format)

        self.add_field("Envelope", self.envelope)
        self.add_field("Output", self.pan)
        self.add_field("Length", self.length)
        self.add_field("Shape", self.shape)
        self.add_field("S Cmd", self.s_cmd)
        self.add_field("Automate", self.automate)
        self.add_field("Table", self.table)
コード例 #5
0
ファイル: KitInstrumentPanel.py プロジェクト: alexras/lsmc
    def __init__(self, parent):
        InstrumentPanel.__init__(self, parent, channels.KIT_CHANGE)

        self.kit_1 = ReadOnlyTextViewField(self, two_digit_hex_format("kit_1"))
        self.kit_2 = ReadOnlyTextViewField(self, two_digit_hex_format("kit_2"))
        self.volume = ReadOnlyTextViewField(
            self, one_digit_hex_format("volume"))
        self.pan = ReadOnlyTextViewField(self, instr_attr("pan"))
        self.pitch = ReadOnlyTextViewField(self, two_digit_hex_format("pitch"))
        self.offset_1 = ReadOnlyTextViewField(
            self, two_digit_hex_format("offset_1"))
        self.offset_2 = ReadOnlyTextViewField(
            self, two_digit_hex_format("offset_2"))
        self.len_1 = ReadOnlyTextViewField(self, kit_len_format("length_1"))
        self.len_2 = ReadOnlyTextViewField(self, kit_len_format("length_2"))
        self.loop_1 = ReadOnlyTextViewField(
            self, kit_loop_format("loop_1", "keep_attack_1"))
        self.loop_2 = ReadOnlyTextViewField(
            self, kit_loop_format("loop_2", "keep_attack_2"))
        self.speed = ReadOnlyTextViewField(self, kit_speed_format)
        self.dist = ReadOnlyTextViewField(self, instr_attr("dist_type"))
        self.vibe = VibeTypeViewField(self)
        self.automate = ReadOnlyTextViewField(self, automate_format)
        self.table = ReadOnlyTextViewField(self, table_format)

        self.add_compound_field("Kit", self.kit_1, self.kit_2)
        self.add_field("Volume", self.volume)
        self.add_field("Output", self.pan)
        self.add_field("Pitch", self.pitch)
        self.add_compound_field("Offset", self.offset_1, self.offset_2)
        self.add_compound_field("Len", self.len_1, self.len_2)
        self.add_compound_field("Loop", self.loop_1, self.loop_2)

        speed_sizer = wx.BoxSizer(wx.HORIZONTAL)
        self.speed.add_to_sizer(speed_sizer, wx.ALL | wx.EXPAND)
        speed_sizer.Add(wx.StaticText(self, label='X'))
        self.add_field("Speed", speed_sizer, fields=[self.speed])

        self.add_field("Dist", self.dist)
        self.add_field("Vib. Type", self.vibe)
        self.add_field("Automate", self.automate)
        self.add_field("Table", self.table)