Debian Codegraph @

src/engine/song.h

raw
1 /**
2 * Furnace Tracker - multi-system chiptune tracker
3 * Copyright (C) 2021-2025 tildearrow and contributors
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #ifndef _SONG_H
21 #define _SONG_H
22 #include <stdio.h>
23 #include "../pch.h"
24
25 #include "defines.h"
26 #include "../ta-utils.h"
27 #include "config.h"
28 #include "orders.h"
29 #include "instrument.h"
30 #include "pattern.h"
31 #include "wavetable.h"
32 #include "sample.h"
33
34 enum DivSystem {
35 DIV_SYSTEM_NULL=0,
36 DIV_SYSTEM_YMU759,
37 DIV_SYSTEM_GENESIS, // ** COMPOUND SYSTEM - DO NOT USE! **
38 DIV_SYSTEM_GENESIS_EXT, // ** COMPOUND SYSTEM - DO NOT USE! **
39 DIV_SYSTEM_SMS,
40 DIV_SYSTEM_SMS_OPLL, // ** COMPOUND SYSTEM - DO NOT USE! **
41 DIV_SYSTEM_GB,
42 DIV_SYSTEM_PCE,
43 DIV_SYSTEM_NES,
44 DIV_SYSTEM_NES_VRC7, // ** COMPOUND SYSTEM - DO NOT USE! **
45 DIV_SYSTEM_NES_FDS, // ** COMPOUND SYSTEM - DO NOT USE! **
46 DIV_SYSTEM_C64_6581,
47 DIV_SYSTEM_C64_8580,
48 DIV_SYSTEM_ARCADE, // ** COMPOUND SYSTEM - DO NOT USE! **
49 DIV_SYSTEM_MSX2, // ** COMPOUND SYSTEM - DO NOT USE! **
50 DIV_SYSTEM_YM2610,
51 DIV_SYSTEM_YM2610_EXT,
52
53 DIV_SYSTEM_AY8910,
54 DIV_SYSTEM_AMIGA,
55 DIV_SYSTEM_YM2151,
56 DIV_SYSTEM_YM2612,
57 DIV_SYSTEM_TIA,
58 DIV_SYSTEM_SAA1099,
59 DIV_SYSTEM_AY8930,
60 DIV_SYSTEM_VIC20,
61 DIV_SYSTEM_PET,
62 DIV_SYSTEM_SNES,
63 DIV_SYSTEM_VRC6,
64 DIV_SYSTEM_OPLL,
65 DIV_SYSTEM_FDS,
66 DIV_SYSTEM_MMC5,
67 DIV_SYSTEM_N163,
68 DIV_SYSTEM_YM2203,
69 DIV_SYSTEM_YM2203_EXT,
70 DIV_SYSTEM_YM2608,
71 DIV_SYSTEM_YM2608_EXT,
72 DIV_SYSTEM_OPL,
73 DIV_SYSTEM_OPL2,
74 DIV_SYSTEM_OPL3,
75 DIV_SYSTEM_MULTIPCM,
76 DIV_SYSTEM_PCSPKR,
77 DIV_SYSTEM_POKEY,
78 DIV_SYSTEM_RF5C68,
79 DIV_SYSTEM_SWAN,
80 DIV_SYSTEM_OPZ,
81 DIV_SYSTEM_POKEMINI,
82 DIV_SYSTEM_SEGAPCM,
83 DIV_SYSTEM_VBOY,
84 DIV_SYSTEM_VRC7,
85 DIV_SYSTEM_YM2610B,
86 DIV_SYSTEM_SFX_BEEPER,
87 DIV_SYSTEM_SFX_BEEPER_QUADTONE,
88 DIV_SYSTEM_YM2612_EXT,
89 DIV_SYSTEM_SCC,
90 DIV_SYSTEM_OPL_DRUMS,
91 DIV_SYSTEM_OPL2_DRUMS,
92 DIV_SYSTEM_OPL3_DRUMS,
93 DIV_SYSTEM_YM2610_FULL,
94 DIV_SYSTEM_YM2610_FULL_EXT,
95 DIV_SYSTEM_OPLL_DRUMS,
96 DIV_SYSTEM_LYNX,
97 DIV_SYSTEM_QSOUND,
98 DIV_SYSTEM_VERA,
99 DIV_SYSTEM_YM2610B_EXT,
100 DIV_SYSTEM_SEGAPCM_COMPAT,
101 DIV_SYSTEM_X1_010,
102 DIV_SYSTEM_BUBSYS_WSG,
103 DIV_SYSTEM_OPL4,
104 DIV_SYSTEM_OPL4_DRUMS,
105 DIV_SYSTEM_ES5506,
106 DIV_SYSTEM_Y8950,
107 DIV_SYSTEM_Y8950_DRUMS,
108 DIV_SYSTEM_SCC_PLUS,
109 DIV_SYSTEM_SOUND_UNIT,
110 DIV_SYSTEM_MSM6295,
111 DIV_SYSTEM_MSM6258,
112 DIV_SYSTEM_YMZ280B,
113 DIV_SYSTEM_NAMCO,
114 DIV_SYSTEM_NAMCO_15XX,
115 DIV_SYSTEM_NAMCO_CUS30,
116 DIV_SYSTEM_YM2612_DUALPCM,
117 DIV_SYSTEM_YM2612_DUALPCM_EXT,
118 DIV_SYSTEM_MSM5232,
119 DIV_SYSTEM_T6W28,
120 DIV_SYSTEM_K007232,
121 DIV_SYSTEM_GA20,
122 DIV_SYSTEM_PCM_DAC,
123 DIV_SYSTEM_PONG,
124 DIV_SYSTEM_DUMMY,
125 DIV_SYSTEM_YM2612_CSM,
126 DIV_SYSTEM_YM2610_CSM,
127 DIV_SYSTEM_YM2610B_CSM,
128 DIV_SYSTEM_YM2203_CSM,
129 DIV_SYSTEM_YM2608_CSM,
130 DIV_SYSTEM_SM8521,
131 DIV_SYSTEM_PV1000,
132 DIV_SYSTEM_K053260,
133 DIV_SYSTEM_TED,
134 DIV_SYSTEM_C140,
135 DIV_SYSTEM_C219,
136 DIV_SYSTEM_ESFM,
137 DIV_SYSTEM_POWERNOISE,
138 DIV_SYSTEM_DAVE,
139 DIV_SYSTEM_NDS,
140 DIV_SYSTEM_GBA_DMA,
141 DIV_SYSTEM_GBA_MINMOD,
142 DIV_SYSTEM_5E01,
143 DIV_SYSTEM_BIFURCATOR,
144 DIV_SYSTEM_SID2,
145 DIV_SYSTEM_SUPERVISION,
146 DIV_SYSTEM_UPD1771C,
147 DIV_SYSTEM_SID3,
148 DIV_SYSTEM_C64_PCM,
149
150 DIV_SYSTEM_MAX
151 };
152
153 enum DivEffectType: unsigned short {
154 DIV_EFFECT_NULL=0,
155 DIV_EFFECT_DUMMY,
156 DIV_EFFECT_EXTERNAL,
157 DIV_EFFECT_VOLUME,
158 DIV_EFFECT_FILTER
159 };
160
161 struct DivGroovePattern {
162 unsigned char val[16];
163 unsigned char len;
164 DivGroovePattern():
165 len(1) {
166 memset(val,6,16);
167 }
168 };
169
170 struct DivSubSong {
171 String name, notes;
172 unsigned char hilightA, hilightB;
173 unsigned char timeBase, arpLen;
174 DivGroovePattern speeds;
175 short virtualTempoN, virtualTempoD;
176 float hz;
177 int patLen, ordersLen;
178
179 DivOrders orders;
180 DivChannelData pat[DIV_MAX_CHANS];
181
182 bool chanShow[DIV_MAX_CHANS];
183 bool chanShowChanOsc[DIV_MAX_CHANS];
184 unsigned char chanCollapse[DIV_MAX_CHANS];
185 String chanName[DIV_MAX_CHANS];
186 String chanShortName[DIV_MAX_CHANS];
187
188 /**
189 * walk through the song and determine loop position.
190 */
191 bool walk(int& loopOrder, int& loopRow, int& loopEnd, int chans, int jumpTreatment, int ignoreJumpAtEnd, int firstPat=0);
192
193 /**
194 * find song length in rows (up to specified loop point).
195 */
196 void findLength(int loopOrder, int loopRow, double fadeoutLen, int& rowsForFadeout, bool& hasFFxx, std::vector<int>& orders, std::vector<DivGroovePattern>& grooves, int& length, int chans, int jumpTreatment, int ignoreJumpAtEnd, int firstPat=0);
197
198 void clearData();
199 void optimizePatterns();
200 void rearrangePatterns();
201 void sortOrders();
202 void makePatUnique();
203
204 DivSubSong():
205 hilightA(4),
206 hilightB(16),
207 timeBase(0),
208 arpLen(1),
209 virtualTempoN(150),
210 virtualTempoD(150),
211 hz(60.0),
212 patLen(64),
213 ordersLen(1) {
214 for (int i=0; i<DIV_MAX_CHANS; i++) {
215 chanShow[i]=true;
216 chanShowChanOsc[i]=true;
217 chanCollapse[i]=0;
218 }
219 }
220 };
221
222 struct DivAssetDir {
223 String name;
224 std::vector<int> entries;
225
226 DivAssetDir():
227 name("New Directory") {}
228 DivAssetDir(String n):
229 name(n) {}
230 };
231
232 struct DivEffectStorage {
233 DivEffectType id;
234 unsigned short slot, storageVer;
235 float dryWet;
236 unsigned char* storage;
237 size_t storageLen;
238 DivEffectStorage():
239 id(DIV_EFFECT_NULL),
240 slot(0),
241 storageVer(0),
242 dryWet(1.0f),
243 storage(NULL),
244 storageLen(0) {}
245 };
246
247 struct DivSong {
248 unsigned short version;
249 bool isDMF;
250
251 // system
252 DivSystem system[DIV_MAX_CHIPS];
253 unsigned char systemLen;
254 float systemVol[DIV_MAX_CHIPS];
255 float systemPan[DIV_MAX_CHIPS];
256 float systemPanFR[DIV_MAX_CHIPS];
257 DivConfig systemFlags[DIV_MAX_CHIPS];
258
259 // song information
260 String name, author, systemName;
261
262 // legacy song information
263 // those will be stored in .fur and mapped to VGM as:
264 // category -> game name
265 // writer -> ripper
266 // createdDate -> year
267 String carrier, composer, vendor, category, writer, arranger, copyright, manGroup, manInfo, createdDate, revisionDate;
268
269 // more VGM specific stuff
270 String nameJ, authorJ, categoryJ, systemNameJ;
271
272 // other things
273 String notes;
274
275 // module details
276 int insLen, waveLen, sampleLen;
277 float masterVol;
278 float tuning;
279
280 // compatibility flags
281 bool limitSlides;
282 // linear pitch
283 // 0: not linear
284 // 1: only pitch changes (04xy/E5xx) linear
285 // 2: full linear
286 unsigned char linearPitch;
287 unsigned char pitchSlideSpeed;
288 // loop behavior
289 // 0: reset on loop
290 // 1: fake reset on loop
291 // 2: don't do anything on loop
292 unsigned char loopModality;
293 // cut/delay effect behavior
294 // 0: strict (don't allow value higher than or equal to speed)
295 // 1: broken (don't allow value higher than speed)
296 // 2: lax (allow value higher than speed)
297 unsigned char delayBehavior;
298 // 0B/0D treatment
299 // 0: normal (0B/0D accepted)
300 // 1: old Furnace (first one accepted)
301 // 2: DefleMask (0D takes priority over 0B)
302 unsigned char jumpTreatment;
303 bool properNoiseLayout;
304 bool waveDutyIsVol;
305 bool resetMacroOnPorta;
306 bool legacyVolumeSlides;
307 bool compatibleArpeggio;
308 bool noteOffResetsSlides;
309 bool targetResetsSlides;
310 bool arpNonPorta;
311 bool algMacroBehavior;
312 bool brokenShortcutSlides;
313 bool ignoreDuplicateSlides;
314 bool stopPortaOnNoteOff;
315 bool continuousVibrato;
316 bool brokenDACMode;
317 bool oneTickCut;
318 bool newInsTriggersInPorta;
319 bool arp0Reset;
320 bool brokenSpeedSel;
321 bool noSlidesOnFirstTick;
322 bool rowResetsArpPos;
323 bool ignoreJumpAtEnd;
324 bool buggyPortaAfterSlide;
325 bool gbInsAffectsEnvelope;
326 bool sharedExtStat;
327 bool ignoreDACModeOutsideIntendedChannel;
328 bool e1e2AlsoTakePriority;
329 bool newSegaPCM;
330 bool fbPortaPause;
331 bool snDutyReset;
332 bool pitchMacroIsLinear;
333 bool oldOctaveBoundary;
334 bool noOPN2Vol;
335 bool newVolumeScaling;
336 bool volMacroLinger;
337 bool brokenOutVol;
338 bool brokenOutVol2;
339 bool e1e2StopOnSameNote;
340 bool brokenPortaArp;
341 bool snNoLowPeriods;
342 bool disableSampleMacro;
343 bool autoSystem;
344 bool oldArpStrategy;
345 bool patchbayAuto;
346 bool brokenPortaLegato;
347 bool brokenFMOff;
348 bool preNoteNoEffect;
349 bool oldDPCM;
350 bool resetArpPhaseOnNewNote;
351 bool ceilVolumeScaling;
352 bool oldAlwaysSetVolume;
353 bool oldSampleOffset;
354 // TODO: this flag is not saved to the file yet.
355 bool oldCenterRate;
356
357 std::vector<DivInstrument*> ins;
358 std::vector<DivWavetable*> wave;
359 std::vector<DivSample*> sample;
360
361 std::vector<DivSubSong*> subsong;
362 std::vector<unsigned int> patchbay;
363 std::vector<DivGroovePattern> grooves;
364
365 std::vector<DivAssetDir> insDir;
366 std::vector<DivAssetDir> waveDir;
367 std::vector<DivAssetDir> sampleDir;
368
369 std::vector<DivEffectStorage> effects;
370
371 DivInstrument nullIns, nullInsOPLL, nullInsOPL, nullInsOPLDrums, nullInsQSound, nullInsESFM;
372 DivWavetable nullWave;
373 DivSample nullSample;
374
375 /**
376 * find data past 0Bxx effects and place that into new sub-songs.
377 */
378 void findSubSongs(int chans);
379
380 /**
381 * clear orders and patterns.
382 */
383 void clearSongData();
384
385 /**
386 * clear instruments.
387 */
388 void clearInstruments();
389
390 /**
391 * clear wavetables.
392 */
393 void clearWavetables();
394
395 /**
396 * clear samples.
397 */
398 void clearSamples();
399
400 /**
401 * unloads the song, freeing all memory associated with it.
402 * use before destroying the object.
403 */
404 void unload();
405
406 DivSong():
407 version(0),
408 isDMF(false),
409 systemLen(2),
410 name(""),
411 author(""),
412 systemName(""),
413 carrier(""),
414 composer(""),
415 vendor(""),
416 category(""),
417 writer(""),
418 arranger(""),
419 copyright(""),
420 manGroup(""),
421 manInfo(""),
422 createdDate(""),
423 revisionDate(""),
424 insLen(0),
425 waveLen(0),
426 sampleLen(0),
427 masterVol(1.0f),
428 tuning(440.0f),
429 limitSlides(false),
430 linearPitch(2),
431 pitchSlideSpeed(4),
432 loopModality(2),
433 delayBehavior(2),
434 jumpTreatment(0),
435 properNoiseLayout(true),
436 waveDutyIsVol(false),
437 resetMacroOnPorta(false),
438 legacyVolumeSlides(false),
439 compatibleArpeggio(false),
440 noteOffResetsSlides(true),
441 targetResetsSlides(true),
442 arpNonPorta(false),
443 algMacroBehavior(false),
444 brokenShortcutSlides(false),
445 ignoreDuplicateSlides(false),
446 stopPortaOnNoteOff(false),
447 continuousVibrato(false),
448 brokenDACMode(false),
449 oneTickCut(false),
450 newInsTriggersInPorta(true),
451 arp0Reset(true),
452 brokenSpeedSel(false),
453 noSlidesOnFirstTick(false),
454 rowResetsArpPos(false),
455 ignoreJumpAtEnd(false),
456 buggyPortaAfterSlide(false),
457 gbInsAffectsEnvelope(true),
458 sharedExtStat(true),
459 ignoreDACModeOutsideIntendedChannel(false),
460 e1e2AlsoTakePriority(false),
461 newSegaPCM(true),
462 fbPortaPause(false),
463 snDutyReset(false),
464 pitchMacroIsLinear(true),
465 oldOctaveBoundary(false),
466 noOPN2Vol(false),
467 newVolumeScaling(true),
468 volMacroLinger(true),
469 brokenOutVol(false),
470 brokenOutVol2(false),
471 e1e2StopOnSameNote(false),
472 brokenPortaArp(false),
473 snNoLowPeriods(false),
474 disableSampleMacro(false),
475 autoSystem(true),
476 oldArpStrategy(false),
477 patchbayAuto(true),
478 brokenPortaLegato(false),
479 brokenFMOff(false),
480 preNoteNoEffect(false),
481 oldDPCM(false),
482 resetArpPhaseOnNewNote(false),
483 ceilVolumeScaling(false),
484 oldAlwaysSetVolume(false),
485 oldSampleOffset(false),
486 oldCenterRate(true) {
487 for (int i=0; i<DIV_MAX_CHIPS; i++) {
488 system[i]=DIV_SYSTEM_NULL;
489 systemVol[i]=1.0;
490 systemPan[i]=0.0;
491 systemPanFR[i]=0.0;
492 }
493 subsong.push_back(new DivSubSong);
494 system[0]=DIV_SYSTEM_YM2612;
495 system[1]=DIV_SYSTEM_SMS;
496
497 // OPLL default instrument contest winner - piano_guitar_idk by Weeppiko
498 nullInsOPLL.type=DIV_INS_OPLL;
499 nullInsOPLL.fm.opllPreset=0;
500 nullInsOPLL.fm.alg=0;
501 nullInsOPLL.fm.fb=7;
502 nullInsOPLL.fm.fms=1;
503 nullInsOPLL.fm.ams=0;
504 nullInsOPLL.fm.op[0].ar=15;
505 nullInsOPLL.fm.op[0].dr=5;
506 nullInsOPLL.fm.op[0].sl=3;
507 nullInsOPLL.fm.op[0].rr=3;
508 nullInsOPLL.fm.op[0].tl=40;
509 nullInsOPLL.fm.op[0].ksl=0;
510 nullInsOPLL.fm.op[0].mult=5;
511 nullInsOPLL.fm.op[0].am=0;
512 nullInsOPLL.fm.op[0].vib=1;
513 nullInsOPLL.fm.op[0].ksr=0;
514 nullInsOPLL.fm.op[0].ssgEnv=8;
515 nullInsOPLL.fm.op[1].ar=15;
516 nullInsOPLL.fm.op[1].dr=1;
517 nullInsOPLL.fm.op[1].sl=11;
518 nullInsOPLL.fm.op[1].rr=6;
519 nullInsOPLL.fm.op[1].tl=0;
520 nullInsOPLL.fm.op[1].ksl=0;
521 nullInsOPLL.fm.op[1].mult=1;
522 nullInsOPLL.fm.op[1].am=0;
523 nullInsOPLL.fm.op[1].vib=0;
524 nullInsOPLL.fm.op[1].ksr=0;
525 nullInsOPLL.fm.op[1].ssgEnv=8;
526 nullInsOPLL.name="This is a bug! Report!";
527
528 nullInsOPL.type=DIV_INS_OPL;
529 nullInsOPL.fm.alg=0;
530 nullInsOPL.fm.fb=7;
531 nullInsOPL.fm.op[0].dr=2;
532 nullInsOPL.fm.op[0].rr=7;
533 nullInsOPL.fm.op[0].tl=22;
534 nullInsOPL.fm.op[0].ksl=1;
535 nullInsOPL.fm.op[0].mult=3;
536 nullInsOPL.fm.op[1].tl=0;
537 nullInsOPL.fm.op[1].dr=3;
538 nullInsOPL.fm.op[1].rr=12;
539 nullInsOPL.fm.op[1].mult=1;
540 nullInsOPL.name="This is a bug! Report!";
541 nullInsOPL.fm.kickFreq=(1<<10)|576;
542 nullInsOPL.fm.snareHatFreq=(1<<10)|672;
543 nullInsOPL.fm.tomTopFreq=896;
544
545 nullInsOPLDrums=nullInsOPL;
546 nullInsOPLDrums.type=DIV_INS_OPL_DRUMS;
547 nullInsOPLDrums.fm.fixedDrums=true;
548
549 for (int i=0; i<4; i++) {
550 nullInsOPLDrums.fm.op[i].am=0;
551 nullInsOPLDrums.fm.op[i].vib=0;
552 nullInsOPLDrums.fm.op[i].ksr=0;
553 nullInsOPLDrums.fm.op[i].sus=0;
554 nullInsOPLDrums.fm.op[i].ws=0;
555 nullInsOPLDrums.fm.op[i].ksl=0;
556 nullInsOPLDrums.fm.op[i].tl=0;
557 }
558
559 // snare
560 nullInsOPLDrums.fm.op[0].ar=13;
561 nullInsOPLDrums.fm.op[0].dr=8;
562 nullInsOPLDrums.fm.op[0].sl=4;
563 nullInsOPLDrums.fm.op[0].rr=8;
564 nullInsOPLDrums.fm.op[0].mult=1;
565
566 // tom
567 nullInsOPLDrums.fm.op[1].ar=15;
568 nullInsOPLDrums.fm.op[1].dr=8;
569 nullInsOPLDrums.fm.op[1].sl=5;
570 nullInsOPLDrums.fm.op[1].rr=9;
571 nullInsOPLDrums.fm.op[1].mult=5;
572
573 // top
574 nullInsOPLDrums.fm.op[2].ar=10;
575 nullInsOPLDrums.fm.op[2].dr=10;
576 nullInsOPLDrums.fm.op[2].sl=5;
577 nullInsOPLDrums.fm.op[2].rr=5;
578 nullInsOPLDrums.fm.op[2].mult=1;
579 nullInsOPLDrums.fm.op[2].ksr=1;
580
581 // hi-hat
582 nullInsOPLDrums.fm.op[3].ar=12;
583 nullInsOPLDrums.fm.op[3].dr=8;
584 nullInsOPLDrums.fm.op[3].sl=10;
585 nullInsOPLDrums.fm.op[3].rr=7;
586 nullInsOPLDrums.fm.op[3].mult=2;
587
588 nullInsQSound.std.panLMacro.mode=true;
589
590 // ESFM default instrument - port of OPN default instrument
591 nullInsESFM.esfm.noise=0;
592 nullInsESFM.esfm.op[0].outLvl=0;
593 nullInsESFM.esfm.op[0].modIn=4;
594 nullInsESFM.esfm.op[0].dt=2;
595 nullInsESFM.fm.op[0].tl=42;
596 nullInsESFM.fm.op[0].ar=15;
597 nullInsESFM.fm.op[0].dr=3;
598 nullInsESFM.fm.op[0].sl=15;
599 nullInsESFM.fm.op[0].rr=3;
600 nullInsESFM.fm.op[0].mult=5;
601
602 nullInsESFM.esfm.op[1].outLvl=0;
603 nullInsESFM.esfm.op[1].modIn=7;
604 nullInsESFM.esfm.op[1].dt=-3;
605 nullInsESFM.fm.op[1].tl=18;
606 nullInsESFM.fm.op[1].ar=15;
607 nullInsESFM.fm.op[1].dr=3;
608 nullInsESFM.fm.op[1].sl=15;
609 nullInsESFM.fm.op[1].rr=4;
610 nullInsESFM.fm.op[1].mult=1;
611
612 nullInsESFM.esfm.op[2].outLvl=0;
613 nullInsESFM.esfm.op[2].modIn=7;
614 nullInsESFM.esfm.op[2].dt=2;
615 nullInsESFM.fm.op[2].tl=48;
616 nullInsESFM.fm.op[2].ar=15;
617 nullInsESFM.fm.op[2].dr=2;
618 nullInsESFM.fm.op[2].sl=11;
619 nullInsESFM.fm.op[2].rr=1;
620 nullInsESFM.fm.op[2].mult=1;
621 nullInsESFM.fm.op[2].sus=1;
622
623 nullInsESFM.esfm.op[3].outLvl=7;
624 nullInsESFM.esfm.op[3].modIn=7;
625 nullInsESFM.esfm.op[3].dt=-3;
626 nullInsESFM.fm.op[3].tl=0;
627 nullInsESFM.fm.op[3].ar=15;
628 nullInsESFM.fm.op[3].dr=3;
629 nullInsESFM.fm.op[3].sl=15;
630 nullInsESFM.fm.op[3].rr=9;
631 nullInsESFM.fm.op[3].mult=1;
632 }
633 };
634
635 #endif