Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /storage/content/49/145849/famitracker.com/public_html/forum/classes/dbHandler.php on line 29 FamiTracker
Login:
Menu:
Post: Author:
FamiTracker > General > Bug Reports & Feature Requests > WAV doesn't loop properly because of silence. Owner: Octopus New post
Page 1 of 1 Sort:  
WAV doesn't loop properly because of silence. Posted: 2014-12-10 22:12 Reply | Quote
Octopus



Member for: 2750 days
Status: Offline

#64283
I really fell in love with FamiTracker, however, when I export as WAV there's that devilish silence gap on both the beginning and end of the track. I don't like it, that destroys completely the purpose of small looping tracks for games. And I have tried to cut it on Audacity, but I didn't like it that way. 1st) It's never a perfect loop; 2nd) It's time consuming. So is there any trick that's escaping me to create perfectly looping WAVs on FamiTracker without gaps? Like in gapless playback.

Posted: 2014-12-10 23:10 Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 days
Location: Sweden
Status: Offline

#64285
Unfortunately not at the moment. The gaps are there to provide some margin and prevent loss of audio during exporting (due to the way WAV export was added, which was done quickly rather than properly). I realize that this is a commonly used feature now so I'll spend some time to improve it.

Thanks for your feedback.

_______________________
Programmer and developer
Posted: 2014-12-11 00:27 Reply | Quote
Octopus



Member for: 2750 days
Status: Offline

#64287
Thanks. You're awesome!

Posted: 2014-12-11 02:55 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#64288
You can always plug the WAV file into a sound editor like Audacity & trim off the silent portions.

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
RE: WAV doesn't loop properly because of silence. Posted: 2014-12-11 15:02  (Last Edited: 2014-12-11 15:03) Reply | Quote
Threxx

Avatar

Member for: 3121 days
Location: Brooklyn, NY
Status: Offline

#64296
[quote=Octopus]I really fell in love with FamiTracker, however, when I export as WAV there's that devilish silence gap on both the beginning and end of the track. I don't like it, that destroys completely the purpose of small looping tracks for games. And [b][size=4]I have tried to cut it on Audacity, but I didn't like it that way. 1st) It's never a perfect loop; 2nd) It's time consuming.[/b] So is there any trick that's escaping me to create perfectly looping WAVs on FamiTracker without gaps? Like in gapless playback.[/quote]

Posted: 2014-12-11 19:42  (Last Edited: 2014-12-11 19:44) Reply | Quote
cak

Avatar

Member for: 4314 days
Location: oregon
Status: Offline

#64300
Seems like the start gap is always the same (~3734 samples at 44100 16-bit), but the end gap varies. The best method for manual trimming is to export a WAV with the song playing twice, trim the beginning, then trim to the first loop.

_______________________
[url=http://2a03.free.fr/?p=pub&dir=cak]Famicom tunes
Posted: 2014-12-11 20:55  (Last Edited: 2014-12-11 21:02) Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 days
Location: Sweden
Status: Offline

#64301
The start gap will also vary slightly depending on the audio buffer length.

The reason for this is because WAV export was done by just saving the audio buffer data that otherwise would have been played through the speakers, and the audio buffers are not in sync with the NES audio emulation. It won't be hard to fix though.

_______________________
Programmer and developer
Posted: 2014-12-12 03:06  (Last Edited: 2014-12-12 03:08) Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#64308
[quote=Threxx][quote=Octopus]... And [b][size=4]I have tried to cut it on Audacity, but I didn't like it that way. 1st) It's never a perfect loop; 2nd) It's time consuming.[/b] ...[/quote][/quote]

Nice abuse of BB code; that's still no excuse for Octopus to not take the time & initiative to improve his skills in cutting & stitching audio (especially since the whole hobby of music composition is one that requires patience & tedious concentration). Hell; I wouldn't mind teaching him how to stitch & cut audio in a timeline, considering how it's not that difficult a task (unless you're not willing to learn anything new & improve yourself).

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Posted: 2014-12-12 03:12 Reply | Quote
Xyz_39808

Avatar

Member for: 4180 days
Location: South Texas
Status: Offline

#64309
I just wanna put in my 2 cents that since I work with DSP quite often, I actually prefer for the preceding silence to be there and would be slightly inconvenienced to have it removed from wav export.

Posted: 2014-12-12 04:01  (Last Edited: 2014-12-12 04:03) Reply | Quote
Octopus



Member for: 2750 days
Status: Offline

#64310
It's not that I'm not willing to learn, it's just that I feel that some options should be natural. FamiTracker is associated with games, some games, if not all, work with loops, so it would appear natural to me that the program could export perfect loops. If we wanted some silence on both start and end of the track, we would just add / track that silence on the tracker itself.

Even if I tried to cut it out on audacity or in another wav editor, there will always be some artifacts left behind - it wouldn't be as perfect as an automated process. And I'm a bit paranoid about this, I verify every single album on my iPod to see if it's gapless, if it's not, my ear will detect it. I really can't stand beeps, bops or little noise effects when the tracks are transitioning - it breaks the mood. x)

So, for the time being, I'll just compose the musics for my little game, hoping that in the future the gapless wav option is added. Thanks for all. :D

Posted: 2014-12-12 04:47 Reply | Quote
Xyz_39808

Avatar

Member for: 4180 days
Location: South Texas
Status: Offline

#64312
The proper looping format is to export to .nsf. If you plan to work with .wav or .ogg to loop, then you should really invest the time in learning how to edit those formats.

Posted: 2014-12-13 00:43 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#64322
Thanks for clearing that up, Octopus.

Also, as per Xyz_39808's comment, there actually is a library written by cpow that handles NSF files (it's a library similar to uFMOD, a library made to handle XM files in such programs as keygens, demos & games). This, though, would also require you to know how to program the game & take advantage of the library.

Otherwise, just as was said, if you're willing to invest the time to compose your own music, maybe you should invest some time to master music editing, because there are ways to mitigate those artifacts that you're so paranoid about.

_______________________
Technology: the one thing that's hated & cursed at by all engineers, technologists, scientists & technicians!

(Lousy modern technology! )
Page 1 of 1 Sort: