expenvelope.json_serializer.SavesToJSONMeta

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

Bases: 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 = {'ChangePedal': <class 'scamp.spanners.ChangePedal'>, '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'>, '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'>, 'Spanner': <class 'scamp.spanners.Spanner'>, 'SpellingPolicy': <class 'scamp.spelling.SpellingPolicy'>, 'StaffText': <class 'scamp.text.StaffText'>, 'StartBracket': <class 'scamp.spanners.StartBracket'>, 'StartDashes': <class 'scamp.spanners.StartDashes'>, 'StartHairpin': <class 'scamp.spanners.StartHairpin'>, 'StartPedal': <class 'scamp.spanners.StartPedal'>, 'StartPhrasingSlur': <class 'scamp.spanners.StartPhrasingSlur'>, 'StartSlur': <class 'scamp.spanners.StartSlur'>, 'StartTrill': <class 'scamp.spanners.StartTrill'>, 'StopBracket': <class 'scamp.spanners.StopBracket'>, 'StopDashes': <class 'scamp.spanners.StopDashes'>, 'StopHairpin': <class 'scamp.spanners.StopHairpin'>, 'StopPedal': <class 'scamp.spanners.StopPedal'>, 'StopPhrasingSlur': <class 'scamp.spanners.StopPhrasingSlur'>, 'StopSlur': <class 'scamp.spanners.StopSlur'>, 'StopTrill': <class 'scamp.spanners.StopTrill'>, 'TempoEnvelope': <class 'clockblocks.tempo_envelope.TempoEnvelope'>, 'TempoHistory': <class 'clockblocks.tempo_envelope.TempoHistory'>, '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 'clockblocks.tempo_envelope.TempoHistory'>: 'TempoHistory', <class 'scamp.playback_adjustments.ParamPlaybackAdjustment'>: 'ParamPlaybackAdjustment', <class 'scamp.playback_adjustments.NotePlaybackAdjustment'>: 'NotePlaybackAdjustment', <class 'scamp.spelling.SpellingPolicy'>: 'SpellingPolicy', <class 'scamp.text.StaffText'>: 'StaffText', <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.spanners.Spanner'>: 'Spanner', <class 'scamp.spanners.StartSlur'>: 'StartSlur', <class 'scamp.spanners.StopSlur'>: 'StopSlur', <class 'scamp.spanners.StartPhrasingSlur'>: 'StartPhrasingSlur', <class 'scamp.spanners.StopPhrasingSlur'>: 'StopPhrasingSlur', <class 'scamp.spanners.StartHairpin'>: 'StartHairpin', <class 'scamp.spanners.StopHairpin'>: 'StopHairpin', <class 'scamp.spanners.StartBracket'>: 'StartBracket', <class 'scamp.spanners.StopBracket'>: 'StopBracket', <class 'scamp.spanners.StartDashes'>: 'StartDashes', <class 'scamp.spanners.StopDashes'>: 'StopDashes', <class 'scamp.spanners.StartTrill'>: 'StartTrill', <class 'scamp.spanners.StopTrill'>: 'StopTrill', <class 'scamp.spanners.StartPedal'>: 'StartPedal', <class 'scamp.spanners.ChangePedal'>: 'ChangePedal', <class 'scamp.spanners.StopPedal'>: 'StopPedal', <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.