performous / composer

Song editor for Performous and other singing games
Other
39 stars 23 forks source link

pitch visualization has wrong horizontal scale #23

Closed s09bQ5 closed 4 years ago

s09bQ5 commented 9 years ago

The pitch visualization is too wide. And it's not just silence added at the end. Everything is scaled. A test file (wave, 16 bits, mono, 44.1 kHz) with 1.6 seconds of silence and 1.6 seconds of music finishes playing before the cursor reaches the first visualized note at 3.2 seconds and a song (wave, 16 bits, stereo, 44.1 kHz) that has 245 seconds of sound followed by 17 seconds of silence has notes drawn up to 266 seconds. Using Ogg Vorbis instead of Wave makes no difference.

I'm on commit 42f058a22348acb406c4dd2fdaaf85c9989cdce6

s09bQ5 commented 9 years ago

That was an easy one:

-       audioQueue.setRateChannels(cc->sample_rate, cc->channels);
+       audioQueue.setRateChannels(m_rate, 2);
tapio commented 9 years ago

/ping @Tronic

mirabilos commented 4 years ago

Bug and fix confirmed with latest git. Please apply.

Cc @Natureshadow to apply to the Debian package as well.

Tronic commented 4 years ago

Issue trackers are very useful in burying bug reports but it is nice to see that sometimes they also get dug up!