diff options
author | Wohlstand <admin@wohlnet.ru> | 2020-08-21 22:33:07 +0300 |
---|---|---|
committer | Wohlstand <admin@wohlnet.ru> | 2020-08-21 22:33:07 +0300 |
commit | c025dc0c06eed05800d5081380b7771e2de6fea4 (patch) | |
tree | 19f00334bc6d21ea218bc1fddc36fe6fbb674758 /src/cvt_mus2mid.hpp | |
parent | 75637f387b2d91bf81ee2558244c030c3f7df26d (diff) | |
parent | af8b30f7b83d4ee00f5255f84cc4305d609b446f (diff) | |
download | libADLMIDI-c025dc0c06eed05800d5081380b7771e2de6fea4.tar.gz libADLMIDI-c025dc0c06eed05800d5081380b7771e2de6fea4.tar.bz2 libADLMIDI-c025dc0c06eed05800d5081380b7771e2de6fea4.zip |
Merge branch 'master' into wip-new-embedded-banks
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) |