OplObserver.java

package libsidplay.components.cart.supported.core;

/**
 * Optional observation of the existing synthesis pass; no allocation, UI, or interop occurs here. Channel output is
 * measured before the final mix shift; envelope counters use 0.1875 dB attenuation steps. Operator arrays use
 * {@code channel * 2 + operator}, with the modulator before the carrier.
 */
public abstract class OplObserver {
    public final int[] output = new int[9], envelope = new int[18], fnum = new int[9];
    public final int[] waveform = new int[18], multiplier = new int[18], totalLevel = new int[18];
    public final int[] feedback = new int[9], algorithm = new int[9], key = new int[9];
    public int sampleRate, clock, rhythm, digi;
    public boolean envelopesUpdated;
    int envelopeCountdown;

    public abstract void sample();
}