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 > FamiTracker Talk > Got a question about .Wav Export Owner: insomniacovrlrd New post
Page 1 of 2 Sort: Goto Page: [1] [2] Next >>
Got a question about .Wav Export Posted: 2013-08-23 09:51  (Last Edited: 2013-08-23 10:41) Reply | Quote
insomniacovrlrd

Avatar

Member for: 3259 days
Location: US : Florida
Status: Offline

#50749
Namely, the files produced have a little bit of dead space at the start and end. This makes the files as they are unusable to be shoved into a game for homemade loops~

Is there something i can do in famitracker to remove this empty space? Or will i have to fiddle with audacity to chop the wavs ends off? It seems a bit imprecise to do that after such a specific process goes into composing them.

What do you guys recommend? Am I doing it wrong?

EDIT:

The workaround i'm using at the moment is to have famitracker export what would amount to 3 loops, then going into audacity, and chopping parts 1 and 3 out. This provides me with any of the ...er...roll-over from the end of a pattern to the start, and i can apparently find the loop points in audacity by ear. It's a tedious chore, but it's working. Any input would still be greatly appreciated~

Posted: 2013-08-23 18:47 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#50752
Yeah, chopping the silence in a program like Audacity, SoundForge or any other audio editor seems like the way to go. That's what I do anyway.

_______________________
Follow me on [url=https://twitter.com/jrlepage2a03]Twitter.
I record (some) NSFs on hardware. Feel free to [url=http://www.famitracker.com/forum/posts.php?id=3633]request a hardware render.
Posted: 2013-08-23 22:08 Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#50757
I second what jrlepage said. The best thing to do is to remove the dead space manually in an audio editor.

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

(Lousy modern technology! )
Posted: 2013-08-24 04:13 Reply | Quote
cak

Avatar

Member for: 4314 days
Location: oregon
Status: Offline

#50767
If you wanna make it a little easier on yourself, you can try one of two things. Use silence detect/delete (I think Audacity has this feature...not sure). Or, save the wav as a txt file, delete the "0"s from the beginning and end of the text, and reimport/save as wav.

Personally, I just use Goldwave and do manual editing with the zooming feature.

_______________________
[url=http://2a03.free.fr/?p=pub&dir=cak]Famicom tunes
Posted: 2013-08-24 04:30 Reply | Quote
SketchMan3

Avatar

Member for: 3297 days
Status: Offline

#50768
Is there a reason for the dead space at the beginning and ends of the wav exports?

Posted: 2013-08-24 05:57 Reply | Quote
Xyz_39808

Avatar

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

#50769
Audacity's zoom feature and it's ZeroCrossing tool work just fine. (also, click the bar just left of the wave to zoom in vertically, right click to zoom out)

Posted: 2013-08-24 06:21 Reply | Quote
insomniacovrlrd

Avatar

Member for: 3259 days
Location: US : Florida
Status: Offline

#50770
Thanks a ton for all the advice, guys!

Posted: 2013-08-24 14:43 Reply | Quote
SketchMan3

Avatar

Member for: 3297 days
Status: Offline

#50778
Is it just to make stuff like this harder to do? Is it projecting the edges from being clipped out? It seems like sort of a backwards thing to do with a music exporting function if it isn't completely necessary for preserving the integrity of the exported audio. I'd much rather have to add silence into the track if needed rather than have to clip tiny snips to make a loop.

Posted: 2013-08-25 05:25 Reply | Quote
Xyz_39808

Avatar

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

#50796
Usually, for any project involving raw .wav, it is preferable to have extra blank space padding either direction to do your DSP needed. It's not usual for a .wav project to be intended to loop.
(that's what nsf is for \o/)

Posted: 2013-08-25 07:07 Reply | Quote
insomniacovrlrd

Avatar

Member for: 3259 days
Location: US : Florida
Status: Offline

#50799
Oh. The game is, at this point mostly ported to java. It actually uses .ogg, but unless there's some code laying around to play nsf's inside the game itself, the process to get music from here to there is compose > Export .wav > chop bits off each end > Convert to .ogg > place in game's music folder.

I am unfortunately not a programmer, just an asset guy~


Posted: 2013-08-26 00:19  (Last Edited: 2013-08-26 00:19) Reply | Quote
TechEmporium

Avatar

Member for: 4485 days
Status: Offline

#50820
You could try looking in Blargg's home page.

[url=http://slack.net/~ant/]http://slack.net/~ant/
[url=http://slack.net/~ant/old/gme_java/]http://slack.net/~ant/old/gme_java/

You could also ask him about getting NSFs to work in your Java game on the NESDev forum. But honestly, it might be easier for you to stick with standard audio libraries instead.

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

(Lousy modern technology! )
Going to talk about WAV export again Posted: 2014-03-21 00:53  (Last Edited: 2014-03-21 00:54) Reply | Quote
insomniacovrlrd

Avatar

Member for: 3259 days
Location: US : Florida
Status: Offline

#55455
Into my second project, i'm again doing all the music and sound for a game in famitracker. Being a game done in java, at the moment we're still using traditional file formats for the music. Ogg vorbis, converted from .wav.

I'm being a bit more particular with the music in this one, and i'm finding that it's very very difficult to mask the loop points. As i mentioned months ago, when you export a frame (or many) in famitracker as a .wav, it adds a bit of empty space to the beginning, and then at the end. The amount of empty space added to each side is not equal, the end having less of it than the start.

Simply trimming the space isn't enough, unfortunately. With this example ftm, when you export the wav, it truncates a bit of the final line in the pattern. I've doubled the pattern, re-exported and compared the loop point in audacity. There's a noticeable chunk of sound just missing at the end.

I don't expect anyone to load up my ftm, put it into audacity and see precisely what i'm talking about, but i would like to know why this space/slight trim of the end of the track happens. Famitracker is a wonderful tool, but i'm running into some serious snags with the exports.

And yes, we could look into adding nsf support? But that's not really the issue here. I'd like to know what's up with the wave export. If anyone knows what's up, please do tell!

Thanks for the time, guys~

EDIT : Crap. This was supposed to be a new thread. Didn't mean to drag it up, but whatever i guess. Should i newthread it, or just leave as is?


Attachments:
forum_example.ftm (22 Kb)
Posted: 2014-03-21 01:19  (Last Edited: 2014-03-21 01:21) Reply | Quote
Xyz_39808

Avatar

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

#55462
I don't think this is so much a problem with FT as it is with your inability to use a wave editor fluently.

This took me 2 minutes to do

Export 2 repeats of the song. Import in Audacity, find a zero crossing where the 2nd loop starts, select that point and everything to the right. Cut. Select zerocrossing where the signal begins and everything to the left. Cut. Shift+Space to check results


Attachments:
loop.wav (459 Kb)
Posted: 2014-03-21 01:30 Reply | Quote
insomniacovrlrd

Avatar

Member for: 3259 days
Location: US : Florida
Status: Offline

#55464
Oh.

Well alright. The space at the beginning doesn't seem to lose any information, so trimming that IS fine without any real work. Determining exactly where the loop point is a little trial and error, but it's doable.

I would ask though, why do you have to have it do a repeat? Why does famitracker not export the final line of the pattern fully unless you have it keep going into a repeat?

Thanks for the explanation on the simplest procedure for doing this in audacity. It'll make doing songs with intros that only play once a bit of a pain, but i guess some things just aren't easy.

I'm still curious as to the technical 'why' for the truncated information at the end though~

Posted: 2014-03-21 01:34 Reply | Quote
Xyz_39808

Avatar

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

#55465
because the DAC is emulated too I guess and an offset if produced

Page 1 of 2 Sort: Goto Page: [1] [2] Next >>