def __init__(self, track, comp_location, duration, volume): """Create a dynamic to adjust the volume of a track in a composition. Any segments in the composition that include the ``track`` between ``comp_location`` and ``comp_location + duration`` will be adjust to the given ``volume``. Here, ``volume`` is a constant multiplier (0.0 for zero volume, 1.0 for normal volume). You can use a range of volumes, but obviously if volume is much greater than 1.0, there will likely be clipping in the final composition. :param track: Track whose volume to adjust :type track: :py:class:`radiotool.composer.Track` :param float comp_location: Location to begin volume adjustment in composition (in seconds) :param float duration: Duration of volume adjustment (in seconds) :param float volume: Volume throughout the duration of the adjustment (1.0: normal, to 0.0: muted) """ Dynamic.__init__(self, track, comp_location, duration) self.volume = volume
def __init__(self, track, comp_location, duration, volume): """Create a dynamic to adjust the volume of a track in a composition. Any segments in the composition that include the ``track`` between ``comp_location`` and ``comp_location + duration`` will be adjust to the given ``volume``. Here, ``volume`` is a constant multiplier (0.0 for zero volume, 1.0 for normal volume). You can use a range of volumes, but obviously if volume is much greater than 1.0, there will likely be clipping in the final composition. :param track: Track whose volume to adjust :type track: :py:class:`radiotool.composer.Track` :param float comp_location: Location to begin volume adjustment in composition (in seconds) :param float duration: Duration of volume adjustment (in seconds) :param float volume: Volume throughout the duration of the adjustment (1.0: normal, to 0.0: muted) """ Dynamic.__init__(self, track, comp_location, duration) self.volume = volume
def __init__(self, track, comp_location, duration, in_volume, out_volume, fade_type="linear"): """A fade is a :py:class:`radiotool.composer.Dynamic` that represents a fade in a track (either in or out). Currently supported fade types are ``linear`` and ``exponential``. The exponential fades are probably a bit quirky, but they work for me for some use cases. :param track: Track to fade :type track: :py:class:`radiotool.composer.Track` :param float comp_location: Location in composition to start fade (in seconds) :param float duration: Duration of fade (in seconds) :param float in_volume: Initial volume multiplier :param float out_volume: Ending volume multiplier :param string fade_type: Type of fade (``linear`` or ``exponential``) """ Dynamic.__init__(self, track, comp_location, duration) self.in_volume = in_volume self.out_volume = out_volume self.fade_type = fade_type
def __init__(self, track, comp_location, duration, in_volume, out_volume, fade_type="linear"): """A fade is a :py:class:`radiotool.composer.Dynamic` that represents a fade in a track (either in or out). Currently supported fade types are ``linear`` and ``exponential``. The exponential fades are probably a bit quirky, but they work for me for some use cases. :param track: Track to fade :type track: :py:class:`radiotool.composer.Track` :param float comp_location: Location in composition to start fade (in seconds) :param float duration: Duration of fade (in seconds) :param float in_volume: Initial volume multiplier :param float out_volume: Ending volume multiplier :param string fade_type: Type of fade (``linear`` or ``exponential``) """ Dynamic.__init__(self, track, comp_location, duration) self.in_volume = in_volume self.out_volume = out_volume self.fade_type = fade_type