登录
本论坛汇聚了来自世界各地的人们,因此大家使用英文交流。

Bug? Attenuation encoded with factor 25

分类:错误与安装
  • Sv 13 0
    消息来自 Sven,发表于
    Hello,

    I am using the Mac version 2.2, and it seems the attenuation generator value is written to file with a dB factor of 25.
    I wrote a test program that parses the igen chunk of a test soundfont, and a Polyphone value of 1 dB is encoded as 0x19 0x00 which is the little endian 16-bit value of 25.
    According to the SF specification it should be a factor of 10.
    Are there any plans to address this?

    If this bug should be fixed, I imagine that all soundfonts saved with the „factor 25" version will be loaded incorrectly, causing a headache for soundfont designers. Unless there is or will be a conversion tool that fixes the attenuation values.

    Elsewhere on the internet (Link ) this discrepancy is mentioned (factor 2.5), and there is a hint that this bug was already fixed, however it’s not mentioned in which version.

    Any thoughts or pointers about this?
  • 429 1
    消息来自 Davy,发表于
    You are right and you put your finger in a bug occurring at the beginning of the soundfont format.
    The rule that would have been correct according to the sf2 specification is that if we want an attenuation of 1 dB, then it is stored as 10 in the binary file. But probably due to a bug, an attenuation of 1 dB in their graphical interface (resulting thus in a value of 10 in the binary file) was a weaker attenuation for our ears because of the factor 2.5

    Now the interface of Polyphone takes this factor into account so that we are dealing with real dB while still being compatible with the old soundfonts: internally the factor 2.5 is still here.

登录或注册后即可参与讨论。

Polyphone 需要您!

Polyphone 是免费的,但其网站和开发都会产生费用。一笔小小的捐赠就能帮上大忙。

捐赠
学习基础知识 试试教程
返回
顶部