class_docstr: Modulated delay times used in chorus, flanger, and vibrato effects.
class_docstr_tok: ["Modulated","delay","times","used","in","chorus",",","flanger",",","and","vibrato","effects","."]
docstr: Convert network outputs into magnitudes response.
  
  Args:
    audio: Dry audio. 2-D Tensor of shape [batch, n_samples].
    gain: Amplitude of modulated signal. Shape [batch_size, n_samples, 1].
    phase: Relative delay time. Shape [batch_size, n_samples, 1].
  
  Returns:
    controls: Dictionary of tensors of synthesizer controls.
docstr_tok: ["Convert","network","outputs","into","magnitudes","response",".","Args",":","audio",":","Dry","audio",".","2-D","Tensor","of","shape","[","batch",",","n_samples","]",".","gain",":","Amplitude","of","modulated","signal",".","Shape","[","batch_size",",","n_samples",",","1","]",".","phase",":","Relative","delay","time",".","Shape","[","batch_size",",","n_samples",",","1","]",".","Returns",":","controls",":","Dictionary","of","tensors","of","synthesizer","controls","."]
code: def get_controls(self, audio, gain, phase):
      """Convert network outputs into magnitudes response.
  
      Args:
        audio: Dry audio. 2-D Tensor of shape [batch, n_samples].
        gain: Amplitude of modulated signal. Shape [batch_size, n_samples, 1].
        phase: Relative delay time. Shape [batch_size, n_samples, 1].
  
      Returns:
        controls: Dictionary of tensors of synthesizer controls.
      """
      if self.gain_scale_fn is not None:
          gain = self.gain_scale_fn(gain)
  
      if self.phase_scale_fn is not None:
          phase = self.phase_scale_fn(phase)
  
      return {"audio": audio, "gain": gain, "phase": phase}
  
imports: from ddsp import core
  from ddsp import processors
  from ddsp import synths
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 2 for calling the ModDelay obj's underlying member method code with example usage: obj.get_controls(audio, gain, phase) and returns: dict