예제 #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