def _get_format_specification(self): import abjad slot_contribution_names = ( 'absolute_before', 'absolute_after', 'before', 'after', 'opening', 'closing', 'right', ) grob_contribution_names = ( 'context_settings', 'grob_overrides', 'grob_reverts', ) names = [ _ for _ in slot_contribution_names if getattr(self, _).has_contributions ] names.extend(_ for _ in grob_contribution_names if getattr(self, _)) return abjad.FormatSpecification( client=self, storage_format_kwargs_names=names, )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, repr_is_bracketed=True, repr_is_indented=False, )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, storage_format_is_indented=False, storage_format_args_values=[self.abbreviation], )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_args_values=[list(self._items)], )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( self, repr_is_indented=False, storage_format_args_values=[self.name], storage_format_is_indented=False, )
def _get_format_specification(self): values = [] if self.q_event: values.append(self.q_event) if self.offset: values.append(self.offset) return abjad.FormatSpecification(client=self, storage_format_args_values=values)
def _get_format_specification(self): import abjad values = [self.value] return abjad.FormatSpecification( client=self, storage_format_args_values=values, storage_format_kwargs_names=[], )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, storage_format_args_values=[self.numbers], storage_format_is_indented=False, storage_format_kwargs_names=[], )
def _get_format_specification(self): manager = abjad.StorageFormatManager(self) names = list(manager.signature_keyword_names) return abjad.FormatSpecification( self, storage_format_args_values=self.commands, storage_format_keyword_names=names, )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_args_values=(self.name, ) + self.arguments, storage_format_kwargs_names=[], )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, coerce_for_equality=True, repr_is_indented=False, storage_format_is_indented=False, storage_format_args_values=[self.number], )
def _get_format_specification(self): values = [] if self.sequence: values.append(self.sequence) return abjad.FormatSpecification( client=self, storage_format_args_values=values, storage_format_keyword_names=[], )
def _get_format_specification(self): import abjad values = [self.tonic, self.mode] return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_is_indented=False, storage_format_args_values=values, )
def _get_format_specification(self): import abjad values = [] summary = self._get_contents_summary() if summary: values.append(summary) return abjad.FormatSpecification(client=self, repr_args_values=values, storage_format_kwargs_names=[])
def _get_format_specification(self): import abjad return abjad.FormatSpecification( self, coerce_for_equality=True, repr_is_indented=False, storage_format_args_values=[self.name], storage_format_is_indented=False, storage_format_kwargs_names=['arrow'], )
def _get_format_specification(self): import abjad values = [self.name] if self.direction is not None: values.append(self.direction) return abjad.FormatSpecification( client=self, storage_format_args_values=values, storage_format_is_indented=False, )
def _get_format_specification(self): values = [] timespans = [x for x in self] if timespans: values.append(timespans) names = [] out = abjad.FormatSpecification() out.storage_format_args_values = values out.storage_format_keyword_names = names return out
def _get_format_specification(self): import abjad agent = abjad.StorageFormatManager(self) names = list(agent.signature_keyword_names) if self.item_class is abjad.Markup: names.remove('item_class') return abjad.FormatSpecification( client=self, storage_format_kwargs_names=names, )
def _get_format_specification(self): values = [] logical_ties = [x for x in self] if logical_ties: values.append(logical_ties) names = [] out = abjad.FormatSpecification() out.storage_format_args_values = values out.storage_format_keyword_names = names return out
def _get_format_specification(self): return abjad.FormatSpecification( client=self, storage_format_args_values=self.items or (), storage_format_keyword_names=[ "search_tree", "tempo", "time_signature", "use_full_measure", ], )
def _get_format_specification(self): import abjad return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_is_indented=False, storage_format_args_values=[ str(self.key_signature.tonic), self.key_signature.mode.mode_name, ], )
def _get_format_specification(self): import abjad keywords = [] if self.hide is True: keywords.append('hide') return abjad.FormatSpecification( self, repr_args_values=[], repr_is_indented=False, repr_kwargs_names=keywords, )
def _get_format_specification(self): values = [] logical_ties = [x for x in self] if logical_ties: values.append(logical_ties) names = [] return abjad.FormatSpecification( client=self, storage_format_args_values=values, storage_format_keyword_names=names, )
def _get_format_specification(self): import abjad names = [] if not self.format_slot == 'opening': names.append('format_slot') return abjad.FormatSpecification( client=self, storage_format_args_values=[self.name], storage_format_kwargs_names=names, storage_format_is_indented=False, )
def _get_format_specification(self): import abjad summary = self._get_compact_representation() return abjad.FormatSpecification( client=self, repr_is_indented=False, repr_args_values=[summary], storage_format_args_values=[format(self, 'lilypond')], storage_format_is_indented=False, storage_format_kwargs_names=[], )
def _get_format_specification(self): import abjad agent = abjad.StorageFormatManager(self) names = list(agent.signature_keyword_names) for name in names[:]: if not getattr(self, name): names.remove(name) return abjad.FormatSpecification( client=self, storage_format_kwargs_names=names, )
def _get_format_specification(self): agent = abjad.StorageFormatManager(self) names = agent.signature_keyword_names for name in ("attachments", ): if not getattr(self, name, None) and name in names: names.remove(name) return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_keyword_names=names, )
def _get_format_specification(self): import abjad storage_format_is_indented = False if self.partial is not None or self.hide is not None: storage_format_is_indented = True return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_args_values=[self.pair], storage_format_kwargs_names=['partial', 'hide'], storage_format_is_indented=storage_format_is_indented, )
def _get_format_specification(self): import abjad if self.template is None: return super(SilenceMask, self)._get_format_specification() return abjad.FormatSpecification( client=self, repr_is_indented=False, storage_format_is_indented=False, storage_format_args_values=[self.template], storage_format_forced_override=self.template, storage_format_kwargs_names=(), )
def _get_format_specification(self): import abjad agent = abjad.StorageFormatManager(self) names = list(agent.signature_keyword_names) if 'items' in names: names.remove('items') return abjad.FormatSpecification( self, repr_is_indented=False, storage_format_args_values=[self._collection], storage_format_kwargs_names=names, )