mirror of
https://github.com/tildearrow/furnace.git
synced 2024-11-27 15:03:01 +00:00
OPM/OPZ: invert noise frequencies
since ymfm is default
This commit is contained in:
parent
63dcacf33d
commit
5a688c58cb
2 changed files with 6 additions and 6 deletions
|
@ -175,7 +175,7 @@ void DivPlatformArcade::tick(bool sysTick) {
|
|||
|
||||
if (chan[i].std.duty.had) {
|
||||
if (chan[i].std.duty.val>0) {
|
||||
rWrite(0x0f,0x80|(0x20-chan[i].std.duty.val));
|
||||
rWrite(0x0f,0x80|(chan[i].std.duty.val-1));
|
||||
} else {
|
||||
rWrite(0x0f,0);
|
||||
}
|
||||
|
@ -768,9 +768,9 @@ int DivPlatformArcade::dispatch(DivCommand c) {
|
|||
if (c.chan!=7) break;
|
||||
if (c.value) {
|
||||
if (c.value>0x1f) {
|
||||
rWrite(0x0f,0x80);
|
||||
rWrite(0x0f,0x80|0x1f);
|
||||
} else {
|
||||
rWrite(0x0f,0x80|(0x1f-c.value));
|
||||
rWrite(0x0f,0x80|(c.value-1));
|
||||
}
|
||||
} else {
|
||||
rWrite(0x0f,0);
|
||||
|
|
|
@ -134,7 +134,7 @@ void DivPlatformTX81Z::tick(bool sysTick) {
|
|||
|
||||
if (chan[i].std.duty.had) {
|
||||
if (chan[i].std.duty.val>0) {
|
||||
rWrite(0x0f,0x80|(0x20-chan[i].std.duty.val));
|
||||
rWrite(0x0f,0x80|(chan[i].std.duty.val-1));
|
||||
} else {
|
||||
rWrite(0x0f,0);
|
||||
}
|
||||
|
@ -865,9 +865,9 @@ int DivPlatformTX81Z::dispatch(DivCommand c) {
|
|||
if (c.chan!=7) break;
|
||||
if (c.value) {
|
||||
if (c.value>0x1f) {
|
||||
rWrite(0x0f,0x80);
|
||||
rWrite(0x0f,0x80|0x1f);
|
||||
} else {
|
||||
rWrite(0x0f,0x80|(0x1f-c.value));
|
||||
rWrite(0x0f,0x80|(c.value-1));
|
||||
}
|
||||
} else {
|
||||
rWrite(0x0f,0);
|
||||
|
|
Loading…
Reference in a new issue