Пример #1
0
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
Пример #2
0
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
Пример #3
0
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
Пример #4
0
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
Пример #5
0
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
Пример #6
0
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
Пример #7
0
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
Пример #8
0
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
Пример #9
0
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
Пример #10
0
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
Пример #11
0
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
Пример #12
0
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
Пример #13
0
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
Пример #14
0
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
Пример #15
0
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