fourthline / mmlTools

MabiIcco - マビノギ用MMLエディタ (MML editor for Mabinogi)
https://fourthline.jp/mabiicco/
51 stars 19 forks source link

Note velocity (V) #31

Closed Mabinogi-delight closed 7 years ago

Mabinogi-delight commented 9 years ago

image

After doing some tests recently, I found out that all percussive instruments (including chime) are 1dB louder than other non-percussive instruments. Also, the maximum V for percussive instruments are capped at V11.

So I believe MabiIcco needs to make some adjustments on note playback regarding note velocity. Thank you :).

fourthline commented 9 years ago

Mabinogi ではどうなっているかという情報があれば、とても助かります。 過去の調査で、打楽器(Mabinogi)では V11が最大らしいとのことです。 それにあわせていますが、正確な測定値はもっていません。

MabiIcco

Mabinogi

Mabinogi-delight commented 9 years ago

image

This is one of the tests I have done recently, I replaced waveforms in MSXSpirit.dls for some instruments with whistle's O5C, then made the recording. The last 3 parts are from drum, bass drum and cymbals.

After normalization, this is the reading for VU meter for percussive instruments image

And this is for other instruments image

There is an 1dB difference, or 12%.

1dB

Therefore, in MabiIcco percussive instruments: max V11 ( midi: v * 11 1.12) non-percussive instruments: max V15 ( midi: v \ 8 )

image

But 11 * 11 * 1.12 > 127.

So you may need to make adjustments accordingly.

fourthline commented 9 years ago

各グラフの縦軸の単位を教えてください。 音量、または音圧のようにみえます。あってますか? 横はVelocity(V0~V15)ですね?

Mabinogi-delight commented 9 years ago

Yes you are right, the verticle axis are the relative volumes

I think it is more intuitive to compare velocity from midi to velocity in Mabinogi.

I will try to make another recording and analyze using Matlab and update on this issue when I have time this weekend.

fourthline commented 9 years ago

20150704_velocity

Mabinogi-delight commented 9 years ago

I think I have figured it out.

I made a recording for normal instrument and percussive instrument. In order to make comparisons, I modified the soundfont so that they are using the same file.

t3x2woi1sm h0z1 v na

Then, I imported the wave file in MATLAB and removed the noisy sections (setting them to 0)

9g3 b tazythan g e2b u

Then I do a numerical integration for each segment, take the squareroot, and normalize the values so that maximum velocity is 127. m4n2 4t8ii2 t3tkkv iqw

And this is the result:

y 7o4opndzjilvar hdai

So normal instruments: 8 * V Percussive instruments: 12 * V (capped at 127)

Mabinogi-delight commented 7 years ago

I was playing back one MML from our previous concert: https://youtu.be/nD0YkwAbQx8?t=1h33m10s

the note velocity are kinda off to me in MabiIcco: https://www.youtube.com/watch?v=-OnwyGyvxX4

P.S: This is what I got in 3MLE2: https://www.youtube.com/watch?v=tV14geT2uGo

And then I did a solo test: https://www.youtube.com/watch?v=nFeGFMoDBsI

Soundfont: https://www.dropbox.com/s/fuq9zw2ynrhhwsz/MSXspirit04.dls?dl=0

MML: https://www.dropbox.com/s/ngrkd546kuqq3go/24.%20MMZX%20~%20Prometheus%20%26%20Pandora.mml?dl=0

I believe somehow you normalized the maximum level for each individual note of all instruments?

fourthline commented 7 years ago

is this Soundfont customized? 13="SynthDrumKit"

JP-mabinogi: 13="Bottle_A" (MSXspirit01.dls)

Because "Bottle_A" is not used so much, it is not adjusted.

Mabinogi-delight commented 7 years ago

Yes, it is a customized soundfont.

I believe MabiIcco normalized the loudness for each individual note while Mabinogi did not, and that is causing the differences.

waves

Note "Bass Drum" is louder in original wave file, but this is the recording from MabiIcco

recording

It seems like MabiIcco found the maximum level for each individual note, then scale them to the same level. It is a feature Mabinogi should have, but they did not implement it.

fourthline commented 7 years ago

Mabinogi: DLSのAttenuationが効いている MabiIcco: DLSのAttenuationが効いていない

Impact Hit C6
Attenuation: -07.7dB

36BassDrum1
Attenuation: 00.0dB
Mabinogi-delight commented 7 years ago

It is fixed in v29, thank you very much!