expenvelope.json_serializer.SavesToJSONMeta

class expenvelope.json_serializer.SavesToJSONMeta(clsname, bases, attrs)[source]

Bases: abc.ABCMeta

Used to keep track of all known subclasses of SavesToJSON, so that objects can be reconstructed.

Inherited Methods

mro()

Return a type’s method resolution order.

register(subclass)

Register a virtual subclass of an ABC.

Attributes

names_to_types

types_to_names

names_to_types = {'EngravingSettings': <class 'scamp.settings.EngravingSettings'>, 'Ensemble': <class 'scamp.instruments.Ensemble'>, 'Envelope': <class 'expenvelope.envelope.Envelope'>, 'GlissandiSettings': <class 'scamp.settings.GlissandiSettings'>, 'MIDIStreamPlaybackImplementation': <class 'scamp.playback_implementations.MIDIStreamPlaybackImplementation'>, 'NotePlaybackAdjustment': <class 'scamp.playback_adjustments.NotePlaybackAdjustment'>, 'NoteProperties': <class 'scamp.note_properties.NoteProperties'>, 'OSCPlaybackImplementation': <class 'scamp.playback_implementations.OSCPlaybackImplementation'>, 'ParamPlaybackAdjustment': <class 'scamp.playback_adjustments.ParamPlaybackAdjustment'>, 'Performance': <class 'scamp.performance.Performance'>, 'PerformanceNote': <class 'scamp.performance.PerformanceNote'>, 'PerformancePart': <class 'scamp.performance.PerformancePart'>, 'PitchInterval': <class 'scamp_extensions.pitch.scale.PitchInterval'>, 'PlaybackAdjustmentsDictionary': <class 'scamp.playback_adjustments.PlaybackAdjustmentsDictionary'>, 'PlaybackImplementation': <class 'scamp.playback_implementations.PlaybackImplementation'>, 'PlaybackSettings': <class 'scamp.settings.PlaybackSettings'>, 'QuantizationRecord': <class 'scamp.quantization.QuantizationRecord'>, 'QuantizationSettings': <class 'scamp.settings.QuantizationSettings'>, 'SCPlaybackImplementation': <class 'scamp_extensions.playback.supercollider.sc_playback_implementation.SCPlaybackImplementation'>, 'SavesToJSON': <class 'expenvelope.json_serializer.SavesToJSON'>, 'Scale': <class 'scamp_extensions.pitch.scale.Scale'>, 'ScaleType': <class 'scamp_extensions.pitch.scale.ScaleType'>, 'ScampInstrument': <class 'scamp.instruments.ScampInstrument'>, 'Session': <class 'scamp.session.Session'>, 'SoundfontHost': <class 'scamp._soundfont_host.SoundfontHost'>, 'SoundfontPlaybackImplementation': <class 'scamp.playback_implementations.SoundfontPlaybackImplementation'>, 'SpellingPolicy': <class 'scamp.spelling.SpellingPolicy'>, 'StaffText': <class 'scamp.text.StaffText'>, 'TempoEnvelope': <class 'clockblocks.tempo_envelope.TempoEnvelope'>, 'TempoSettings': <class 'scamp.settings.TempoSettings'>, 'TimeSignature': <class 'scamp.quantization.TimeSignature'>, 'TimeVaryingParameter': <class 'scamp_extensions.utilities.time_varying_parameter.TimeVaryingParameter'>, '_MIDIPlaybackImplementation': <class 'scamp.playback_implementations._MIDIPlaybackImplementation'>, '_ScampSettings': <class 'scamp.settings._ScampSettings'>}
types_to_names = {<class 'expenvelope.json_serializer.SavesToJSON'>: 'SavesToJSON', <class 'expenvelope.envelope.Envelope'>: 'Envelope', <class 'clockblocks.tempo_envelope.TempoEnvelope'>: 'TempoEnvelope', <class 'scamp.playback_adjustments.ParamPlaybackAdjustment'>: 'ParamPlaybackAdjustment', <class 'scamp.playback_adjustments.NotePlaybackAdjustment'>: 'NotePlaybackAdjustment', <class 'scamp.playback_adjustments.PlaybackAdjustmentsDictionary'>: 'PlaybackAdjustmentsDictionary', <class 'scamp.spelling.SpellingPolicy'>: 'SpellingPolicy', <class 'scamp.settings._ScampSettings'>: '_ScampSettings', <class 'scamp.settings.PlaybackSettings'>: 'PlaybackSettings', <class 'scamp.settings.QuantizationSettings'>: 'QuantizationSettings', <class 'scamp.settings.GlissandiSettings'>: 'GlissandiSettings', <class 'scamp.settings.TempoSettings'>: 'TempoSettings', <class 'scamp.settings.EngravingSettings'>: 'EngravingSettings', <class 'scamp.text.StaffText'>: 'StaffText', <class 'scamp.note_properties.NoteProperties'>: 'NoteProperties', <class 'scamp.quantization.TimeSignature'>: 'TimeSignature', <class 'scamp.quantization.QuantizationRecord'>: 'QuantizationRecord', <class 'scamp._soundfont_host.SoundfontHost'>: 'SoundfontHost', <class 'scamp.playback_implementations.PlaybackImplementation'>: 'PlaybackImplementation', <class 'scamp.playback_implementations._MIDIPlaybackImplementation'>: '_MIDIPlaybackImplementation', <class 'scamp.playback_implementations.SoundfontPlaybackImplementation'>: 'SoundfontPlaybackImplementation', <class 'scamp.playback_implementations.MIDIStreamPlaybackImplementation'>: 'MIDIStreamPlaybackImplementation', <class 'scamp.playback_implementations.OSCPlaybackImplementation'>: 'OSCPlaybackImplementation', <class 'scamp.instruments.Ensemble'>: 'Ensemble', <class 'scamp.instruments.ScampInstrument'>: 'ScampInstrument', <class 'scamp.performance.PerformanceNote'>: 'PerformanceNote', <class 'scamp.performance.PerformancePart'>: 'PerformancePart', <class 'scamp.performance.Performance'>: 'Performance', <class 'scamp.session.Session'>: 'Session', <class 'scamp_extensions.playback.supercollider.sc_playback_implementation.SCPlaybackImplementation'>: 'SCPlaybackImplementation', <class 'scamp_extensions.utilities.time_varying_parameter.TimeVaryingParameter'>: 'TimeVaryingParameter', <class 'scamp_extensions.pitch.scale.PitchInterval'>: 'PitchInterval', <class 'scamp_extensions.pitch.scale.ScaleType'>: 'ScaleType', <class 'scamp_extensions.pitch.scale.Scale'>: 'Scale'}
mro()

Return a type’s method resolution order.

register(subclass)

Register a virtual subclass of an ABC.

Returns the subclass, to allow usage as a class decorator.