class_docstr: VST inference modules, for models trained with `models/vst/vst.gin`.
class_docstr_tok: ["VST","inference","modules",",","for","models","trained","with","`","models\/vst\/vst.gin","`","."]
docstr: Compute a frame of audio, single example, single frame.
code: def call(self, amps, prev_amps, hd, prev_hd, f0, prev_f0, prev_phase):
      """Compute a frame of audio, single example, single frame."""
      # Make 3-D tensors, two frames for interpolation.
      amps = tf.reshape(
          tf.concat([prev_amps[None, :], amps[None, :]], axis=0),
          [1, 2, 1],
      )
      hd = tf.reshape(
          tf.concat([prev_hd[None, :], hd[None, :]], axis=0),
          [1, 2, self.n_harmonics],
      )
      f0 = tf.reshape(
          tf.concat([prev_f0[None, :], f0[None, :]], axis=0), [1, 2, 1]
      )
      prev_phase = tf.reshape(prev_phase, [1, 1, 1])
  
      audio_out, final_phase = ddsp.core.streaming_harmonic_synthesis(
          frequencies=f0,
          amplitudes=amps,
          harmonic_distribution=hd,
          initial_phase=prev_phase,
          n_samples=self.hop_size,
          sample_rate=self.sample_rate,
          amp_resample_method=self.resample_method,
      )
  
      # Return 1-D outputs.
      audio_out = audio_out[0]
      final_phase = final_phase[0, 0]
      return audio_out, final_phase
  
imports: import ddsp
  from ddsp.training import models
  from ddsp.training import train_util
  import gin
  import tensorflow
label_desc: Use image node_id 3 for calling the VSTSynthesizeHarmonic obj's underlying member method code with example usage: obj.call(amps, prev_amps, hd, prev_hd, f0, prev_f0, prev_phase) and returns: audio_out,  final_phase