Debian Codegraph @

android/app/jni/doc/7-systems/ym2610b.md

raw
1 # Taito Arcade/Yamaha YM2610B
2
3 YM2610B is basically a derivative of [YM2610](ym2610.md) with 2 extra FM channels, used in some 90s Taito arcade hardware. it is backward compatible with the original chip.
4
5 ## effects
6
7 - `10xy`: **set LFO parameters.**
8 - `x` toggles the LFO.
9 - `y` sets its speed.
10 - `11xx`: **set feedback of channel.**
11 - `12xx`: **set operator 1 level.**
12 - `13xx`: **set operator 2 level.**
13 - `14xx`: **set operator 3 level.**
14 - `15xx`: **set operator 4 level.**
15 - `16xy`: **set multiplier of operator.**
16 - `x` is the operator (1-4).
17 - `y` is the new MULT value..
18 - `18xx`: **toggle extended channel 3 mode.**
19 - 0 disables it and 1 enables it.
20 - only in extended channel 3 chip.
21 - `19xx`: **set attack of all operators.**
22 - `1Axx`: **set attack of operator 1.**
23 - `1Bxx`: **set attack of operator 2.**
24 - `1Cxx`: **set attack of operator 3.**
25 - `1Dxx`: **set attack of operator 4.**
26 - `20xx`: **set SSG channel mode.**
27 - `00`: square
28 - `01`: noise
29 - `02`: square and noise
30 - `03`: nothing (apparently)
31 - `04`: envelope and square
32 - `05`: envelope and noise
33 - `06`: envelope and square and noise
34 - `07`: nothing
35 - `21xx`: **set noise frequency.** range is `00` to `1F`.
36 - `22xy`: **set envelope mode.**
37 - `x` sets the envelope shape, which may be one of the following:
38 - `0`:` \___` decay
39 - `4`:` /___` attack once
40 - `8`:` \\\\` saw
41 - `9`:` \___` decay
42 - `A`:` \/\/` inverse obelisco
43 - `B`:` \¯¯¯` decay once
44 - `C`:` ////` inverse saw
45 - `D`:` /¯¯¯` attack
46 - `E`:` /\/\` obelisco
47 - `F`:` /___` attack once
48 - if `y` is 1 then the envelope will affect this channel.
49 - `23xx`: **set envelope period low byte.**
50 - `24xx`: **set envelope period high byte.**
51 - `25xx`: **slide envelope period up.**
52 - `26xx`: **slide envelope period down.**
53 - `29xy`: **enable SSG auto-envelope mode.**
54 - in this mode the envelope period is set to the channel's notes, multiplied by a fraction.
55 - `x` is the numerator.
56 - `y` is the denominator.
57 - if `x` or `y` are 0 this will disable auto-envelope mode.
58 - `30xx`: **enable envelope hard reset.**
59 - this works by inserting a quick release and tiny delay before a new note.
60 - `50xy`: **set AM of operator.**
61 - `x` is the operator (1-4). a value of 0 means "all operators".
62 - `y` determines whether AM is on.
63 - `51xy`: **set SL of operator.**
64 - `x` is the operator (1-4). a value of 0 means "all operators".
65 - `y` is the value.
66 - `52xy`: **set RR of operator.**
67 - `x` is the operator (1-4). a value of 0 means "all operators".
68 - `y` is the value.
69 - `53xy`: **set DT of operator.**
70 - `x` is the operator (1-4). a value of 0 means "all operators".
71 - `y` is the value:
72 - `0`: +0
73 - `1`: +1
74 - `2`: +2
75 - `3`: +3
76 - `4`: -0
77 - `5`: -3
78 - `6`: -2
79 - `7`: -1
80 - `54xy`: **set RS of operator.**
81 - `x` is the operator (1-4). a value of 0 means "all operators".
82 - `y` is the value.
83 - `55xy`: **set SSG-EG of operator.**
84 - `x` is the operator (1-4). a value of 0 means "all operators".
85 - `y` is the value (0-8).
86 - values between 0 and 7 set SSG-EG.
87 - value 8 disables it.
88 - `56xx`: **set DR of all operators.**
89 - `57xx`: **set DR of operator 1.**
90 - `58xx`: **set DR of operator 2.**
91 - `59xx`: **set DR of operator 3.**
92 - `5Axx`: **set DR of operator 4.**
93 - `5Bxx`: **set D2R/SR of all operators.**
94 - `5Cxx`: **set D2R/SR of operator 1.**
95 - `5Dxx`: **set D2R/SR of operator 2.**
96 - `5Exx`: **set D2R/SR of operator 3.**
97 - `5Fxx`: **set D2R/SR of operator 4.**
98 - `60xy`: **set operator mask.**
99 - enables or disables operators.
100 - if `x` is `0`, `y` ranges from `0` to `F`. it is a bitfield, so `y` is the sum of the active operators' bits:
101 - OP1 is +1, OP2 is +2, OP3 is +4, and OP4 is +8.
102 - for example, having only OP2 and OP4 on would be 2 + 8 = 10, resulting in an `xy` value of `0A`.
103 - 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`.
104 - for example, the effect `6031` enables OP3.
105 - `61xx`: **set algorithm** (0 to 7).
106 - `62xx`: **set LFO FM depth** (0 to 7).
107 - `63xx`: **set LFO AM depth** (0 to 3).
108
109 ## info
110
111 this chip uses the [FM (OPN)](../4-instrument/fm-opn.md), [AY-3-8910/SSG](../4-instrument/ay8910.md), [ADPCM-A](../4-instrument/adpcm-a.md) and [ADPCM-B](../4-instrument/adpcm-b.md) instrument editors.
112
113 ## extended channel 3
114
115 in ExtCh mode, channel 3 is split into one column for each of its four operators. feedback and LFO levels are shared. the frequency of each operator may be controlled independently with notes and effects. this can be used for more polyphony or more complex sounds.
116
117 all four operators are still combined according to the algorithm in use. for example, algorithm 7 acts as four independent sine waves. algorithm 4 acts as two independent 2op sounds. even with algorithm 0, placing a note in any operator triggers that operator alone.
118
119 ## SSG-EG
120
121 SSG-EG is short for "Software-controlled Sound Generator – Envelope Generator". it is the AY-3-8910/YM2149 envelope generator applied to each individual operator. it makes the operator's envelope play through attack, decay, sustain, and decay 2 until it reaches zero amplitude, at which time SSG triggers. according to the shape of the SSG envelope, the operator's envelope may then either loop or hold, and either of these can be set to invert the envelope (attack decreases and decay increases) when triggered.
122
123 a full guide to SSG-EG is beyond the scope of this documentation. for more information, see this [brief SSG-EG and CSM video tutorial](https://www.youtube.com/watch?v=IKOR0TUlnWU), this [detailed technical explanation](https://gendev.spritesmind.net/forum/viewtopic.php?t=386&start=106), and this [chart of tunings](https://docs.google.com/spreadsheets/d/1HGKQ08CnLGAjA1U0StJFldod3FkQ3uq86rYy1VBIuZc/).
124
125 ## CSM
126
127 CSM, or "Composite Sine Mode", involves a timer matching the frequency of the note in the "CSM Timer" channel. each time it triggers, it generates key-on and key-off commands to reset the phase of all operators on channel 3 and force their envelopes to restart at the release point. this can be used to create vocal formants (speech synthesis!) or other complex effects. outside this chip's specific implementation, the technique is known as "oscillator sync".
128
129 working with CSM is beyond the scope of this documentation. for more information, see this [brief SSG-EG and CSM video tutorial](https://www.youtube.com/watch?v=IKOR0TUlnWU).
130
131 ## chip config
132
133 the following options are available in the Chip Manager window:
134
135 - sets the rate at which the chip will run.
136 - **SSG Volume**: sets volume of SSG part.
137 - **FM Volume**: sets volume of FM part.