This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2010-06-21 07:03:00

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Difference between imported soundtrack play time and actual play time

Today, I decided to see how my soundtrack would sound like imported into Scratch and compressed, and ran into a strange bug.

The soundtrack was 7:29 minutes long. When I imported the soundtrack into Scratch, it displayed a run time of 9:45 minutes. After listening to the imported soundtrack and comparing it to being played on Winamp, I did notice a slight difference in tempo, but not enough to make such a big difference in run time.

Although, I should say that difference in tempo is quite frustrating in itself for people who work with accurate timing in their projects. The music in the imported soundtrack ended at 7:27 as compared to the original soundtrack, in which the music ended at 7:24.

Now when the music ended, I knew that what was really causing such difference in time was additional silence. Over 2 minutes of silence after the music has ended.

The silence was never there in the first place. I don't know what might be causing this bug and this is the first time I've run into it, but I suppose it's got to do with some conversion and rewriting error.

I've tried re-opening Scratch, re-importing the song, with the same result. Although, I did find a cure. The only thing that seemed to fix it was converting it from mp3 to wav and importing that. Importing as wav also fixed the tempo problem, and the compressed size was smaller. ^^ (Note to self: always import as wav in the future!)

But it's still interesting to know what might have caused this. Has anyone experienced (or is experiencing) similar problems in the past?


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#2 2010-06-21 09:00:48

mathematics
Scratcher
Registered: 2009-03-01
Posts: 1000+

Re: Difference between imported soundtrack play time and actual play time

Offline

 

#3 2010-06-21 11:57:50

MyRedNeptune
Community Moderator
Registered: 2007-05-07
Posts: 1000+

Re: Difference between imported soundtrack play time and actual play time

Ah - thanks!


http://i52.tinypic.com/5es7t0.png I know what you're thinking! "Neptune! Get rid of those filthy advertisements and give us back the Zarathustra siggy, you horrible person!" Well, don't worry about it, the Zara siggy will be back soon, new and improved! ^^ Meanwhile, just do what the sig tells you to. >.>

Offline

 

#4 2010-06-21 12:06:02

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: Difference between imported soundtrack play time and actual play time

You should close this now.


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#5 2010-06-21 13:48:21

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: Difference between imported soundtrack play time and actual play time

Sounds like an issue with the way mp3 libraries decode the files. Interesting bug though! It should get solved when we re-implement sound importing in Scratch 2.0.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

Board footer