예제 #1
0
    def __init__(self, channel=-1, sysex_buffer=None,
                 req_procedure=-1, error_code=-1):
        self.req_procedure = req_procedure
        self.error_code = error_code
        self.error_msg = ''

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #2
0
    def __init__(self, sysex_buffer=None, program=None, isolated=False):
        self.bank = -1
        self.number = -1
        self.program = None
        self.isolated = isolated
        if program:
            self.program = program.copy()
            if isolated:
                self.program.number = 0

            self.bank = self.program.bank
            self.number = self.program.number

        JStationSysexEvent.__init__(self,
                                    JStationSysexEvent.ALL_CHANNELS,
                                    sysex_buffer=sysex_buffer)

        if sysex_buffer != None and self.is_valid():
            # first part is a header (already parsed)
            # second part is a OneProgramResponse
            one_prg_resp = OneProgramResponse(JStationSysexEvent.ALL_CHANNELS,
                                              sysex_buffer=self.sysex_buffer)
            if one_prg_resp.is_valid():
                self.program = one_prg_resp.program
            else:
                self.has_error = True
                print('Invalid nested event: %s' % (one_prg_resp))
    def __init__(self, channel=-1, sysex_buffer=None,
                 stereo_mono=-1, dry_track=-1, digital_out_level=-1,
                 global_cabinet=-1, midi_merge=-1, midi_channel=-1):
        self.stereo_mono = stereo_mono
        self.dry_track = dry_track
        self.digital_out_level = digital_out_level
        self.global_cabinet = global_cabinet
        self.midi_merge = midi_merge
        self.midi_channel = midi_channel

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #4
0
    def __init__(self,
                 channel=-1,
                 sysex_buffer=None,
                 receive_channel=-1,
                 transmit_channel=-1,
                 sysex_channel=-1):
        self.receive_channel = receive_channel
        self.transmit_channel = transmit_channel
        self.sysex_channel = sysex_channel

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #5
0
    def __init__(self, channel=-1, sysex_buffer=None, total_len=-1):
        self.total_len = total_len

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #6
0
 def __init__(self, channel=-1, sysex_buffer=None):
     JStationSysexEvent.__init__(self, channel, sysex_buffer)
예제 #7
0
    def __init__(self, channel=-1, sysex_buffer=None, program=None):
        self.program = program

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #8
0
    def __init__(self, channel=-1, sysex_buffer=None, prg_nb=-1):
        self.prg_nb = prg_nb

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #9
0
    def __init__(self, channel=JStationSysexEvent.ALL_CHANNELS,
                 sysex_buffer=None):
        self.response_on = self.RESP_ON_7f

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)
예제 #10
0
    def __init__(self, channel=-1, sysex_buffer=None):
        self.prg_indices = list()

        JStationSysexEvent.__init__(self, channel, sysex_buffer=sysex_buffer)