Jump to content
Video Files on Forum ×

Triangular Wave Modulation = Phase Distortion? (Casio PCM engine patents)


Recommended Posts

Triangular wave modulation (US patent 5164530) is an FM-like Casio speciality that generates waveforms by modulating a monotonous carrier function with a sine (or other) wave and decoding the signal by mirroring it at a triangular wave. With the same count of operators (here only 2?) the produced waveform has higher harmonics than normal FM because at high modulation the wave peaks fold back into the opposite direction. Without modulation it outputs a sine wave and so can nicely blend between very dull and bright timbres. The carrier waveform stands in ROM and so can be switched between a variety of timbres. Like with FM, operators can be combined in various ways.

https://www.google.com/patents/US5164530

- Is TM part of the "phase distortion" engine or something else?

I own a CZ-230S and revived a CZ-101 (had severe water and fire damage), but I am no PD expert and never heard about TM synthesis before (even websearch doesn't help much). Is this used in phase distortion synths (e.g. the later VZ-series) or is this only used in the Casio "Pulse Code Modulation" engine of preset sound keyboards? Patent 5164530 suggests that Casio at least planned to make dedicated TM synthesizers with a PD/FM-like user interface.

I am reworking my technical keyboard descriptions for the WarrantyVoid site. So I websearched for 1980th keyboard patents and discovered a lot of interesting info.

https://www.google.com/patents/US5319151

This is what I wrote for my SA-series page:

The Casio "PCM" sound generation is apparently described quite detailedly in the US patent 5319151; it is based on a highly complex softsynth with many algorithms those can perform PCM, DPCM, FM and TM (triangular wave modulation) synthesis with sophisticated envelopes. This rather confusing 121 page tome of a patent text however is ambiguous, because it covers plenty of different implementations those e.g. can employ different counts of chip-internal sub-CPU cores for sound generation in higher grade instruments. The SA-series is surely the cheapest described "First" or "Second Embodiment" which has none. The algorithms for this version even describe how shorter tasks are stuffed with blank "dummy commands" to keep the timing in sync when different sounds would need different computing time. It works indeed very VCS2600-like - a marvel of freakish realtime programming made from one big loop (plus in "First Embodiment" one timer IRQ to compute waveforms and fill the DAC output FIFO; the "Second" does even this during dummy commands).

The interpolation method with that Casio smoothly blends between wavetable sections is described in the US patent 4442745 "Long duration aperiodic musical waveform generator" It plays sections of compacted samples back and forward to implement things like long decaying cymbals. US patent 4958552 explains algorithms how envelope data is extracted from natural instrument recordings and applied on loop samples as a approximated segmented functions. The original envelope may be removed from the stored loop sample by a waveform normalizer (US patent 4691608). Most important is that these chained envelopes can have basically any length and have (unlike e.g. ADSR) no fixed count of steps. Combined with crossfading between adjacent loop samples this permits very flexible sound definition.

The US patent 5319151 "Data processing apparatus outputting waveform data in a certain interval" mentions for the "First Embodiment" that the chip size is only 5x5mm, a program word has 28 bits (including lower potion of next address) and these further hardware specs:

"With regard to the circuit scale and the operation time of the specific embodiment (PCM sound source system capable of producing eight polyphonic sounds) the control ROM has a size of 112K bits, RAM 445.4K bits and the control data/waveform ROM (for 100 timbres) 508K bits; one machine cycle is about 276 nanoseconds with a maximum number of cycles of the interrupt program when invoked being about 150; and the executing period of the interrupting process (tone output sampling period) is about 47 microseconds."

Expressed in KBytes this would mean 55.7KB RAM, 14KB program ROM and 63.5KB sound ROM, which isn't far away from a Commodore C64 with large ROM cartridge. Said CPU speed would be about 3.6 MIPS.

Higher grade MIDI keyboards like MT-240, MT-540 or MT-750 certainly have sub-CPU cores for 16 bit sound generation. Their external ROM is 512KB up to 1MB.

Interesting is that OKI made a general midi sound IC ML2860 (32 note polyphonic ADPCM) to play high quality ring tones in mobile phones, but the datasheet from 2002 contains a very strange note: "Please appreciate that ML2860 is not offered for musical instrument and toy applications, such as keyboards." This suggests that OKI licensed an efficient sound synthesis engine (possibly even surplus ICs) from Casio keyboards, but had to sign an agreement not to use it in competitive products against Casio.

- Does anybody know more about this sound engine?

  • Like 4
Link to comment
Share on other sites

I had to read this a couple of times over I'm baffled by the tech its as I can remember when engineers had to device hard wired and software tricks to get so much out of less being that cost where an issue to produce it in mass. Those times where the best of engineering prowess now that computing time and space cost nothing laziness confined most engineers with what they got. I would be more impressed today if mobile cpu would got maxed to their capacity cramming each byte for some synthesize project alone but I know that would be near impossible considering other engineering factors to control like knowing how much such cpu can take heat , current etc at operational cost.

Then again I'm no engineer.

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.