示例#1
0
    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)
示例#2
0
    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)
示例#3
0
    def __init__(self, parent):
        InstrumentPanel.__init__(self, parent, None)

        info_text = wx.StaticText(
            self, label="No Instrument Selected",
            style=wx.ALIGN_CENTRE_HORIZONTAL)

        self.main_sizer.Add(info_text, 1, wx.ALL | wx.EXPAND)
示例#4
0
    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
    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)