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)
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)
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)
def __init__(self, parent): wx.Panel.__init__(self, parent=parent, id=wx.ID_ANY) self.synth_change_channel = channels.SYNTH_CHANGE( parent.GetParent().project) self.synth_change_channel.subscribe(self.handle_synth_changed) self.sizer = wx.BoxSizer(wx.HORIZONTAL) main_params_sizer = wx.FlexGridSizer(cols=2, hgap=20, vgap=7) self.wave_type = ImageSetViewField( self, instr_attr("waveform"), WAVE_IMAGES) self.filter_type = ReadOnlyTextViewField( self, instr_attr("filter_type")) self.resonance = ReadOnlyTextViewField( self, one_digit_hex_format("filter_resonance")) self.distortion = ReadOnlyTextViewField( self, instr_attr("distortion")) self.phase_type = ReadOnlyTextViewField( self, instr_attr("phase_type")) self.add_field("Wave", self.wave_type, main_params_sizer) self.add_field("Filter", self.filter_type, main_params_sizer) self.add_field("Q", self.resonance, main_params_sizer) self.add_field("Dist", self.distortion, main_params_sizer) self.add_field("Phase", self.phase_type, main_params_sizer) self.sizer.Add(main_params_sizer, 1, wx.ALL | wx.EXPAND) self.start_range_params = RangeFieldsSubPanel(self, "start") self.end_range_params = RangeFieldsSubPanel(self, "end") self.sizer.Add(self.start_range_params, 1, wx.ALL | wx.EXPAND) self.sizer.Add(self.end_range_params, 1, wx.ALL | wx.EXPAND) self.SetSizer(self.sizer) self.Layout()