Klasse Voice

java.lang.Object
builder.resid.residfp.Voice

public final class Voice extends Object
  • Felddetails

    • wave

      public final WaveformGenerator wave
    • envelope

      public final EnvelopeGenerator envelope
    • voiceOffset

      private float voiceOffset
      Multiplying D/A DC offset.
    • muted

      public boolean muted
  • Konstruktordetails

    • Voice

      protected Voice()
      Constructor.
  • Methodendetails

    • output

      float output(WaveformGenerator ringModulator)
      Amplitude modulated waveform output. The waveform DAC generates a voltage between 5 and 12 V corresponding to oscillator state 0 .. 4095. The envelope DAC generates a voltage between waveform gen output and the 5V level, corresponding to envelope state 0 .. 255. Ideal range [-2048*255, 2047*255].
      Parameter:
      ringModulator - Ring-modulator for waveform
      Gibt zurück:
      waveformgenerator output
    • setChipModel

      public void setChipModel(ChipModel model)
      Set chip model. There is some level from each voice even if the env is down and osc is stopped. You can hear this by routing a voice into filter (filter should be kept disabled for this) as the master level changes. This tunable determines this static offset and affects the volume of digis. 6581 digis are quite loud, and 8580 digis still there but much fainter.
      Parameter:
      model - chip model to use
    • writeCONTROL_REG

      public void writeCONTROL_REG(WaveformGenerator ring_modulator, byte control)
      Register functions.
      Parameter:
      ring_modulator - Ring modulator for waveform
      control - Control register value.
    • reset

      public void reset()
      SID reset.
    • mute

      public void mute(boolean enable)
      Voice mute.
      Parameter:
      enable - Is voice enabled?