diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-08-21 11:39:37 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-08-21 11:39:37 +0300 |
commit | b073a8029a46b646f6d593a56ffbe449dd582e39 (patch) | |
tree | a57da38f70f04f7cc028a2acc4e5e065da05002a /src/cvt_mus2mid.hpp | |
parent | 5ab3afa77e91ea4f7a64769ac8a1ac016e29bfeb (diff) | |
download | libADLMIDI-b073a8029a46b646f6d593a56ffbe449dd582e39.tar.gz libADLMIDI-b073a8029a46b646f6d593a56ffbe449dd582e39.tar.bz2 libADLMIDI-b073a8029a46b646f6d593a56ffbe449dd582e39.zip |
MUS2MID: Use 100 default volume level for more accurate result
Diffstat (limited to 'src/cvt_mus2mid.hpp')
-rw-r--r-- | src/cvt_mus2mid.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cvt_mus2mid.hpp b/src/cvt_mus2mid.hpp index 4b07b0d..fcd586d 100644 --- a/src/cvt_mus2mid.hpp +++ b/src/cvt_mus2mid.hpp @@ -307,11 +307,11 @@ static int Convert_mus2midi(uint8_t *in, uint32_t insize, mus2mid_write1(&ctx, (MUS_TEMPO & 0x0000ff00) >> 8); mus2mid_write1(&ctx, (MUS_TEMPO & 0x00ff0000) >> 16); - /* Percussions channel starts out at full volume */ + /* Percussions channel starts out at volume 100 */ mus2mid_write1(&ctx, 0x00); mus2mid_write1(&ctx, 0xB9); mus2mid_write1(&ctx, 0x07); - mus2mid_write1(&ctx, 127); + mus2mid_write1(&ctx, 100); /* get current position in source, and end of position */ cur = in + header.scoreStart; @@ -340,7 +340,7 @@ static int Convert_mus2midi(uint8_t *in, uint32_t insize, if (channelMap[channel] < 0) { *out_local++ = 0xB0 + currentChannel; *out_local++ = 0x07; - *out_local++ = 127; + *out_local++ = 100; *out_local++ = 0x00; channelMap[channel] = currentChannel++; if (currentChannel == 9) |