| 1 |
# Yamaha YM2413/OPLL |
| 2 |
|
| 3 |
the YM2413, otherwise known as OPLL, is a cost-reduced FM synthesis sound chip, based on the Yamaha YM3812 (OPL2). |
| 4 |
|
| 5 |
OPLL also spawned a few derivative chips, the best known of these is: |
| 6 |
- the famous Konami VRC7. used in the Japan-only video game Lagrange Point, it was **another** cost reduction on top of the OPLL! this time just 6 channels... |
| 7 |
- Yamaha YM2423, same chip as YM2413, just a different patch set... |
| 8 |
- Yamaha YMF281, ditto..... |
| 9 |
|
| 10 |
## technical specifications |
| 11 |
|
| 12 |
the YM2413 is equipped with the following features: |
| 13 |
|
| 14 |
- 9 channels of 2 operator FM synthesis |
| 15 |
- a drum/percussion mode, replacing the last 3 voices with 5 rhythm channels, with drum mode tones hard-defined in the chip itself, like FM instruments. only pitch might be altered. |
| 16 |
- drum mode works like following: FM channel 7 is for Kick Drum, which is a normal FM channel but routed through mixer twice for 2× volume, like all drum sounds. FM channel 8 splits to Snare, Drum, and Hi-Hat. Snare Drum is the carrier and it works with a special 1 bit noise generator combined with a square wave, all possible by overriding phase-generator with some different synthesis method. Hi-Hat is the modulator and it works with the noise generator and also the special synthesis. channel 9 splits to Top-Cymbal and Tom-Tom, Top-Cymbal is the carrier and only has the special synthesis, while Tom-Tom is basically a 1op wave. |
| 17 |
- special synthesis mentioned already is: 5 square waves are gathered from 4×, 64× and 128× the pitch of channel 8 and 16× and 64× the pitch of channel 9 and they go through a process where 2 HH bits OR'd together, then 1 HH and 1 TC bit OR'd, then the two TC bits OR'd together, and those 3 results get XOR'd. |
| 18 |
- **1 user-definable patch (this patch can be changed throughout the course of the song)** |
| 19 |
- **15 pre-defined patches which can all be used at the same time** |
| 20 |
- support for ADSR on both the modulator and the carrier |
| 21 |
- sine and half-sine based FM synthesis |
| 22 |
- 9 octave note control |
| 23 |
- 4096 different frequencies for channels |
| 24 |
- 16 unique volume levels (NOTE: volume 0 is NOT silent.) |
| 25 |
- modulator and carrier key scaling |
| 26 |
- built-in hardware vibrato support |
| 27 |
|
| 28 |
## effects |
| 29 |
|
| 30 |
- `10xx`: **change patch.** |
| 31 |
- `11xx`: **set feedback of channel.** |
| 32 |
- `12xx`: **set operator 1 level.** |
| 33 |
- `13xx`: **set operator 2 level.** |
| 34 |
- `16xy`: **set multiplier of operator.** |
| 35 |
- `x` is the operator, either 1 or 2. |
| 36 |
- `y` is the new MULT value.. |
| 37 |
- `18xx`: **toggle drums mode.** |
| 38 |
- `0` disables it and `1` enables it. |
| 39 |
- only in drums mode. |
| 40 |
- `19xx`: **set attack of all operators.** |
| 41 |
- `1Axx`: **set attack of operator 1.** |
| 42 |
- `1Bxx`: **set attack of operator 2.** |
| 43 |
- `50xy`: **set AM of operator.** |
| 44 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 45 |
- `y` determines whether AM is on. |
| 46 |
- `51xy`: **set SL of operator.** |
| 47 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 48 |
- `y` is the value. |
| 49 |
- `52xy`: **set RR of operator.** |
| 50 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 51 |
- `y` is the value. |
| 52 |
- `53xy`: **set VIB of operator.** |
| 53 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 54 |
- `y` determines whether VIB is on. |
| 55 |
- `54xy`: **set KSL of operator.** |
| 56 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 57 |
- `y` is the value. |
| 58 |
- `55xy`: **set EGT of operator.** |
| 59 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 60 |
- `y` determines whether EGT is on. |
| 61 |
- `56xx`: **set DR of all operators.** |
| 62 |
- `57xx`: **set DR of operator 1.** |
| 63 |
- `58xx`: **set DR of operator 2.** |
| 64 |
- `5Bxy`: **set KSR of operator.** |
| 65 |
- `x` is the operator, either 1 or 2. a value of `0` means "all operators". |
| 66 |
- `y` determines whether KSR is on. |
| 67 |
|
| 68 |
## info |
| 69 |
|
| 70 |
this chip uses the [FM (OPLL)](../4-instrument/fm-opll.md) instrument editor. |
| 71 |
|
| 72 |
## chip config |
| 73 |
|
| 74 |
the following options are available in the Chip Manager window: |
| 75 |
|
| 76 |
- **Clock rate**: sets the rate at which the chip will run. |
| 77 |
- **Patch set**: changes the chip model, providing different built-in sounds. |
| 78 |
|
| 79 |
the following options are visible in drums mode: |
| 80 |
|
| 81 |
- **Ignore top/hi-hat frequency changes**: in drums mode, makes the top/hi-hat channels not write frequency since they share it with snare and tom. |
| 82 |
- **Apply fixed frequency to all drums at once**: sets the frequency of all drums to that of a fixed frequency OPLL drums instrument when one note with it is reached. |