News for hackers. Stuff that matters.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by kens on Sunday November 28, 2021 @12:40PM (#29370936)
Author here if anyone has questions about this classic synthesizer's internals.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by raphlinus on Sunday November 28, 2021 @02:13PM (#29371877)
The specific thing I've found least documented, yet most important for the distinctive percussive attacks of the DX7, is a random variation of the pitch envelope for the first few milliseconds of the note. That's almost short enough it could be done in the firmware, but I believe it might be in the hardware. It's not present in the msfa source, but might have been recovered by later Dexed authors (I haven't carefully looked at their code).

If you get to the envelope hardware, you'll find it's just as clever as the exponential and sine generators. There's some info at [1], but it doesn't capture every single thing I found - there are cases where there is a slight amount of additional noise in the amplitude, I'm not sure whether intentional to give more character or an unintentional artifact. That's also missing from the msfa source.

[1]: https://github.com/google/music-synthesizer-for-android/blob...

ETA: Also see https://levien.com/dx7-envelope.html for a somewhat interactive JavaScript implementation of the envelope algorithm. This accurately emulates the envelope shape and quantization of the DX7 (ie it uses the same reduced number of bits to drive its state machine), but I do not claim it is bit-perfect.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by analog31 on Sunday November 28, 2021 @02:23PM (#29371992)
Interesting, hammond organs had a similar effect due to bad key contacts and leaky capacitors. Simulated by Korg of course.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by mb_72 on Monday November 29, 2021 @02:26AM (#29377303)
Actually, the key-click occurred not for those reasons explicitly, but "...was caused by the audio signal being routed directly through the key contacts. As a key was depressed, the nine contacts under the key closed against their respective busbars at slightly different times and bounced as they closed. The sine waves from the constantly running generators would be connected at random points in their oscillation."

(from https://www.dairiki.org/HammondWiki/KeyClick)

This happened even in brand-new organs.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by djmips on Sunday November 28, 2021 @11:39PM (#29376440)
Do you have more information on this (Hammond) effect and how to simulate?
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by chuchurocka on Monday November 29, 2021 @09:36AM (#29380305)
https://www.dairiki.org/HammondWiki/KeyClick is a pretty good starting point
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by kens on Sunday November 28, 2021 @02:19PM (#29371944)
I haven't looked at the envelope chip, but I hope to examine it at some point.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by odiroot on Sunday November 28, 2021 @02:33PM (#29372115)
I've heard Yamaha needed to put a lot of R&D work into producing these digital FM chips.

I wonder if they (or any other manufacturer) ever attempted the same with purely analogue chips. I'm aware that FM has very narrow sweet spots and probably the analogue oscillator drift would make this idea totally impractical.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by boomlinde on Sunday November 28, 2021 @08:13PM (#29375176)
Analog FM is not so unusual, but it's usually "real" FM, e.g. a modulation of pitch or linear frequency, and it's not so easy to tame into consistent musical pitches.

"Yamaha style" FM is however more of a kind of phase modulation. The operators are sine tables driven by phase counters, and the outputs of the modulators are scaled and summed with the phase counter of the carrier before the sum goes into the carrier wavetable. So you modulate the phase irrespective of frequency, e.g.

  modulator(phase) = sin(phase * modulator_multiplier) * modulator_amplitude
  carrier(phase) = sin(phase * carrier_multiplier + modulator) * carrier_amplitude
I suppose this could be replicated in the analog domain. A phase counter could simply be a ramping sawtooth waveform. Summing modulator outputs would be as simple as mixing. The hardest part I think would be to replicate the wavetable. You'd need a waveshaper that basically does f(x) = sin(x). There is an oscillator on the market that I think does everything except the waveshaping in the analog domain: https://wmdevices.com/products/phase-displacement-oscillator...
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ssalazar on Sunday November 28, 2021 @04:38PM (#29373298)
I do wonder if DCOs (much less susceptible to drift) would be more amenable to analog FM, though they were not common for musical instruments during the DX7's early R&D phase.

That said, it seems like music manufacturers were searching for a musically useful, cost-effective digital synthesizer around this time. Early digital synths like the Synclavier and Fairlight CMI were prodigiously expensive, while analog synths in the DX7's price range were saddled with few/no polyphonic voices and/or limited single oscillator designs. The DX7, with a varied tonal palette and 16 voices, must have seemed luxurious at the time.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by TheOtherHobbes on Sunday November 28, 2021 @06:26PM (#29374354)
You can't do analog FM with DCOs because they're numerically controlled. You'd have to modulate the frequency of the clock, which displaces the problem without really solving it, and also wouldn't work polyphonically.

This Synclavier and Fairlight CMI were hybrid designs with a digitally controlled clock per voice producing a variable rate sample clock driving memory and a DAC. The hardware was more expensive but the digital part was much simpler, because you basically just clocked the sample data straight into the DAC without having to do any interpolation or resampling.

The DX7 was the first successful fixed rate polyphonic DSP system. With some reworking, the FM subsystem could have been replaced with sample RAM. But RAM was still ridiculously expensive, so FM was a workable solution for expressive acoustic-like sounds that weren't sampled.

It absolutely was a game changer. I remember playing one for the first time and it wasn't just the novelty of the FM sounds or the 16 - 16! - voices. It also looked great, was easy to carry, was less than a quarter of the price of some of the bigger polysynths, and had an extremely playable velocity-sensitive keyboard.

When you put all of those together it completely eclipsed the older designs as a playable keyboard instrument.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by jacquesm on Sunday November 28, 2021 @08:07PM (#29375138)
And, not unimportantly, was built like a tank so if you were a musician playing gigs taking it with you without damaging it was possible without being ridiculously careful with it, as you would have had to do with other synths of the day. DX7's are incredible in this respect, to the point where 4 decades later many of the original series 1's are still playing.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by devin on Sunday November 28, 2021 @08:42PM (#29375344)
Owner of a DX7 here. The only thing that needs servicing is the CMOS battery. Incredible.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by AutumnCurtain on Sunday November 28, 2021 @08:18PM (#29375201)
I have a DX7IID that has been in constant use since it was built in the late 80s and aside from a single battery replacement it's still in perfect condition. They are extremely durable.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ajxs on Sunday November 28, 2021 @07:39PM (#29374949)
I recently watched Trent Reznor's clip from the 'I dream of Wires' documentary, where he blames the DX7 for the decline in synthesiser culture. His hatred of the DX7 is pretty well known at this point. He complained that after its release the market for synthesisers shifted to accomodate consumers' want for 'bell', and 'electric piano' sounds, rather than those of his preferred analog synthesisers.

Would you agree that having an affordable synthesiser capable of making credible piano, and percussive sounds really opened the world of synthesisers up to a more diverse range of musicians? The DX7 first hit shelves before I was born, so I can't speak from my own experience here. I think Reznor's opinion on the matter sounds pretty ignorant.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by danbolt on Sunday November 28, 2021 @09:49PM (#29375789)
While I don’t know much about synthesizers, I love when someone makes an interesting or new tone with the YM2612. I can understand how synthesizer sounds became standardized post-DX7, but I’m surprised Trent doesn’t appreciate the experimentation and accessibly of playing with operators.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by jacquesm on Sunday November 28, 2021 @08:08PM (#29375145)
Gatekeeping at its finest. The DX7 democratized the synth, and for that reason alone it deserves some kind of award.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by klodolph on Sunday November 28, 2021 @05:32PM (#29373797)
The other factor is the sheer number of oscillators you'd need to get polyphony. The DX7 has 6 oscillators per voice. With 16 voices, that's 96 oscillators. Typical polyphonic analog synthesizers have two. You occasionally see three. Polyphony is often lower. 8 voices is fairly common, but you saw smaller units... Prophet 5 was 5-voice, and Oberheim's OB-X was available in 4, 6, or 8 voice versions.

The DX7 had somewhere between 9 and 12 times as many oscillators, depending on which of those lines you compare it to.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ajxs on Sunday November 28, 2021 @06:53PM (#29374587)
This isn't quite FM, though Jean-Claude Risset from Bell Laboratories did some contemporary experiments using additive synthesis with analog oscillators to achieve similar complex tones. I'm guessing that Yamaha probably experimented with all kinds of interesting prototypes before developing the VLSI FM chips that would go into their earliest FM synthesisers. It was a very large investment for them as a company, so they likely tried all kinds of things first with existing technology they had on hand.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by jacquesm on Sunday November 28, 2021 @08:09PM (#29375156)
True FM would have been cost prohibitive, phase modulation sounds just the same to all intents and purposes without the associated extra technical complexity (and with two massive custom ASICs this was already quite a complex machine).
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by turdnagel on Sunday November 28, 2021 @02:28PM (#29372056)
How good is Chipsynth OPS7’s emulation? https://www.plogue.com/products/chipsynth-ops7.html
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ajxs on Sunday November 28, 2021 @06:07PM (#29374167)
It's arguably the most 'authentic' emulation available. The amount of work they've put into the project of emulating the DX7's various nuances is enormous.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by yowlingcat on Sunday November 28, 2021 @01:10PM (#29371227)
Wow, very cool! The DX7 is one of my favorite synthesizers of all time, and its spiritual successor (in software form), FM8 is the one I've used the most for the past decade and a half in my compositions. Thank you for the incredible work breaking things down to the gate level -- if only this were around during the time I was taking my analog + digital electronics and computer organization class, I may have done a different final project!

You allude that you'll get to this in your next post of the series, but here's my question: what are the biggest differences in tone between the DX7 and current emulators such as FM8 and Dexed (both of which I believe can read DX7 patches)? And if present, where do they come from?

Thanks again for this write-up on one of my favorite machines.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by raphlinus on Sunday November 28, 2021 @02:08PM (#29371832)
I believe you will find two main sources of differences in tone between the various DX7 emulators. One is that there are fairly major differences between the original DX7 and the DX7 II (I used the latter for the original engine now adapted in Dexed). The other is the analog filter on output, approximately a 16kHz lowpass filter designed to reduce artifacts from the DAC (this is replaced by a more general Moog-style filter in the Android implementation but present as an accurate emulation in Dexed).

I think Dexed is quite accurate, but this work will allow the authors to take it to the next level. I suspect most people won't be able to hear the difference, however.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by Rodeoclash on Sunday November 28, 2021 @04:10PM (#29373072)
Nothing to add but I wanted to say thank you for making Dexed, we've used it in a few synthwave-esque songs.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by jacquesm on Sunday November 28, 2021 @04:39PM (#29373304)
This is what we were aiming for so I'm super happy to see confirmation of that :) Ken is a true wizard.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by kens on Sunday November 28, 2021 @01:29PM (#29371427)
Strangely, I haven't used any of the emulators or a DX7, so I can't comment on the differences in tone.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by fab1an on Sunday November 28, 2021 @02:04PM (#29371788)
Ha, that would have been my question as well...I've often come across the idea that digital synth emulations are necessarily "perfect" and indistinguishable from the original, but is that really true in your opinion, from a first principles standpoint? If not, which component would make the emulation most difficult?
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by kens on Sunday November 28, 2021 @02:17PM (#29371919)
If you look at it from that perspective, there are two factors. First, are the digital values identical? This is something my research can help with, using exactly the same exponential values (bit width, rounding, etc.) Second, a digital synth produces an analog output, so even if the digital values are perfect, the digital-to-analog conversion is going to produce its own distortion, filtering, etc, which can be pretty substantial.

Also see raphlinus's answer.

Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by pantulis on Sunday November 28, 2021 @01:22PM (#29371356)
I'd like to add to the list Korg's own FM implementation MOD-7
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ChuckMcM on Sunday November 28, 2021 @03:07PM (#29372419)
Another great write-up Ken, I'm wondering how the DX-11 differed (it was introduced after the DX7 and I've got a TX-11 (tone module)). The logarithm trick looks like it would fit easily in a small FPGA too!
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by S_A_P on Sunday November 28, 2021 @06:37PM (#29374458)
The DX-7 has 6 operators per voice and 16 note polyphony. The DX-11 is a 4 operator synth but with 8 voice poly, but is multitimbral, where the DX-7 is monotimbral. I think both have their advantages and most of the time 4 operators are enough. I’ve been looking for a Yamaha FS-1 which was the 1990s return to FM synthesis for Yamaha. It’s a rare-ish classic that I wish Yamaha would reissue.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by ajxs on Sunday November 28, 2021 @06:03PM (#29374134)
I haven't peered under the hood of the DX11, I do have a TX81Z though which is the rack-mounted equivalent. I'm pretty sure the fundamental design would be more-or-less identical. There definitely would have been many small improvements in the design between the DX7, and the DX11. Aside from the DX11 supporting different waveforms (actually truncated sine waves), people have said that the large difference in sound between the successive generations of Yamaha's FM synths comes from using a more abridged sine table. The shorter the table, the more thin, and metallic the sound.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by kbob on Monday November 29, 2021 @10:06AM (#29380671)
Are there resources for delta encoding transcendental functions in general? A fast, compact tanh() function would be great for making ladder filters in an FPGA.
Re:The Yamaha DX7 synthesizer's clever exponential circuit, ... by knob on Sunday November 28, 2021 @08:13PM (#29375173)
This was fascinating to read. Thank you for taking the time to post it up!!