docstr: Tests generating a single sine wave with different frame parameters.
  
  Generates sine waveforms with tensorflow and numpy and tests that they are
  the same. Test over a range of inputs provided by the parameterized
  inputs.
  
  Args:
    batch_size: Size of the batch to synthesize.
    fundamental_frequency: Base frequency of the oscillator in Hertz.
    amplitude: Amplitude of each harmonic in the waveform.
    n_frames: Number of amplitude envelope frames.
docstr_tok: ["Tests","generating","a","single","sine","wave","with","different","frame","parameters",".","Generates","sine","waveforms","with","tensorflow","and","numpy","and","tests","that","they","are","the","same",".","Test","over","a","range","of","inputs","provided","by","the","parameterized","inputs",".","Args",":","batch_size",":","Size","of","the","batch","to","synthesize",".","fundamental_frequency",":","Base","frequency","of","the","oscillator","in","Hertz",".","amplitude",":","Amplitude","of","each","harmonic","in","the","waveform",".","n_frames",":","Number","of","amplitude","envelope","frames","."]
code: def test_harmonic_synthesis_is_accurate_one_frequency(
      self, batch_size, fundamental_frequency, amplitude, n_frames
  ):
      """Tests generating a single sine wave with different frame parameters.
  
      Generates sine waveforms with tensorflow and numpy and tests that they are
      the same. Test over a range of inputs provided by the parameterized
      inputs.
  
      Args:
        batch_size: Size of the batch to synthesize.
        fundamental_frequency: Base frequency of the oscillator in Hertz.
        amplitude: Amplitude of each harmonic in the waveform.
        n_frames: Number of amplitude envelope frames.
      """
      frequencies = fundamental_frequency * np.ones(
          [batch_size, n_frames, 1]
      )
      amplitudes = amplitude * np.ones([batch_size, n_frames, 1])
  
      frequencies_np = fundamental_frequency * np.ones(
          [batch_size, self.n_samples, 1]
      )
      amplitudes_np = amplitude * np.ones(
          [batch_size, self.n_samples, 1]
      )
  
      # Create np test signal.
      wav_np = create_wave_np(
          batch_size,
          frequencies_np,
          amplitudes_np,
          self.seconds,
          self.n_samples,
      )
  
      wav_tf = core.harmonic_synthesis(
          frequencies,
          amplitudes,
          n_samples=self.n_samples,
          sample_rate=self.sample_rate,
      )
      pad = self.n_samples // n_frames  # Ignore edge effects.
      self.assertAllClose(wav_np[pad:-pad], wav_tf[pad:-pad])
  
imports: from absl.testing import parameterized
  from ddsp import core
  import librosa
  import numpy
  from scipy import signal
  import tensorflow.compat.v2
label_desc: Use image node_id 5 for calling the HarmonicSynthTest obj's underlying member method code with example usage: obj.test_harmonic_synthesis_is_accurate_one_frequency(batch_size, fundamental_frequency, amplitude, n_frames) without return types