class_docstr: Synthesize audio with a bank of arbitrary sinusoidal oscillators.
docstr: Synthesize audio with sinusoidal synthesizer from controls.
  
  Args:
    amplitudes: Amplitude tensor of shape [batch, n_frames, n_sinusoids].
      Expects float32 that is strictly positive.
    frequencies: Tensor of shape [batch, n_frames, n_sinusoids].
      Expects float32 in Hertz that is strictly positive.
  
  Returns:
    signal: A tensor of harmonic waves of shape [batch, n_samples].
docstr_tok: ["Synthesize","audio","with","sinusoidal","synthesizer","from","controls",".","Args",":","amplitudes",":","Amplitude","tensor","of","shape","[","batch",",","n_frames",",","n_sinusoids","]",".","Expects","float32","that","is","strictly","positive",".","frequencies",":","Tensor","of","shape","[","batch",",","n_frames",",","n_sinusoids","]",".","Expects","float32","in","Hertz","that","is","strictly","positive",".","Returns",":","signal",":","A","tensor","of","harmonic","waves","of","shape","[","batch",",","n_samples","]","."]
code: def get_signal(self, amplitudes, frequencies):
      """Synthesize audio with sinusoidal synthesizer from controls.
  
      Args:
        amplitudes: Amplitude tensor of shape [batch, n_frames, n_sinusoids].
          Expects float32 that is strictly positive.
        frequencies: Tensor of shape [batch, n_frames, n_sinusoids].
          Expects float32 in Hertz that is strictly positive.
  
      Returns:
        signal: A tensor of harmonic waves of shape [batch, n_samples].
      """
      # Create sample-wise envelopes.
      amplitude_envelopes = core.resample(
          amplitudes, self.n_samples, method=self.amp_resample_method
      )
      frequency_envelopes = core.resample(frequencies, self.n_samples)
  
      signal = core.oscillator_bank(
          frequency_envelopes=frequency_envelopes,
          amplitude_envelopes=amplitude_envelopes,
          sample_rate=self.sample_rate,
      )
      return signal
  
imports: from ddsp import core
  from ddsp import processors
  import gin
  import tensorflow.compat.v2
label_desc: Use image node_id 3 for calling the Sinusoidal obj's underlying member method code with example usage: obj.get_signal(amplitudes, frequencies) and returns: signal