def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, positional_argument_values=( self._tempo_indication, self._proportional_notation_duration, ), )
def get_storage_format_positional_values(self): from abjad.tools import systemtools values = self.specification.storage_format_args_values if values is None: specification = getattr( self.client, '_storage_format_specification', systemtools.StorageFormatSpecification(self.client)) values = specification.positional_argument_values or () return tuple(values)
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, positional_argument_values=( self._value.numerator, self._value.denominator, ), )
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, keyword_argument_names=(), positional_argument_values=( self.rtm_format, ), )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = [self.contents_string] if self.format_slot is not None: positional_argument_values.append(self.format_slot) return systemtools.StorageFormatSpecification( self, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, is_indented=False, positional_argument_values=( str(self.key_signature.tonic), self.key_signature.mode.mode_name, ))
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = (self.number, ) return systemtools.StorageFormatSpecification( self, is_indented=False, keyword_argument_names=(), positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, is_indented=False, positional_argument_values=( self.pitch_name, ) )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = () if self.sequence: positional_argument_values = (self.sequence, ) return systemtools.StorageFormatSpecification( self, positional_argument_values=positional_argument_values, keyword_argument_names=(), )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = [] if self.start is not None and self.stop is not None: positional_argument_values.append(self.start) positional_argument_values.append(self.stop) return systemtools.StorageFormatSpecification( self, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, keywords_ignored_when_false=( 'children', 'name', 'options', ), )
def _storage_format_specification(self): from abjad.tools import systemtools if stringtools.is_string(self._value): positional_argument_values = (self._value, ) else: positional_argument_values = self._value return systemtools.StorageFormatSpecification( self, positional_argument_values=positional_argument_values, )
def get_repr_keyword_dict(self): from abjad.tools import systemtools names = self.specification.repr_kwargs_names if names is None: specification = systemtools.StorageFormatSpecification(self.client) names = specification.keyword_argument_names or () keyword_dict = {} for name in names: keyword_dict[name] = self._get(name) return keyword_dict
def _storage_format_specification(self): from abjad.tools import systemtools keyword_argument_names = list( systemtools.StorageFormatManager.get_keyword_argument_names(self)) if 'overrides' in keyword_argument_names and not self.overrides: keyword_argument_names.remove('overrides') return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, )
def _repr_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, is_indented=False, keyword_argument_names=(), positional_argument_values=( self.abbreviation, ), )
def _storage_format_specification(self): from abjad.tools import systemtools return systemtools.StorageFormatSpecification( self, keyword_argument_names=( 'payload', 'start_offset', ), positional_argument_values=(self.pair, ), )
def _storage_format_specification(self): from abjad.tools import systemtools if self._music: positional_argument_values = (self._music, ) else: positional_argument_values = () return systemtools.StorageFormatSpecification( self, keyword_argument_names=(), positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = (self.name, ) keyword_argument_names = () if not self.format_slot == 'opening': keyword_argument_names = ('format_slot', ) return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = [self.name] if self.direction is not None: positional_argument_values.append(self.direction) return systemtools.StorageFormatSpecification( self, is_indented=False, keyword_argument_names=(), positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools keyword_argument_names = ('prefix', ) if self.subject is type(None): positional_argument_values = () else: positional_argument_values = (self.subject, ) return systemtools.StorageFormatSpecification( self, positional_argument_values=positional_argument_values, keyword_argument_names=keyword_argument_names, )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = self.items or () return systemtools.StorageFormatSpecification( self, keyword_argument_names=( 'beatspan', 'search_tree', 'tempo', ), positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools items = [] if self.item_class.__name__.startswith('Named'): items = [str(x) for x in sorted(self)] else: items = sorted(x.pitch_number for x in self) return systemtools.StorageFormatSpecification( self, keyword_argument_names=(), positional_argument_values=(items, ), )
def _repr_specification(self): from abjad.tools import systemtools positional_argument_values = [] if self.items: positional_argument_values.append(len(self.items)) positional_argument_values = tuple(positional_argument_values) return systemtools.StorageFormatSpecification( self, is_bracketed=True, is_indented=False, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = self.items or () return systemtools.StorageFormatSpecification( self, keyword_argument_names=( 'search_tree', 'tempo', 'time_signature', 'use_full_measure', ), positional_argument_values=positional_argument_values)
def _repr_specification(self): from abjad.tools import systemtools class_name = type(self).__name__ name = self.name storage_format_pieces = '{}.{}'.format( class_name, name, ) return systemtools.StorageFormatSpecification( self, storage_format_pieces=(storage_format_pieces,), )
def _storage_format_specification(self): from abjad.tools import systemtools manager = systemtools.StorageFormatManager keyword_argument_names = \ manager.get_signature_keyword_argument_names(self) keyword_argument_names = list(keyword_argument_names) keyword_argument_names.remove('stack_priority') keyword_argument_names = tuple(keyword_argument_names) return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, )
def _repr_specification(self): from abjad.tools import systemtools if self._compact_summary == '': positional_argument_values = None else: positional_argument_values = (self._compact_summary, ) return systemtools.StorageFormatSpecification( self, is_indented=False, keyword_argument_names=(), positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools positional_argument_values = (self.time_signature, self._contents_summary) if self.implicit_scaling: keyword_argument_names = ('implicit_scaling', ) else: keyword_argument_names = () return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools manager = systemtools.StorageFormatManager names = manager.get_signature_keyword_argument_names(self) keyword_argument_names = list(names) if 'items' in keyword_argument_names: keyword_argument_names.remove('items') keyword_argument_names = tuple(keyword_argument_names) positional_argument_values = (list(self._collection.items()), ) return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, positional_argument_values=positional_argument_values, )
def _storage_format_specification(self): from abjad.tools import systemtools manager = systemtools.StorageFormatManager keyword_argument_names = \ manager.get_signature_keyword_argument_names(self) keyword_argument_names = list(keyword_argument_names) if self.cyclic == True: keyword_argument_names.remove('cyclic') if not self.counts: keyword_argument_names.remove('counts') return systemtools.StorageFormatSpecification( self, keyword_argument_names=keyword_argument_names, )