class_docstr: Decodes MIDI notes (& velocities) to f0 (& loudness).
class_docstr_tok: ["Decodes","MIDI","notes","(","&","velocities",")","to","f0","(","&","loudness",")","."]
docstr: Constructor.
docstr_tok: ["Constructor","."]
code: def __init__(
      self,
      net=None,
      f0_residual=True,
      center_loudness=True,
      norm=True,
      **kwargs,
  ):
      """Constructor."""
      super().__init__(**kwargs)
      self.net = net
      self.f0_residual = f0_residual
      self.center_loudness = center_loudness
      self.dense_out = tfkl.Dense(2)
      self.norm = nn.Normalize("layer") if norm else None
  
imports: from ddsp import core
  from ddsp.training import nn
  import gin
  import tensorflow
label_desc: Use image node_id 1 to create a new MidiDecoder object from inherited base classes: nn with example: obj = MidiDecoder(net, f0_residual, center_loudness, norm)