本文整理汇总了Python中abjad.tools.instrumenttools.Instrument.Instrument类的典型用法代码示例。如果您正苦于以下问题:Python Instrument类的具体用法?Python Instrument怎么用?Python Instrument使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Instrument类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(
self,
instrument_name='alto saxophone',
short_instrument_name='alt. sax.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[Db3, A5]',
sounding_pitch_of_written_middle_c='Eb3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'single reed player',
'saxophonist',
])
self._is_primary_instrument = True
示例2: __init__
def __init__(
self,
instrument_name='viola',
short_instrument_name='va.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('alto', 'treble'),
default_tuning=('C3', 'G3', 'D4', 'A4'),
pitch_range='[C3, D6]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'string player',
'violist',
])
self._is_primary_instrument = True
self._starting_clefs = indicatortools.ClefInventory(['alto'])
self._default_tuning = indicatortools.Tuning(default_tuning)
示例3: __init__
def __init__(
self,
instrument_name='horn',
short_instrument_name='hn.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('bass', 'treble'),
pitch_range='[B1, F5]',
sounding_pitch_of_written_middle_c='F3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'brass player',
'hornist',
])
self._is_primary_instrument = True
self._starting_clefs = indicatortools.ClefInventory(['bass'])
示例4: __init__
def __init__(
self,
instrument_name='bassoon',
short_instrument_name='bsn.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('bass', 'tenor'),
pitch_range='[Bb1, Eb5]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'double reed player',
'bassoonist',
])
self._starting_clefs = indicatortools.ClefInventory(['bass'])
self._is_primary_instrument = True
示例5: __init__
def __init__(
self,
instrument_name='bass clarinet',
short_instrument_name='bass cl.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('treble', 'bass'),
pitch_range='[Bb1, G5]',
sounding_pitch_of_written_middle_c='Bb2',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'single reed player',
'clarinettist',
'clarinetist',
])
self._starting_clefs = indicatortools.ClefInventory(['treble'])
示例6: __init__
def __init__(
self,
instrument_name='harp',
short_instrument_name='hp.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('treble', 'bass'),
pitch_range='[B0, G#7]',
sounding_pitch_of_written_middle_c=None,
):
from abjad.tools import scoretools
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._default_scope = 'PianoStaff'
self._performer_names.extend([
'string player',
'harpist',
])
self._is_primary_instrument = True
示例7: __init__
def __init__(
self,
instrument_name='clarinet in B-flat',
short_instrument_name='cl. in B-flat',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[D3, Bb6]',
sounding_pitch_of_written_middle_c='Bb3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'single reed player',
'clarinettist',
'clarinetist',
])
self._is_primary_instrument = True
示例8: __init__
def __init__(
self,
instrument_name='contrabassoon',
short_instrument_name='contrabsn.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('bass',),
pitch_range='[Bb0, Bb4]',
sounding_pitch_of_written_middle_c='C3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'double reed player',
'bassoonist',
])
示例9: __init__
def __init__(
self,
instrument_name='cello',
short_instrument_name='vc.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('bass', 'tenor', 'treble'),
pitch_range='[C2, G5]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'string player',
'cellist',
])
self._starting_clefs = indicatortools.ClefInventory(['bass'])
self._is_primary_instrument = True
示例10: __init__
def __init__(
self,
instrument_name='violin',
short_instrument_name='vn.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[G3, G7]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'string player',
'violinist',
])
self._is_primary_instrument = True
示例11: __init__
def __init__(
self,
instrument_name='guitar',
short_instrument_name='gt.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
default_tuning=('E2', 'A2', 'D3', 'G3', 'B3', 'E4'),
pitch_range='[E2, E5]',
sounding_pitch_of_written_middle_c='C3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'string player',
'guitarist',
])
self._is_primary_instrument = True
self._default_tuning = indicatortools.Tuning(default_tuning)
示例12: __init__
def __init__(
self,
instrument_name='vibraphone',
short_instrument_name='vibr.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[F3, F6]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'percussionist',
'vibraphonist',
])
示例13: __init__
def __init__(
self,
instrument_name='baritone saxophone',
short_instrument_name='bar. sax.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[C2, Ab4]',
sounding_pitch_of_written_middle_c='Eb2',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'single reed player',
'saxophonist',
])
示例14: __init__
def __init__(
self,
instrument_name='tenor trombone',
short_instrument_name='ten. trb.',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=('tenor', 'bass'),
pitch_range='[E2, Eb5]',
sounding_pitch_of_written_middle_c=None,
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'brass player',
'trombonist',
])
self._is_primary_instrument = True
示例15: __init__
def __init__(
self,
instrument_name='clarinet in A',
short_instrument_name=r'cl. A \natural',
instrument_name_markup=None,
short_instrument_name_markup=None,
allowable_clefs=None,
pitch_range='[Db3, A6]',
sounding_pitch_of_written_middle_c='A3',
):
Instrument.__init__(
self,
instrument_name=instrument_name,
short_instrument_name=short_instrument_name,
instrument_name_markup=instrument_name_markup,
short_instrument_name_markup=short_instrument_name_markup,
allowable_clefs=allowable_clefs,
pitch_range=pitch_range,
sounding_pitch_of_written_middle_c=\
sounding_pitch_of_written_middle_c,
)
self._performer_names.extend([
'wind player',
'reed player',
'single reed player',
'clarinettist',
'clarinetist',
])