| 1 |
# Yamaha YM2151 |
| 2 |
|
| 3 |
the sound chip powering several arcade boards, synthesizers and the Sharp X1/X68000. eight 4-op FM channels, with overpowered LFO and almost unused noise generator. |
| 4 |
|
| 5 |
it also was present on several pinball machines and synthesizers of the era, and later surpassed by the YM2414 (OPZ) present in the world-famous TX81Z. |
| 6 |
|
| 7 |
in most arcade boards the chip was used in combination with a PCM chip, like [SegaPCM](segapcm.md) or [OKI's line of ADPCM chips](msm6295.md). |
| 8 |
|
| 9 |
## effects |
| 10 |
|
| 11 |
- `10xx`: **set noise frequency of channel 8 operator 4.** `00` disables noise while `01` to `20` enables it. |
| 12 |
- `11xx`: **set feedback of channel.** |
| 13 |
- `12xx`: **set operator 1 level.** |
| 14 |
- `13xx`: **set operator 2 level.** |
| 15 |
- `14xx`: **set operator 3 level.** |
| 16 |
- `15xx`: **set operator 4 level.** |
| 17 |
- `16xy`: **set multiplier of operator.** |
| 18 |
- `x` is the operator (1-4). |
| 19 |
- `y` is the new MULT value.. |
| 20 |
- `17xx`: **set LFO speed.** |
| 21 |
- `18xx`: **set LFO waveform.** |
| 22 |
- `00`: saw |
| 23 |
- `01`: square |
| 24 |
- `02`: triangle |
| 25 |
- `03`: noise |
| 26 |
- `19xx`: **set attack of all operators.** |
| 27 |
- `1Axx`: **set attack of operator 1.** |
| 28 |
- `1Bxx`: **set attack of operator 2.** |
| 29 |
- `1Cxx`: **set attack of operator 3.** |
| 30 |
- `1Dxx`: **set attack of operator 4.** |
| 31 |
- `1Exx`: **set LFO AM depth.** |
| 32 |
- `1Fxx`: **set LFO PM depth.** |
| 33 |
- `30xx`: **enable envelope hard reset.** |
| 34 |
- this works by inserting a quick release and tiny delay before a new note. |
| 35 |
- `50xy`: **set AM of operator.** |
| 36 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 37 |
- `y` determines whether AM is on. |
| 38 |
- `51xy`: **set SL of operator.** |
| 39 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 40 |
- `y` is the value. |
| 41 |
- `52xy`: **set RR of operator.** |
| 42 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 43 |
- `y` is the value. |
| 44 |
- `53xy`: **set DT of operator.** |
| 45 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 46 |
- `y` is the value: |
| 47 |
- `0`: +0 |
| 48 |
- `1`: +1 |
| 49 |
- `2`: +2 |
| 50 |
- `3`: +3 |
| 51 |
- `4`: -0 |
| 52 |
- `5`: -3 |
| 53 |
- `6`: -2 |
| 54 |
- `7`: -1 |
| 55 |
- `54xy`: **set RS of operator.** |
| 56 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 57 |
- `y` is the value. |
| 58 |
- `55xy`: **set DT2 of operator.** |
| 59 |
- `x` is the operator (1-4). a value of 0 means "all operators". |
| 60 |
- `y` is the value. |
| 61 |
- `56xx`: **set DR of all operators.** |
| 62 |
- `57xx`: **set DR of operator 1.** |
| 63 |
- `58xx`: **set DR of operator 2.** |
| 64 |
- `59xx`: **set DR of operator 3.** |
| 65 |
- `5Axx`: **set DR of operator 4.** |
| 66 |
- `5Bxx`: **set D2R/SR of all operators.** |
| 67 |
- `5Cxx`: **set D2R/SR of operator 1.** |
| 68 |
- `5Dxx`: **set D2R/SR of operator 2.** |
| 69 |
- `5Exx`: **set D2R/SR of operator 3.** |
| 70 |
- `5Fxx`: **set D2R/SR of operator 4.** |
| 71 |
- `60xy`: **set operator mask.** |
| 72 |
- enables or disables operators. |
| 73 |
- if `x` is `0`, `y` ranges from `0` to `F`. it is a bitfield, so `y` is the sum of the active operators' bits: |
| 74 |
- OP1 is +1, OP2 is +2, OP3 is +4, and OP4 is +8. |
| 75 |
- for example, having only OP2 and OP4 on would be 2 + 8 = 10, resulting in an `xy` value of `0A`. |
| 76 |
- if `x` is `1` to `4`, the effect targets that operator; `y` turns it off with a value of `0` and on with a value of `1`. |
| 77 |
- for example, the effect `6031` enables OP3. |
| 78 |
- `61xx`: **set algorithm** (0 to 7). |
| 79 |
- `62xx`: **set LFO FM depth** (0 to 7). |
| 80 |
- `63xx`: **set LFO AM depth** (0 to 3). |
| 81 |
|
| 82 |
## info |
| 83 |
|
| 84 |
this chip uses the [FM (OPM)](../4-instrument/fm-opm.md) instrument editor. |
| 85 |
|
| 86 |
## chip config |
| 87 |
|
| 88 |
the following options are available in the Chip Manager window: |
| 89 |
|
| 90 |
- **Broken pitch macro/slides**: due to an oversight, pitch slides were twice as fast in older versions of Furnace. this option exists for compatibility. |