| 1 |
# Yamaha OPL |
| 2 |
|
| 3 |
a series of FM sound chips which were very popular in DOS land. it was so popular that even Yamaha made a logo for it! |
| 4 |
|
| 5 |
essentially a downgraded version of Yamaha's other FM chips, with only 2 operators per channel. |
| 6 |
however, it also had a [drums mode](opll.md), and later chips in the series added more waveforms (than just the typical sine) and even a 4-operator mode. |
| 7 |
|
| 8 |
the original OPL (Yamaha YM3526) was present as an expansion for the Commodore 64 and MSX computers (erm, a variant of it). it only had 9 two-operator channels and drums mode. |
| 9 |
|
| 10 |
Y8950 is essentially the same chip, but with one additional channel for ADPCM sample playback, behaving in a similar way as the one found in YM2608. |
| 11 |
|
| 12 |
its successor, the OPL2 (Yamaha YM3812), added 3 more waveforms and was one of the more popular chips because it was present on the AdLib card for PC. |
| 13 |
later Creative would borrow the chip to make the Sound Blaster, and totally destroyed AdLib's dominance. |
| 14 |
|
| 15 |
the OPL3 (Yamaha YMF262) added 9 more channels, 4 more waveforms, rudimentary 4-operator mode (pairing up to 12 channels to make up to six 4-operator channels), quadraphonic output and some other things. |
| 16 |
|
| 17 |
the OPL4 (Yamaha YMF278) retains the FM block from OPL3, but adds 24 sample channels on top! samples are 44100 Hz, can be between 8, 12 or 16-bit, stereo (with 16 different levels) and can read PCM data from ROM or SRAM (up to 4 MB). |
| 18 |
|
| 19 |
afterwards everyone moved to Windows and software mixed PCM streaming... |
| 20 |
|
| 21 |
## effects |
| 22 |
|
| 23 |
- `10xx`: **set AM depth.** the following values are accepted: |
| 24 |
- `0`: 1dB (shallow) |
| 25 |
- `1`: 4.8dB (deep) |
| 26 |
- this effect applies to all channels. |
| 27 |
- `11xx`: **set feedback of channel.** |
| 28 |
- `12xx`: **set operator 1 level.** |
| 29 |
- `13xx`: **set operator 2 level.** |
| 30 |
- `14xx`: **set operator 3 level.** |
| 31 |
- only in 4-op mode (OPL3 and OPL4). |
| 32 |
- `15xx`: **set operator 4 level.** |
| 33 |
- only in 4-op mode (OPL3 and OPL4). |
| 34 |
- `16xy`: **set multiplier of operator.** |
| 35 |
- `x` is the operator (1-4; last 2 operators only in 4-op mode). |
| 36 |
- `y` is the new MULT value.. |
| 37 |
- `17xx`: **set vibrato depth.** |
| 38 |
- `0`: normal |
| 39 |
- `1`: double |
| 40 |
- this effect applies to all channels. |
| 41 |
- `18xx`: **toggle drums mode.** |
| 42 |
- `0` disables it and `1` enables it. |
| 43 |
- only in drums chip. |
| 44 |
- `19xx`: **set attack of all operators.** |
| 45 |
- `1Axx`: **set attack of operator 1.** |
| 46 |
- `1Bxx`: **set attack of operator 2.** |
| 47 |
- `1Cxx`: **set attack of operator 3.** |
| 48 |
- only in 4-op mode (OPL3). |
| 49 |
- `1Dxx`: **set attack of operator 4.** |
| 50 |
- only in 4-op mode (OPL3). |
| 51 |
- `2Axy`: **set waveform of operator.** |
| 52 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 53 |
- `y` is the value. |
| 54 |
- only in OPL2 or higher. |
| 55 |
- `30xx`: **enable envelope hard reset.** |
| 56 |
- this works by inserting a quick release and tiny delay before a new note. |
| 57 |
- `50xy`: **set AM of operator.** |
| 58 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 59 |
- `y` determines whether AM is on. |
| 60 |
- `51xy`: **set SL of operator.** |
| 61 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 62 |
- `y` is the value. |
| 63 |
- `52xy`: **set RR of operator.** |
| 64 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 65 |
- `y` is the value. |
| 66 |
- `53xy`: **set VIB of operator.** |
| 67 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 68 |
- `y` determines whether VIB is on. |
| 69 |
- `54xy`: **set KSL of operator.** |
| 70 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 71 |
- `y` is the value. |
| 72 |
- `55xy`: **set SUS of operator.** |
| 73 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 74 |
- `y` determines whether SUS is on. |
| 75 |
- `56xx`: **set DR of all operators.** |
| 76 |
- `57xx`: **set DR of operator 1.** |
| 77 |
- `58xx`: **set DR of operator 2.** |
| 78 |
- `59xx`: **set DR of operator 3.** |
| 79 |
- only in 4-op mode (OPL3). |
| 80 |
- `5Axx`: **set DR of operator 4.** |
| 81 |
- only in 4-op mode (OPL3). |
| 82 |
- `5Bxy`: **set KSR of operator.** |
| 83 |
- `x` is the operator from 1 to 4; the last 2 operators only work in 4-op mode. a value of `0` means "all operators". |
| 84 |
- `y` determines whether KSR is on. |
| 85 |
|
| 86 |
## info |
| 87 |
|
| 88 |
these chips use the [FM (OPL)](../4-instrument/fm-opl.md) instrument editor. |
| 89 |
Y8950 ADPCM uses [Generic Sample](../4-instrument/sample.md) and [ADPCM-B](../4-instrument/adpcm-b.md) instrument editors. |
| 90 |
OPL4 PCM uses the [MultiPCM](../4-instrument/multipcm.md) instrument editor. |
| 91 |
|
| 92 |
when two channels are joined for 4-op mode, the channel bar will show `4OP` on a bracket tying them together. |
| 93 |
|
| 94 |
## chip config |
| 95 |
|
| 96 |
the following options are available in the Chip Manager window: |
| 97 |
|
| 98 |
- **Clock rate**: sets the rate at which the chip will run. |
| 99 |
|
| 100 |
additionally, in OPL3: |
| 101 |
|
| 102 |
- **Chip type**: sets the chip model. OPL3-L uses resampling. |
| 103 |
- **Compatible panning**: for compatibility with old Furnace. |
| 104 |
|
| 105 |
additionally, in OPL4: |
| 106 |
|
| 107 |
- **RAM Size**: sets the RAM size for sample storage. |