def Bass_Clarinet(): """Defines and returns a bass clarinet midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Bass Clarinet' instr.key = 'Bb' instr.clef = 'Treble' instr.set_range(tuple([Note('Bb', 1), Note('B', 5)])) instr.instrument_nr = instr.names.index('Clarinet') return instr
def Soprano_Saxophone(): """Defines and returns a soprano saxophone midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Soprano Saxophone' instr.key = 'Bb' instr.clef = 'Treble' instr.set_range(tuple([Note('Ab', 3), Note('E', 6)])) instr.instrument_nr = instr.names.index('Soprano Sax') return instr
def Vibraphone(): """Defines and returns a vibraphone midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Vibraphone' instr.key = 'C' instr.clef = 'Treble' instr.set_range(tuple([Note('F', 3), Note('F', 6)])) instr.instrument_nr = instr.names.index('Vibraphone') return instr
def Marimba(): """Defines and returns a marimba midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Marimba' instr.key = 'C' instr.clef = 'Treble & Bass' instr.set_range(tuple([Note('C', 2), Note('C', 7)])) instr.instrument_nr = instr.names.index('Marimba') return instr
def Orchestral_Harp(): """Defines and returns an orchestral harp midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Orchestral Harp' instr.key = 'C' instr.clef = 'Treble & Bass' instr.set_range(tuple([Note('C', 1), Note('G', 7)])) instr.instrument_nr = instr.names.index('Orchestral Harp') return instr
def Piano(): """Defines and returns a piano midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Piano' instr.key = 'C' instr.clef = 'Treble & Bass' instr.set_range(tuple([Note('A', 0), Note('C', 8)])) instr.instrument_nr = instr.names.index('Acoustic Grand Piano') return instr
def Cello(): """Defines and returns a cello midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Cello' instr.key = 'C' instr.clef = 'Bass' instr.set_range(tuple([Note('C', 2), Note('E', 6)])) instr.instrument_nr = instr.names.index('Cello') return instr
def Contrabass(): """Defines and returns a contrabass midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Contrabass' instr.key = 'C' instr.clef = 'Bass' instr.set_range(tuple([Note('E', 1), Note('G', 5)])) instr.instrument_nr = instr.names.index('Contrabass') return instr
def Violin(): """Defines and returns a violin midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Violin' instr.key = 'C' instr.clef = 'Treble' instr.set_range(tuple([Note('G', 3), Note('E', 7)])) instr.instrument_nr = instr.names.index('Violin') return instr
def Viola(): """Defines and returns a viola midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Viola' instr.key = 'C' instr.clef = 'Alto' instr.set_range(tuple([Note('C', 3), Note('A', 7)])) instr.instrument_nr = instr.names.index('Viola') return instr
def Alto_Flute(): """Defines and returns an alto flute midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Alto Flute' instr.key = 'G' instr.clef = 'Treble' instr.set_range(tuple([Note('G', 3), Note('G', 6)])) instr.instrument_nr = instr.names.index('Flute') return instr
def Flute(): """Defines and returns a flute midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Flute' instr.key = 'C' instr.clef = 'Treble' instr.set_range(tuple([Note('C', 4), Note('C', 7)])) instr.instrument_nr = instr.names.index('Flute') return instr
def Baritone_Saxophone(): """Defines and returns a baritone saxophone midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Baritone Saxophone' instr.key = 'Eb' instr.clef = 'Treble' instr.set_range(tuple([Note('C', 2), Note('A', 4)])) instr.instrument_nr = instr.names.index('Baritone Sax') return instr
def Tenor_Saxophone(): """Defines and returns a tenor saxophone midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Tenor Saxophone' instr.key = 'Bb' instr.clef = 'Treble' instr.set_range(tuple([Note('Ab', 2), Note('E', 5)])) instr.instrument_nr = instr.names.index('Tenor Sax') return instr
def Alto_Saxophone(): """Defines and returns an alto saxophone midi instrument (an instance of MidiInstrument())""" instr = MidiInstrument() instr.name = 'Alto Saxophone' instr.key = 'Eb' instr.clef = 'Treble' instr.set_range(tuple([Note('Db', 3), Note('A', 5)])) instr.instrument_nr = instr.names.index('Alto Sax') return instr