I gave YVE two DX7 patches. Both played a single sine at A440. Both came out sample-for-sample identical on the left channel for the full second I rendered. On the original DX7, its algorithm ROM gives me a reason to expect one to come out about 15.6 dB quieter. YVE had recognized both patches. It had connected every operator to the intended destination. I could still point to a piece of the instrument I had lost.
The clue was what happened when I turned the operator output down from 99 to 91. Both YVE voices dropped by almost exactly six decibels, just as I expected. The knob was doing its job. Somewhere between that knob and the output jack there was another gain decision. On a modulator the same eight steps could change the character of a bass attack while the carrier level stayed put. Following the level control all the way to its destination turned out to be a good way to understand the whole instrument.
That translation problem captures why I started building YVE. It’s a personal project with a fairly unreasonable ambition. I want to build the world’s most powerful synth DSP engine and still be able to sit down at a keyboard and find a sound I want to play. There is now enough of the engine working to put an old patch through it, follow the operators, and make sound. It’s a gratifying point to reach. It’s also the point at which a list of supported features stops telling me much.
A patch file contains integers. A musician remembers an instrument that bit harder when they leaned into a chord. Between those two things are a surprising number of engineering decisions. Here’s the path I take through them.
Thesis: In an FM engine, operator gain, routing, and timing shape the sound together.
Why now: YVE’s working FM engine lets me test how a translated patch moves under a player’s hands.
Who should care: Synth programmers, DSP engineers, and musicians who have wondered why two instruments disagree about the same patch.
Bottom line: Follow an operator from its envelope to its destination. That tells you which quantity to measure and what to listen for.
One oscillator borrows another oscillator’s clock face
A Yamaha-style operator is a signal generator with a phase accumulator, a waveform, and an envelope. Imagine marking a dot on a wheel and reading its height as the wheel turns. Reading the height at equal intervals gives you a sine wave. Turn the wheel twice as fast and its pitch goes up an octave. Read each sample a little ahead of or behind the dot and you have another way to change the sound while the wheel continues to turn at its original rate.
In a digital oscillator the wheel is a running phase. At a sample rate of 48,000 Hz, a 600 Hz oscillator advances 1/80 of a turn per sample. An implementation can keep that position in cycles, radians, or a fixed-width integer that overflows at exactly one turn. The choice is arbitrary until two parts of the engine exchange a signal. A modulation depth of 0.5 means half a radian in one convention and half a turn, or π radians, in another. A missing conversion there changes the depth by a factor of about 6.28. The pitch of the unmodulated oscillator will still pass its tuning test.
Let the carrier run at frequency <i>f</i><sub>c</sub>. A second oscillator at <i>f</i><sub>m</sub> moves the carrier’s read position back and forth. Write the maximum displacement as β radians and the carrier amplitude as <i>A</i>. With sine waveforms and zero initial phases, their output is
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
Read that from the inside out. The inner sine moves between −1 and +1. Multiplying it by β turns that number into an angle. Add that angle to the carrier’s normal running phase, then look up the outer sine. Only after the lookup does <i>A</i> scale the audio. If β is zero, the inner oscillator drops out and the equation reduces to a single sine. If β is π/2 radians, the inner oscillator can move the lookup a quarter turn ahead or behind. It can do that while the carrier’s base phase keeps moving at the original rate.
Plain-language decode: The carrier is the part you hear directly. The modulator moves where the carrier reads its waveform. Turn the modulator up and you change the shape of the sound. Turn down the final output and you get a quieter copy of that shape.
For a slow modulator and a small enough depth, you can follow the variation as a wobble in pitch. With a modulator in the audio range, one period of the wobble can fit inside a few periods of the carrier. Individual cycles change shape, and the ear hears a different tone. One reason John Chowning’s 1973 paper is still worth reading is that he treats the evolution of that tone over the duration of a note as a musical control in its own right. That is the part of the idea I want in an instrument. Chowning, The Synthesis of Complex Audio Spectra by Means of Frequency Modulation
The name frequency modulation has stuck. Yamaha’s DX7 operator chip implements the connection by perturbing phase before the sine lookup. The distinction is worth one derivative. Instantaneous frequency is the rate at which the complete phase angle changes, divided by 2π. If the depth can move during the note, differentiating the argument above gives
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
The two extra terms come from differentiating a product. The cosine term is what happens when the inner sine moves around its cycle. The β′ term is what happens when its depth changes while it is doing that. Imagine the modulator at the top of its sine, so its own slope is momentarily zero. If the envelope is increasing depth at that instant, the phase offset is still increasing. That second movement is the contribution of β′.
Hold β steady and the last term goes away. Peak frequency deviation is now β times the modulator frequency, in hertz. If a 200 Hz modulator displaces the phase by two radians, the peak deviation is 400 Hz. An oscillator that integrates a 400 Hz cosine deviation can produce the same waveform, with the right starting phase. Raise the modulation depth rapidly during an attack and the derivative term reappears. A design that feeds the same envelope into a frequency input, in hertz, and a design that applies it to a phase input, in radians, have been given different instructions.
That difference also explains a useful property of ratio tuning. Double the frequencies of both operators while holding β constant. The peak deviation doubles, but its size relative to the note stays the same. A phrase can move up an octave and keep the same arrangement of partials relative to pitch, until the oscillator, envelope scaling, or bandwidth of the real instrument intervenes. Hold the deviation constant in hertz instead and the index halves as the modulator goes up an octave. The sound gets progressively simpler. Both behaviors are available to a designer. Accidentally choosing one while calibrating the other is an excellent way to get the middle of a keyboard right.
Where the energy goes when the tone gets brighter
A sine carrier begins with one spectral line. With a steady sine modulator the output contains lines spaced exactly one modulator frequency apart. The underlying expansion tells us both the position of each line and its signed amplitude. Here <i>n</i> is an integer and <i>J</i><sub>n</sub> is the Bessel function of the first kind of order <i>n</i>.
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
For each upper and lower order the magnitudes agree before components overlap. Their signs follow <i>J</i><sub>−n</sub>(β) = (−1)<sup>n</sup><i>J</i><sub>n</sub>(β). A minus sign reverses a sinusoid’s phase. It matters when another contribution reaches the same frequency. The infinite series also means that a clean formula for the location of the last sideband is generally unavailable. In practice I care about the last one I can measure above the noise or hear at the playback level I’m using.
For example, with <i>f</i><sub>c</sub> = 620 Hz and <i>f</i><sub>m</sub> = 137 Hz, order zero is 620 Hz. Orders +1 and −1 are 757 and 483 Hz. Order +2 is 894 Hz. The frequency calculation uses <i>n</i> and the two oscillator frequencies. The Bessel coefficient uses <i>n</i> and β to tell you the size and sign of that line. For a very small depth, J₀ is close to 1 and the first pair start at roughly ±β/2. At a depth of 0.1 rad that means about 0.05 of the unmodulated carrier amplitude per first-order sideband, or about −26 dB each. That shortcut is for shallow modulation. Use the full coefficients for the deeper examples below.
Plain-language decode: Ratio decides where the new tones land. Depth decides how much of each one you hear. Start with a 2:1 modulator-to-carrier ratio and move depth slowly, then change the ratio at a fixed depth. Those are two different sound-design moves.
Try the control below. Keep an eye on the central line as the first upper pair grows. A single control moves several lines at different rates. There are ranges where pushing the control further reduces a particular partial before it grows again.
[Interactive component: Fm Phase Lab. This section is rendered visually on the full page.]
For a numerical example I used a 620 Hz carrier and a 137 Hz modulator. The first upper components land at 757, 894, and 1,031 Hz. Those choices keep the lower orders easy to separate. The entries are amplitudes relative to the unmodulated carrier. They are signed coefficients, so a magnitude spectrum will display their absolute values.
| Peak phase deviation | Carrier at 620 Hz | Upper 1 at 757 Hz | Upper 2 at 894 Hz | Upper 3 at 1,031 Hz |
|---|---|---|---|---|
| 0.5 rad | 0.9385 | 0.2423 | 0.0306 | 0.0026 |
| 2 rad | 0.2239 | 0.5767 | 0.3528 | 0.1289 |
| 4 rad | −0.3971 | −0.0660 | 0.3641 | 0.4302 |
Listen for the 757 Hz line in the middle example. It’s more than twice the amplitude of the central component. When the depth doubles in the last example, that first upper line nearly drops away and the third upper line gets stronger. An instruction like “increase brightness” gives you little reason to expect that particular exchange. This is why I like watching one partial while moving a knob slowly.
<audio controls preload="none" aria-label="Analytical comparison of a 620 Hz carrier at three modulation depths"><source src="/audio/blog/fm-modulation-index.mp3" type="audio/mpeg" /></audio>
Analytical listening fixture. The clips play 0.5, 2, then 4 radians. Each lasts 1.6 seconds with 20 ms fades, synthesized at 48 kHz with carrier amplitude 0.32. Only the phase depth changes between clips. The YVE recordings appear later in the article. Download the comparison
Here is a trap for anyone writing an automated spectrum test. Put the two oscillators at the same frequency and set β to approximately 2.4048, the first zero of <i>J</i><sub>0</sub>. Should a spectrum analyzer show a hole at the note frequency? For the zero-phase sine case, two orders contribute to that bin. Order zero sits at +<i>f</i><sub>c</sub>. Order −2 sits at −<i>f</i><sub>c</sub>, and a sine at a negative frequency equals the negative of the corresponding positive-frequency sine. At 1:1, the net coefficient at the played frequency is therefore
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
A perfectly good oscillator will leave a quite substantial line in the supposedly empty bin. This reflection around zero happens even in continuous time. Raising the sample rate won’t fix the test. I’d change the frequency pair to separate the low orders, or sum the coincident components with their phases before making the assertion. For a changing attack I’d also choose a window over which the index is nearly steady. A rapidly moving envelope spreads the energy around the stationary lines.
A carrier level and a modulator level do different jobs
Return to the eight steps on the DX7. Measurements documented by the Music Synthesizer for Android project put each upper-range operator output step at approximately 0.7526 dB. In that range the linear gain ratio for a move from level 99 to level 91 is
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
For comparison, scaling the panel integer by 99 gives 91/99, about 0.919. That’s less than one decibel down. If the destination is a carrier’s phase input and the original patch delivered a four-radian peak, the measured level law puts it near the two-radian row in the table. The naive importer leaves it near 3.68 radians. In the ideal 620/137 Hz fixture, halving the index from two to one actually raises the 620 Hz component by about 10.7 dB while the second upper sideband falls about 9.7 dB. A master-volume adjustment moves both together. It cannot put them back. Below output level 20 the measured mapping uses a different table. Envelope target levels also have their own resolution. I’d attach the unit and the valid range to any gain conversion I intended to reuse. DX7 envelope and level measurements
A single operator can be thought of as producing a dimensionless sample. The destination gives it a job. Send it to the output bus and the connection gain determines an audio amplitude. Send it into another oscillator and the connection gain converts it into phase displacement. This helps explain why the routing diagram on the front of an instrument can be a better starting point than the list of knobs. Before touching an envelope, I want to know which waveform it scales and where that waveform goes.
[Interactive component: Fm Signal Diagrams. This section is rendered visually on the full page.]
Plain-language decode: For a patch that bites and then settles, try a short decay on the modulator and a longer decay on the carrier. To make the whole note die away sooner, shorten the carrier instead.
Consider a three-operator voice. Put two modulators directly into a carrier and their phase offsets add. A simplified phase argument is θ<sub>c</sub> + β₁ sin θ₁ + β₂ sin θ₂. On expansion, the resulting lines fall at <i>f</i><sub>c</sub> + <i>n f</i>₁ + <i>m f</i>₂, with products of Bessel coefficients. Now put the second modulator into the first and let only the first reach the carrier. The carrier reads θ<sub>c</sub> + β₁ sin(θ₁ + β₂ sin θ₂). If I turn β₁ down to zero, that entire upstream branch disappears. In the parallel arrangement the second modulator can still be heard through its own connection. The graph determines whether a velocity-sensitive envelope fades one color or takes a whole family of partials with it.
For a bass patch that needs bite on a hard strike, I can leave one low carrier steady while the modulator envelope sweeps through this nonlinear region. A performer can then add articulation with velocity while the root keeps doing its job. For an electric piano I might want the fundamental to ring below two upper components with different decay times. Two carriers let me set those lifetimes independently. A long serial stack can make a remarkable attack, but if its only carrier fades quickly, all the ingenious modulation upstream vanishes with it. That is a practical reason to spend an operator on a seemingly plain sine.
The other number people misread is the envelope rate. On the DX7 the patch supplies four rates and four target levels per operator. A rate describes how the generator travels toward a target. The time a segment takes depends on the distance it travels, the direction, and the actual update law. The MSFA measurements describe approximately linear motion in the log-level domain during decay and a different, level-dependent attack. Two equal panel rate numbers can take different amounts of time to traverse different intervals. A library of fixed millisecond values indexed only by rate loses information that was present in the voice. Yamaha’s manual illustrates the four successive targets and the release behavior. DX7 owner’s manual
In musical terms, that can move the moment when the ear settles on a pitch. Give the modulator a fast attack and a short decay over a slower carrier and the brightest part may happen before the note reaches its full level. Lengthen only the carrier attack and some of the strike can disappear under it. Peak brightness and peak loudness measured separately could both be correct. Their relative timing is what makes that version feel sluggish.
The DX7 spends silicon on decisions a patch file cannot describe
The original DX7 has six sine operators per voice, 32 algorithms, and 16-note polyphony. Yamaha’s YM21290 EGS supplies frequency and envelope information to the YM21280 OPS, which evaluates the operators. Six operators across 16 voices give it 96 operator slots to service on every full pass. The latter schedules operator and voice work across a pipeline. Ken Shirriff’s reconstruction describes the operators running in descending order, interleaved across the 16 voices, with a complete update at approximately 49.1 kHz. That’s a useful detail to know before assuming a 48 kHz plugin with one pass per host sample has reproduced the timing of the machine. Yamaha’s DX7 service manual · OPS die and chip identification · OPS scheduling and algorithms
[Interactive component: Fm Signal Diagrams. This section is rendered visually on the full page.]
A modern reference implementation might evaluate a floating-point sine and multiply by gain. In the OPS, symmetry lets part of a sine period describe the rest. The lookup works with the logarithm of the signal magnitude. Attenuation from the envelope can be added in that representation before the magnitude is reconstructed and the sign restored. In effect, multiplying two positive magnitudes becomes an addition of their logarithms. Shirriff’s die analysis finds a 12-bit phase input to this lookup. Quarter-wave symmetry leaves 10 address bits within a quadrant, and a base value plus stored differences reconstruct a 14-bit log magnitude. These widths describe the waveform lookup. They say nothing by themselves about the bit depth or dynamic range at the output jack. There is real ingenuity here. Merely quantizing the output of a high-precision software sine approximates a different operation. Shirriff’s log-sine ROM reconstruction
One particularly revealing bit of the algorithm ROM deals with carrier gain. Algorithm 16 has a single output carrier. Algorithm 1 has two, operators 1 and 3. Algorithm 32 sends all six operators to the output. The OPS applies compensation according to the carrier count written into the algorithm. The nominal factors for those three cases are one, one half, and one sixth. Operators used to modulate other operators retain their modulation level. The count is a property of the programmed algorithm, so silencing an operator doesn’t rewrite it.
That gives us an unusually clean hypothesis to take to a bench. Choose operator 1 as a plain sine. Set the other five outputs to zero, turn off feedback, and use identical note, velocity, level, envelope, and output settings. Compare algorithm 16 with algorithm 32 without normalizing either capture. The latter still has six designated carriers even though only one is audible. The nominal level change predicted by compensation alone is
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
I have not made that hardware measurement. It is a prediction from the recovered ROM behavior, and the logarithmic scaling has finite precision. It also tells me how to organize an audition. I’d keep the raw captures to test the gain prediction and make separately level-matched copies for any judgment about color. If I normalized everything on export, I could spend an afternoon investigating a characteristic I had removed before listening.
At the physical output, Yamaha’s service documentation specifies a BA9221 converter, switched reference scaling, sample-and-hold circuitry, and analog filtering. The reference circuit changes the analog scale paired with the digital word, which is one more reason a converter’s nominal word width alone is a poor description of a complete instrument. Those stages make another legitimate target for measurement. I’d feed them a simple isolated tone at several levels, then inspect low-level residuals and the frequency response. A rich feedback patch makes a poor first probe for a converter. By the time it arrives there, envelope timing, feedback scaling, lookup precision, carrier compensation, and the note-on phase have all had a chance to change it. The phrase “the DAC gives it bite” asks one component to explain an awful lot of signal history.
A TX816 changes what you can layer. A TX81Z changes the operator itself.
These are the instruments I find useful to put side by side. The original DX7 and the TX816 are closely related at the chip level. The DX100 and the TX81Z make a better comparison for the effects of changing the operator. The YM3812 offers a third perspective because its application manual speaks in register values and circuit connections. A designer reading all three kinds of documentation gets a healthy respect for what the word level can conceal.
| Instrument | Tone generator and output | What changes at the keyboard or bench |
|---|---|---|
| Original DX7 | YM21290 EGS supplies frequency and envelope data to the YM21280 OPS. Its output reaches a BA9221 DAC with reference scaling. Six operators per voice, 16 notes. | Identical operator levels can yield different mix levels. Check the algorithm’s carrier compensation and the feedback route. |
| TX816 | Eight TF1 modules, each with the DX7 EGS/OPS combination, 16 voices, and an individual balanced output. | Summing modules introduces phase, tuning, output gain, and mixer headroom as variables. |
| DX100 | YM2164 OPP, four sine operators per voice, eight algorithms, eight notes. The output uses a YM3014 DAC. | Sixty-four ratio choices and a different envelope model shape the translation from a six-operator patch. |
| TX81Z | YM2414 OPZ tone generator followed by a YM3012 DAC. Four operators, eight algorithms, eight waveform choices per operator. | Changing a carrier waveform has a different spectral effect from changing a modulator waveform. |
| OPLII | YM3812 schedules 18 operator slots through a shared computation cell, giving nine two-operator channels in melodic mode. Yamaha’s reference circuit feeds a YM3014 DAC. | Total level is attenuation. Moving from 0 to 8 reduces the operator’s output by 6 dB. |
Chip and routing comparison. The converter column locates the digital-to-analog boundary. The audible result also depends on the complete instrument, its patch, and its output circuitry. TX816 service description · DX27/DX100 service documentation · TX81Z board inventory · OPLII application manual
[Interactive component: Fm Hardware Gallery. This section is rendered visually on the full page.]
Start with the rack. The TX816’s eight TF1s can each play their own voice. If all eight are assigned to the same incoming notes, a single keystroke can trigger eight complete six-operator voices. For each layered note, each module supplies its own tuning, carrier mix, and complete bank of operator envelopes. There is no route in the stock rack that sends operator 6 from the first module into operator 1 on the eighth. Eight complete instruments mixed at their outputs do something quite different from one large phase-modulation graph.
Suppose two modules each play a clean 440 Hz carrier into equally weighted mixer channels. If phase and onset align, their amplitudes add and the peak is 6.02 dB above one module. Set one module four cents sharp and it runs at approximately 441.02 Hz. Their relative phase now cycles about once per second and the summed tone beats. A fixed onset offset between identical steady oscillators gives a fixed phase difference. The peak can change, but that offset by itself won’t make a repeating beat. With eight hypothetical identical, phase-aligned copies, the coherent sum could be 18.06 dB above one. That is a headroom calculation, not a promise about the level or phase at a particular rack’s outputs.
If someone tells me the rack sounds bigger than the keyboard, the first comparison I want is one TF1 versus one DX7 at matched levels, followed by the change from one TF1 to the layer they like. The second comparison might contain exactly what they love about the instrument. Separating those two listening questions makes an emulation target much more useful than a recording labeled “TX sound.”
The DX100 puts different constraints on the programmer. Its YM2164 is the OPP, a distinct IC from the YM2151 OPM familiar from arcade hardware. Even the synthesis chip alone will not identify the output circuit. Yamaha’s DX21 service list pairs the same YM2164 with a YM3012B DAC, while the DX100 uses the YM3014. That makes the two keyboards an interesting opportunity to separate shared operator architecture from differences elsewhere in a complete instrument. DX21 service parts list
On the DX100, the oscillator tuning is one such constraint. Its ratio control selects from 64 values, including 0.50, 0.71, 1.00, and 1.41. Two operators moving together at fixed ratios will keep their sideband spacing in proportion to the played pitch. Choose the approximate 1.41 ratio and the prominent components can sit far from low harmonics of the note. The effect can read as a metallic strike when the index decays quickly, or as pitches competing with one another when it stays high. The DX100 also gives you an attack rate, a first decay rate and level, a second decay rate, and a release rate. Setting that second decay rate to zero holds the first decay level while the key remains down. A voice designer who counts the number of envelope segments but misses the hold condition will hear the difference as soon as they play a long chord. Yamaha’s DX100 ratio and envelope descriptions
Yamaha documented a lovely small compatibility problem when the TX81Z arrived. Page 48 of its manual says the older four-operator instruments allow release rate zero. The TX81Z’s minimum is one, so it converts an incoming zero to one. The manual also points out differences in envelope resolution and the absence of its EG Shift parameter on the older machines. Here the two engines come from the same manufacturer, use four operators, and deliberately exchange voice data. Yamaha still had to specify which musical instructions survive the exchange. That is a better precedent for my own importer than any claim about universal patch compatibility. TX81Z voice interchange notes
The TX81Z’s seven additional operator waveforms change the mathematics in an interesting way. Write a periodic carrier as a Fourier series of harmonics with amplitudes <i>a</i><sub>k</sub> and phases φ<sub>k</sub>. Substitute the modulated phase θ<sub>c</sub> + β sin θ<sub>m</sub> wherever the original waveform used θ. For harmonic <i>k</i>, that yields
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
The third harmonic gets an index of 3β. The fifth gets 5β. Each harmonic produces its own sideband family at <i>k f</i><sub>c</sub> + <i>n f</i><sub>m</sub> with a coefficient proportional to <i>J</i><sub>n</sub>(<i>k</i>β). In an illustrative carrier with a third harmonic one third as large as its fundamental, the first upper sideband of that harmonic is proportional to <i>J</i>₁(3β)/3. Turning up the depth can push that family past its own peak while the sidebands around the fundamental are still growing. A single modulator leans on different parts of a complex carrier by different amounts.
Move that same complex waveform into the modulator position and each of its harmonics contributes an offset to one carrier’s phase. Equalizing two candidate modulator waveforms for RMS gives them equal mean-square level. It leaves their phase trajectories, slopes, and relative harmonic phases free to differ. In this role the most useful waveform plot may be the one you’d ordinarily discard after measuring the modulator’s spectrum. Yamaha includes harmonic charts for the actual TX81Z shapes and permits any of the eight shapes in either role. TX81Z operator waveforms and harmonic charts
The waveform example below uses an invented shape that can be built from just two sines. Take one cycle of a sine, subtract a third harmonic at one third of its amplitude, then scale the whole result by 3/4 to bring the peak back to one.
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
When that shape is the carrier, the phase displacement reaches both harmonics. The extra family starts around three times the carrier frequency and gets three times the phase swing in its own sine argument. When that shape is the modulator, the output lookup is a sine again. Now it receives a phase signal whose third harmonic is at three times the modulator frequency. The same drawn shape is doing different work. The clips can differ in perceived loudness even with the same peak settings.
[Interactive component: Fm Waveform Guide. This section is rendered visually on the full page.]
Plain-language decode: Changing a carrier’s waveform changes the raw tone before you add any modulation. Changing a modulator’s waveform changes how it pushes and pulls the carrier. If an imported patch has the right pitch but the wrong edge, check which operator got the new shape.
The YM3812 makes a final point about translating controls. In its six-bit total-level field, larger numbers mean greater attenuation. A value of 8 gives 6 dB more attenuation than a value of zero. On the high part of the DX7’s panel scale, moving down by eight gives about the same attenuation change. On either architecture the result depends on whether the affected slot drives the output or another operator. Yamaha’s OPLII application circuit makes the boundary exceptionally clear: the YM3812 supplies serial audio and timing to an external YM3014, followed by buffer, low-pass, and preamplifier stages. The register controls the operator upstream. A different board can use the same chip and still require its own output measurement. YM3812 reference circuit, Figure 4-2
Feedback remembers which clock made the last sample
Feedback gives a single operator a useful trick. Save an earlier output, multiply it by a gain, and add it to the phase angle used for the next evaluation. Even with a sine as its underlying waveform, a feedback operator can build a dense spectrum. Each new output depends on the shapes the previous iterations have already generated. A simple single-delay reference model is
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
Here <i>a</i>[<i>n</i>] is the operator envelope times its output gain, and <i>g</i> converts last sample’s output into radians of phase offset. Start the history at zero. The first sample can only see the unmodulated oscillator and its envelope. The second can see a contribution from the first. By the third, the feedback signal already contains feedback. Phase reset, envelope attack, and where the feedback gain is applied can change the first few milliseconds even on two engines that settle into a similar sustained buzz.
The DX7 OPS research describes a feedback path that combines two prior operator results and scales the return in discrete steps. A two-sample average is particularly interesting because high frequencies can partly cancel between neighboring values. In an idealized, equally weighted delayed pair the return is
[Interactive component: Fm Equation. This section is rendered visually on the full page.]
The filter expression describes the linear averaging operation inside the return. The surrounding oscillator is nonlinear and does not inherit that simple frequency response. Still, it explains one reason a software designer can retune a one-sample feedback gain to match one note and find the settings diverge higher up the keyboard. The two-sample version has a frequency-dependent loss as well as a different delay. Some DX7 algorithms also route feedback around more than one operator. Following the drawn return to its source matters just as much as reading the feedback number printed beside it. Recovered DX7 feedback circuitry
Changing the sample rate poses a second problem. At 48 kHz, one sample is about 20.8 microseconds. An engine evaluating the loop twice per host sample cuts that delay to about 10.4 microseconds if its history still advances every operator update. Calling the high-rate version a quality improvement doesn’t make it an identical feedback system. When I compare implementations, I record the actual evaluation rate along with the nominal host rate. That specification becomes particularly important when an engine changes its oversampling with the sound being played.
[Interactive component: Fm Signal Diagrams. This section is rendered visually on the full page.]
Plain-language decode: Feedback keeps some of an operator’s last output and feeds it back into a later sample calculation. Try the same patch low and high on the keyboard. If a thin whistle moves downward as you play upward, investigate aliasing before changing the patch’s pitch settings.
The benefit of oversampling is easiest to see on a high note. At a 48 kHz sample rate, a component at 29 kHz folds to 19 kHz. A sideband sliding upward from 29 to 31 kHz will appear to slide downward from 19 to 17 kHz after sampling. If that tone becomes audible as the musician plays upward, the ear has good reason to hear something coming loose from the note. At 96 kHz internally, a 29 kHz component is still representable. A suitable low-pass before decimating can remove it on the way back to 48 kHz. A low-pass applied only after the original fold would be too late to distinguish it from genuine 19 kHz content.
A higher internal rate buys finite headroom. Deep PM has infinitely many mathematical sidebands, and a feedback graph or a non-sine carrier can put substantial energy into high orders. Averaging oversamples provides some attenuation on decimation, with limited stopband rejection. A depth guard can keep energy near the audible range under better control at the price of changing the voice. For a new instrument that may be a good compromise. For a historical comparison the original sample clock, amount of foldback, and analog filtering are part of the target. I want to be able to tell a deliberate voicing choice from an accidental artifact of the renderer. Kasper Nielsen on antialiasing audio-rate FM
What I can make YVE match today
YVE can read a DX7 voice and set up all 32 routing choices, including which operators reach the output. It distinguishes ratio and fixed-frequency operators and maps the source level curve into linear gain. The translator also considers segment distance and direction when estimating envelope times. On the rendering side there is a DX7-oriented two-history feedback path. These are real pieces of a working instrument. Each answers a more precise question than “does it support six-operator FM?”
I can also point to a place where the wiring survives and the gain behavior does not. YVE’s current imported-graph path applies a common output trim across those graphs. The DX7 ROM assigns carrier compensation by algorithm. Take my operator-1 comparison between algorithms 16 and 32. YVE can reconstruct both graphs and still lack the circuit behavior that predicts the 15.56 dB difference. The implementation suggested it. I then ran the test.
I rendered two original single-voice patches through a freshly compiled YVE importer and DSP. Only operator 1 was audible, at a 1:1 frequency ratio. Both patches had oscillator sync on, feedback off, identical four-stage rate and level settings, and no key or velocity scaling. The only change within each comparison was the algorithm number. I played MIDI note 69 at normalized velocity 0.8 and captured one second at 48 kHz. For the gain measurement I used the left-channel RMS from 0.2 to 0.8 seconds, well clear of the onset.
| Original test patch in YVE | Operator level 99, RMS | Operator level 91, RMS | Change from 99 to 91 |
|---|---|---|---|
| Algorithm 16, only OP1 audible | 0.010152684 | 0.005076342 | −6.02 dB |
| Algorithm 32, only OP1 audible | 0.010152684 | 0.005076342 | −6.02 dB |
| Algorithm 32 relative to 16 | 0.00 dB | 0.00 dB |
Measured on YVE’s imported voices. RMS is in normalized digital sample units. At each operator level all 48,000 left-channel samples matched between algorithms. The nominal −15.56 dB earlier in the article comes from the DX7 ROM analysis. A physical DX7 capture would test that prediction at the output jack.
That’s the result I wanted to show, including the miss. The eight-step gain law survives translation in this fixture. The per-algorithm compensation does not. If I had auditioned only algorithm 16 and trimmed a hardware recording to match, I could easily have signed off on the wrong thing. The next experiment would use the same patches on a hardware DX7, record raw output with a calibrated gain path, and repeat below clipping at more than one level. Only then would I start adjusting the importer to match the recorded difference.
Another boundary shows up with keyboard scaling. An imported DX7 envelope is represented by an approximated contour in YVE. A neutral-key duration can be very close while a short note in another register still takes a different route through the envelope stages. I’d render a long, a short, and an interrupted note at low, middle, and high pitches, then watch where each operator is when note-off arrives. Matching the end of a long decay on middle C gives me exactly one point in that experiment.
On the TX81Z side the current importer takes the four-operator routing and maps its operators into YVE’s graph. Several original waveform IDs converge on a shared fold treatment. That loses an important distinction. Suppose I import two voices that differ only in which non-sine source shape they place on a modulator. The original unit has two different contours to feed into phase. If those selections map to the same YVE treatment, no amount of attention to the carrier ratio can recover their difference. A translator should say which information it preserved well enough to audition and where two distinct instructions became the same instruction.
There is a test for that, too. Record each source waveform first as a lone carrier, then use it as the sole modulator of a sine carrier at several controlled depths. The first pass catches a wrong shape or fundamental period. The second catches a wrong phase-depth conversion and differences in waveform shape that become prominent only through modulation. Fix the note-on phase or deliberately vary and record it. For the hardware comparison, repeat the measurements on a physical instrument and document the capture chain. I can show what YVE does today without assigning it a fidelity score against a machine I haven’t measured here.
The SysEx file loaded. The note still ended wrong.
The earlier import work started with a more ambitious set of tests. I rendered imported DX7 voices against Dexed and compared overall RMS, spectral centroid, and the level of the attack and release relative to the held note. The 256-entry run used one C4 at roughly 85% velocity, with note-off at 0.90 s in a 1.6-second capture. The reference harness translated the operator data into Dexed’s controls. It did not set the global pitch envelope. That made it possible to distinguish a level error from a difference in brightness, or a difference in the way the note stops. Dexed was an independent software reference for the DX7 comparison. A hardware capture would answer a different question.
A 256-voice exploratory pass reported a signed median RMS difference of only +0.3 dB. That number looked reassuring until I looked at the two other columns. YVE’s centroid was more than half an octave lower on 130 of the 256 entries in that run, while 10 were more than half an octave higher. The median absolute difference in the release-to-body level was 14.9 dB. These were renders under one test gesture, with factory voice entries that can repeat across banks. They were enough to tell me which parts of a note I needed to investigate.
| What we measured | Early 256-entry software comparison | What I took from it |
|---|---|---|
| Overall level | +0.3 dB signed median, 1.6 dB median absolute difference | Preserve raw gain. A signed summary can hide errors in individual voices. |
| Spectral centroid | 0.56 octave median absolute difference | Look at the trajectories of individual partials. The same centroid can come from different spectra. |
| Release relative to note body | 14.9 dB median absolute difference | Trigger an early note-off. The part after the key comes up needs its own test window. |
Historical comparison against Dexed, not an output jack on a DX7. These metrics summarize one set of offline renders and are not scores from listeners.
The later 32-voice bench runs were a better place to hear the exceptions. In one run, overall level was within 6 dB on 30 of 32 patches. A bass patch still differed by about 42 dB in the release-to-body measurement. That was the result I wanted the median to leave visible. Even the comparison setup needed controls. A TX81Z experiment produced the same YVE level and centroid for several different voice labels. I left that result out of the fidelity assessment. Before comparing either side I need proof that switching the patch changes the signal on that side.
When I listened through the paired renders, I heard a harder attack on several YVE patches, even on pairs I otherwise found similar. A single change to phase depth could lower the median brightness error while pulling an already dark patch farther from its reference. An attempt to soften the attack also changed voices whose onset was supposed to develop slowly, so I backed it out. That sent me back to measuring short attack windows separately, and to comparing outlines over time instead of picking one global tone correction.
The work continued in an experimental YVE branch. It tries a quantized log-sine and exponential path, revisions to the phase-depth and feedback scaling, log-domain envelope motion, and keyboard level curves that change at the source breakpoint. On the TX81Z side, it carries distinct waveform choices further into the render path. That is different work from the regular YVE checkout I used for the isolated-carrier measurement above. The useful question for the experimental renderer is whether each change improves the specific part of the note it was intended to fix, across keys and velocities. I’d still need properly matched hardware captures to make a claim about reproducing the instrument. Dexed project
Hear the difference in a phrase
When I design an FM electric piano, I want its upper components to tell me how hard the player struck. They can fade quite quickly if the carrier leaves something worth holding. On a bass I listen for a different negotiation. At the start of a note the upper partials can make it speak on a small speaker. Once another note enters, they need to get out of its way. A bell gives me more freedom to let upper components hang against the pitch, but the release needs to leave room for the next strike. Those are three different instructions for distributing energy over time, even before choosing waveforms.
I made three original patches in YVE and played the same phrase through each. One FM layer is active in each patch. The phrase uses a low C, soft and hard middle Cs, a higher C, and a C-major chord. The offline YVE renderer exported stereo at 48 kHz. The clips have no effects or external EQ or compression. I applied one constant playback gain per clip against the same full-clip RMS target. That makes the audition easier without leveling the strikes within a clip. It does not guarantee equal perceived loudness.
Tine. Two parallel carrier–modulator pairs. The modulators run at twice the first carrier’s frequency and at the second carrier’s frequency. The bright part of the envelope decays sooner than the body. Listen to the hard middle C and then to its tail. Around 785 Hz, the third harmonic of C4 is prominent in the hard strike. The body keeps a clear pitch as the upper partials recede.
<audio controls preload="none" aria-label="YVE tine FM patch, shared five-second phrase"><source src="/audio/blog/fm-yve-tine.mp3" type="audio/mpeg" /></audio>
Glass. One pair at a modulator-to-carrier ratio of 2.73:1. Under the hard C4, the render shows lines around 453 and 976 Hz, close to the reflected lower and upper first-order sidebands predicted for that pair. Listen for the bright ring that persists after the strike. On the chord, the lines from the overlapping notes make the texture considerably busier.
<audio controls preload="none" aria-label="YVE glass FM patch, shared five-second phrase"><source src="/audio/blog/fm-yve-glass.mp3" type="audio/mpeg" /></audio>
Bass. Three operators in series, at 0.5, 1 and 2 times the MIDI pitch from carrier to outer modulator, with mild self-feedback on the outermost operator. Under C4 the fundamental sits an octave down, near 131 Hz. Two prominent components lie near 393 and 654 Hz, close to the third and fifth harmonics of that fundamental in this particular render. Listen for how the lower pitch stays legible when the chord arrives. That’s a property of this voice and register.
<audio controls preload="none" aria-label="YVE bass FM patch, shared five-second phrase"><source src="/audio/blog/fm-yve-bass.mp3" type="audio/mpeg" /></audio>
Measured from the original YVE WAV exports before MP3 encoding. All three panels use an averaged mono channel pair, a 4,096-sample Hann window, a 512-sample hop, a logarithmic frequency axis, and the same display range. Dashed markers show the submitted note-on times. A short-window inspection of the hard C4 supplies the frequencies in the listening notes. These are three whole voices with several controls changed between them. The analytical lab above isolates depth on its own.
Try a second pass through the recordings at a lower playback level. On the first pass it’s easy to follow the brightest part of the attack. On the second, pick out the part of the note you could hum after the attack has gone. A long spectral tail can give a note a lovely sense of size in isolation and crowd the next note in a phrase. I care about the moment one musical advantage becomes the other musical problem. A static preset name, a peak meter, and a spectrum averaged across the whole file will all let that moment slip by.
Listen to the note change shape
If I were given an unfamiliar FM engine and one evening to understand it, I’d save two copies of every test capture. One would retain native gain. The other I’d match for listening level and use only for audition. The first thing I’d record is an isolated sine carrier with velocity, key scaling, feedback, effects, and modulation held fixed or disabled as appropriate. A wrong frequency or a wrong six-decibel gain step is wonderfully inexpensive to diagnose at this point. It gets much more expensive once the same error has changed the spectrum of two operators downstream.
Next I’d connect one modulator and move its gain while tracking a few individual partials. The 620/137 Hz example gives a clear pattern when the oscillator permits fixed frequencies. For a ratio-only instrument I’d use ratios it actually supports and compute the overlapping lines. Then I’d sweep feedback on a single note, repeat higher up the keyboard, and look for components travelling down in pitch. I’d use a short time window to locate the attack and a longer steady window to distinguish nearby bass components. A 20 ms Fourier window spaces its bins 50 Hz apart. A 200 ms window spaces them 5 Hz apart and conceals far more of the onset. Choosing the window is part of asking the question.
The last test requires a player. Play the same small phrase softly, then firmly. Leave a chord ringing and release it before its brightest operators have finished their decay. Try the bass line in two octaves. Put the full patch back through the effects that belong with it. A technically faithful operator can sit in a voice that feels lifeless, and an approximation can earn its place because of what it lets the hands do. I want to know which result I have. My favorite outcome is a note that tells me, without looking at the panel, how hard I played it and how much room I have left to push.
For another example of turning a listening complaint into a repeatable test, see A Piano Can Be in Tune and Still Sound Wrong.
