[docs]classDirectPitch(music_parameters.abc.Pitch):"""A simple pitch class that gets directly initialised by its frequency. :param frequency: The frequency of the ``DirectPitch`` object. May be used when a converter class needs a pitch object, but there is no need or desire for a complex abstraction of the respective pitch (that classes like ``JustIntonationPitch`` or ``WesternPitch`` offer). **Example:** >>> from mutwo.music_parameters import pitches >>> my_pitch = pitches.DirectPitch(440) """def__init__(self,frequency:core_constants.Real,*args,**kwargs):super().__init__(*args,**kwargs)self._frequency=float(frequency)@propertydeffrequency(self)->float:"""The frequency of the pitch."""returnself._frequencydef__repr__(self)->str:return"DirectPitch(frequency = {})".format(self.frequency)