mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-23 21:15:11 +00:00
Read and Write this
This commit is contained in:
parent
518841c17e
commit
075ec9b6de
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,7 @@ void DivInstrument::putInsData(SafeWriter* w) {
|
|||
|
||||
for (int j=0; j<4; j++) {
|
||||
DivInstrumentFM::Operator& op=fm.op[j];
|
||||
w->writeC(op.enable?1:0);
|
||||
w->writeC(op.am);
|
||||
w->writeC(op.ar);
|
||||
w->writeC(op.dr);
|
||||
|
@ -631,6 +632,9 @@ DivDataErrors DivInstrument::readInsData(SafeReader& reader, short version) {
|
|||
|
||||
for (int j=0; j<4; j++) {
|
||||
DivInstrumentFM::Operator& op=fm.op[j];
|
||||
if (istest) {
|
||||
op.enable=reader.readC();
|
||||
}
|
||||
op.am=reader.readC();
|
||||
op.ar=reader.readC();
|
||||
op.dr=reader.readC();
|
||||
|
|
Loading…
Reference in a new issue