【发布时间】:2020-07-30 06:29:38
【问题描述】:
我的 midifile 看起来像这样:
note_on channel=0 note=75 velocity=62 time=0
note_off channel=0 note=75 velocity=0 time=0.20833324999999997
note_on channel=0 note=76 velocity=62 time=0
note_off channel=0 note=76 velocity=0 time=0.20833324999999997
note_on channel=0 note=75 velocity=62 time=0
note_off channel=0 note=75 velocity=0 time=0.20833324999999997
note_on channel=0 note=76 velocity=62 time=0
note_off channel=0 note=76 velocity=0 time=0.20833324999999997
时间都是非常小的数字,但每拍的滴答声(tpb)是“384”。我在任何地方都读到“时间”数字以“滴答”(midi 中最小的时间单位)表示,所以我预计时间会更大。我指的是 Mido(readthedocs)。当他们说:
'时间是增量时间(以刻度为单位)'
在这种情况下,第一个音符应该在时间=192(季度=384/2),但它在 0.20833324999999997。我怎么了?
我确实了解增量时间的概念,但我不明白 tpb 与“时间”的关系。
【问题讨论】:
-
刻度是整数。这些似乎是以秒为单位的增量时间。