Skip to content

Commit

Permalink
make voice2ps4op default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
jpcima committed Aug 31, 2018
1 parent 924f469 commit d888217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/opl/generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/opl/generator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d888217

Please sign in to comment.