From d888217dff29f62e20820d258127831c7a8018d4 Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Fri, 31 Aug 2018 11:20:47 +0200 Subject: [PATCH] make voice2ps4op default to false --- src/opl/generator.cpp | 4 ++-- src/opl/generator.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/opl/generator.cpp b/src/opl/generator.cpp index 8108e29..8a0cdfd 100644 --- a/src/opl/generator.cpp +++ b/src/opl/generator.cpp @@ -559,7 +559,7 @@ void Generator::PlayNoteCh(int ch) Touch_Real(adlchannel[1], chipvolume); bend = m_bend + m_patch.OPS[i[0]].finetune; - NoteOn(adlchannel[0], adlchannel[1], BEND_COEFFICIENT * std::exp(0.057762265 * (tone + bend + phase)), false); + NoteOn(adlchannel[0], adlchannel[1], BEND_COEFFICIENT * std::exp(0.057762265 * (tone + bend + phase))); if(pseudo_4op) { @@ -639,7 +639,7 @@ void Generator::PlayDrum(uint8_t drum, int noteID) double bend = 0.0; double phase = 0.0; bend = 0.0 + m_patch.OPS[0].finetune; - NoteOn(adlchannel, 0, BEND_COEFFICIENT * std::exp(0.057762265 * (tone + bend + phase)), false); + NoteOn(adlchannel, 0, BEND_COEFFICIENT * std::exp(0.057762265 * (tone + bend + phase))); } void Generator::switch4op(bool enabled, bool patchCleanUp) diff --git a/src/opl/generator.h b/src/opl/generator.h index 4651e5e..1c1c2d2 100644 --- a/src/opl/generator.h +++ b/src/opl/generator.h @@ -94,7 +94,7 @@ class Generator * @param voice2ps4op where it is the second voice of a pseudo-4op instrument * @param hertz Tone frequency */ - void NoteOn(uint32_t c1, uint32_t c2, double hertz, bool voice2ps4op); + void NoteOn(uint32_t c1, uint32_t c2, double hertz, bool voice2ps4op = false); /** * @brief Turn the note off