# Oscillator sync

Oscillator sync is a feature in some synthesizers with two or more VCOs, DCOs, or "virtual" oscillators. As one oscillator finishes a cycle, it resets the period of another oscillator, forcing the latter to have the same base frequency. This can produce a harmonically rich sound, the timbre of which can be altered by varying the synced oscillator's frequency. A synced oscillator that resets other oscillator(s) is called the leader; the oscillators which it resets are called followers. There are two common forms of oscillator sync which appear on synthesizers: Hard Sync and Soft Sync. According to Sound on Sound journalist Gordon Reid, oscillator sync is "one of the least understood facilities on any synthesizer".

## Hard Sync

The leader oscillator's pitch is generated by user input (typically the synthesizer's keyboard), and is arbitrary. The follower oscillator's pitch may be tuned to (or detuned from) this frequency, or may remain constant. Every time the leader oscillator's cycle repeats, the follower is retriggered, regardless of its position. If the follower is tuned to a lower frequency than the leader it will be forced to repeat before it completes an entire cycle, and if it is tuned to a higher frequency it will be forced to repeat partway through a second or third cycle. This technique ensures that the oscillators are technically playing at the same frequency, but the irregular cycle of the follower oscillator often causes complex timbres and the impression of harmony. If the tuning of the follower oscillator is swept, one may discern a harmonic sequence.
This effect may be achieved by measuring the zero axis crossings of the leader oscillator and retriggering the follower oscillator after every other crossing.
This form of oscillator sync is more common than soft sync, but is prone to generating aliasing in naive digital implementations.

## Soft Sync

There are several other kinds of sync which may also be called Soft Sync. In a Hard Sync setup, the follower oscillator is forced to reset to some level and phase (for example, zero) with every cycle of the leader regardless of position or direction of the follower waveform, which often generates asymmetrical shapes.
In some cases, Soft Sync refers to a process intended to nudge and lock the follower oscillator into the same or an integer or fractional multiple of the leader oscillator frequency when they both have similar phases, similar to a phase-locked loop.

### Reversing Sync

This form of oscillator sync is less common. This form is very similar to Hard Sync, with one small difference. In Reversing Soft Sync, rather than resetting to zero, the wave is inverted; that is, its direction is reversed. Reversing Soft Sync is more associated with analog triangle core oscillators than analog sawtooth core oscillators.

### Threshold or Weak Sync

Several kinds of Soft Sync use comparison thresholds:
* Hard Sync which is disabled when the frequency or amplitude of the follower crosses a user-defined threshold.
* Hard Sync which is disabled when the frequency of the follower extends too high above or too far below the frequency of the leader.
* Hard Sync which is disabled when the frequency of the follower is lower than the frequency of the leader.
Soft Sync may accurately refer to any of these, depending on the synthesizer or manufacturer in question.

### Phase Advance 'Sync'

The phase of the follower is advanced by some amount when the leader oscillator level crosses some threshold. Used for audio synthesis, this may give an audible effect similar to Soft Sync.

### Reset Inhibit Sync

When the leader oscillator crosses some threshold, the normal reset of the follower is disabled: it will stick at its final level, positive or negative. When the leader crosses back over some threshold, the follower is reset.

### Overlap Sync

In this method, the current wave completes but a new waveform is generated at the sync pulse. The tail of the old wave and the new wave are output summed if they overlap.

## Digital Implementation Aspects

Naive approaches to sync in digital oscillators will result in aliasing. To prevent this, band-limited methods such as additive synthesis, BLIT (Band-Limited Impulse Train) or BLEP (Band-Limited Step) must be adopted to avoid aliasing.
In a digital oscillator, best practice is that the follower will not be reset to the identical phase each cycle, but to a phase advanced by an equivalent time to the phase of the leader at the reset. This prevents jitter in the follower frequency and provides truer synchronization.
For digital oscillators, Reversing Sync may less frequently generate aliasing. This effect may be naively implemented by measuring the zero axis crossings of the leader oscillator and reversing the slope of the follower oscillator after every other crossing.
For digital implementation, note that none of the Threshold or Weak Sync methods actually synthesize the waveform in a way different from Hard Sync (rather, they selectively deactivate it).
Overlap sync is primarily a digital technique with simple implementation, such as used in FOF; an analog implementation could be a highly damped sine oscillator excited by the reset pulse.

## Sync-based Architectures

A variety of synthesis architectures are based on sync, often used in conjunction with amplitude, frequency, or phase modulation. Such architectures include VOSIM and physical modelling synthesis.