@decorator.decorator
def apply_to_audio(f, clip, *a, **k):
 newclip = f(clip, *a, **k)
 if (hasattr(newclip, 'audio') and (newclip.audio is not None)):
  newclip.audio = f(newclip.audio, *a, **k)
 return newclip

@ decorator . decorator def apply_to_audio ( f , clip , * a , ** k ) : newclip = f ( clip , * a , ** k ) if ( hasattr ( newclip , 'audio' ) and ( newclip . audio is not None ) ) : newclip . audio = f ( newclip . audio , * a , ** k ) return newclip
this decorator will apply the function f to the audio of the clip created with f .