当前位置: 首页>>代码示例>>Python>>正文


Python Instrument.__init__方法代码示例

本文整理汇总了Python中abjad.tools.instrumenttools.Instrument.Instrument.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python Instrument.__init__方法的具体用法?Python Instrument.__init__怎么用?Python Instrument.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在abjad.tools.instrumenttools.Instrument.Instrument的用法示例。


在下文中一共展示了Instrument.__init__方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:DnMllr,项目名称:abjad,代码行数:30,代码来源:AltoSaxophone.py

示例2: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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)
开发者ID:DnMllr,项目名称:abjad,代码行数:31,代码来源:Viola.py

示例3: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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'])
开发者ID:adorsk,项目名称:abjad,代码行数:30,代码来源:FrenchHorn.py

示例4: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:DnMllr,项目名称:abjad,代码行数:31,代码来源:Bassoon.py

示例5: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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'])
开发者ID:adorsk,项目名称:abjad,代码行数:31,代码来源:BassClarinet.py

示例6: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:DnMllr,项目名称:abjad,代码行数:30,代码来源:Harp.py

示例7: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:gkthiruvathukal,项目名称:abjad,代码行数:31,代码来源:ClarinetInBFlat.py

示例8: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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',
         ])
开发者ID:ajyoon,项目名称:abjad,代码行数:29,代码来源:Contrabassoon.py

示例9: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:adorsk,项目名称:abjad,代码行数:29,代码来源:Cello.py

示例10: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:adorsk,项目名称:abjad,代码行数:28,代码来源:Violin.py

示例11: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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)
开发者ID:willingc,项目名称:abjad,代码行数:30,代码来源:Guitar.py

示例12: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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',
         ])
开发者ID:gkthiruvathukal,项目名称:abjad,代码行数:27,代码来源:Vibraphone.py

示例13: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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',
         ])
开发者ID:gkthiruvathukal,项目名称:abjad,代码行数:29,代码来源:BaritoneSaxophone.py

示例14: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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
开发者ID:gkthiruvathukal,项目名称:abjad,代码行数:28,代码来源:TenorTrombone.py

示例15: __init__

# 需要导入模块: from abjad.tools.instrumenttools.Instrument import Instrument [as 别名]
# 或者: from abjad.tools.instrumenttools.Instrument.Instrument import __init__ [as 别名]
 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',
         ])
开发者ID:gkthiruvathukal,项目名称:abjad,代码行数:30,代码来源:ClarinetInA.py


注:本文中的abjad.tools.instrumenttools.Instrument.Instrument.__init__方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。