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 > DPCM conversation to RAW waveforms Owner: 8BitZtuner New post
Page 1 of 2 Sort: Goto Page: [1] [2] Next >>
DPCM conversation to RAW waveforms Posted: 2014-09-09 15:49 Reply | Quote
8BitZtuner

Avatar

Member for: 3146 days
Location: Germany
Status: Offline

#61690
Is there a tool that you can import a .dmc file which converts the bytes into raw waveforms? Maybe in Audacity?

Posted: 2014-09-09 16:05 Reply | Quote
Roflo

Avatar

Member for: 2973 days
Location: Germany
Status: Offline

#61692
What are raw waveforms? Maybe you mean PCM formats, like a .wav file. Asking google results in this:
http://www.pineight.com/nes/#18
(bottom of site)


Posted: 2014-09-09 16:09 Reply | Quote
8BitZtuner

Avatar

Member for: 3146 days
Location: Germany
Status: Offline

#61694
Not a ripper. I mean like something that converts the DPCM values into a headerless wave file. It's hard to explain.


Posted: 2014-09-09 17:14 Reply | Quote
Alexander283

Avatar

Member for: 2912 days
Location: Germany
Status: Offline

#61702
Rush Jet DMC (RJDMC) has a function that allows you to export a .dmc to a .wav

Hope that helps you

_______________________
The purpose of a programming language is to protect the computer against the programmer.
Attachments:
rjdmc.exe (96 Kb)
Posted: 2014-09-10 02:36 Reply | Quote
8BitZtuner

Avatar

Member for: 3146 days
Location: Germany
Status: Offline

#61721
Nononono!
What I mean is, that it converts the DPCM values into a raw waveform, like the 7-Bit output of the DPCM when raw samples are played.

Posted: 2014-09-10 02:52  (Last Edited: 2014-09-10 02:54) Reply | Quote
VinylScratch

Avatar

Member for: 3554 days
Location: Nebraska
Status: Offline

#61722
Are you asking if there's a program that can convert a DMC file to 7-bit raw PCM data that's playable on NES hardware? If so, then unfortunately I don't know if there are any programs out there like that.

_______________________
[url=https://soundcloud.com/dj-dimeback]Soundcloud | [url=http://www.youtube.com/user/ITGpwnage]Youtube
Posted: 2014-09-10 03:05 Reply | Quote
Xyz_39808

Avatar

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

#61723
uhhhhhhhhhhhhhhhhhhhhhhhhh

Play your dmc in a module
File>Create Wav

Posted: 2014-09-10 03:29 Reply | Quote
jrlepage
Moderator

Avatar

Member for: 4983 days
Location: Canada
Status: Offline

#61724
I feel so stupid for never thinking of that.

_______________________
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: 2014-09-10 10:16  (Last Edited: 2014-09-10 11:04) Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 days
Location: Sweden
Status: Offline

#61733
Use any program that can create a wave file from the sample and then use audacity to save it as a raw file.

This will resample it though.

_______________________
Programmer and developer
Posted: 2014-09-10 12:55 Reply | Quote
8BitZtuner

Avatar

Member for: 3146 days
Location: Germany
Status: Offline

#61735
[quote=VinylScratch]Are you asking if there's a program that can convert a DMC file to 7-bit raw PCM data that's playable on NES hardware? If so, then unfortunately I don't know if there are any programs out there like that.[/quote]

I think Vinyl get it.
Well, it mustn't be a program, can be a nyquist tool for Audacity that someone can write.

Posted: 2014-09-10 15:20 Reply | Quote
za909

Avatar

Member for: 3963 days
Location: Hungary
Status: Offline

#61736
If you sample the DPCM by recording a .wav of it in Famitracker, you can get it fairly accurately, and without sound card noise. Then you can use it with anything that allows you to utilize the raw playback of the NES (Deflemask,Pornotracker,etc.)

_______________________
Rectangular sh*t ©
Posted: 2014-09-11 05:53 Reply | Quote
Jarhmander

Avatar

Member for: 5900 days
Status: Offline

#61767
[quote=8BitZtuner][quote=VinylScratch]Are you asking if there's a program that can convert a DMC file to 7-bit raw PCM data that's playable on NES hardware? If so, then unfortunately I don't know if there are any programs out there like that.[/quote]

I think Vinyl get it.
Well, it mustn't be a program, can be a nyquist tool for Audacity that someone can write.[/quote]
Well, such a tool doesn't seem to exist suprisingly, but that's easy to do anyway. Is a python script ok?

Posted: 2014-09-11 14:39 Reply | Quote
8BitZtuner

Avatar

Member for: 3146 days
Location: Germany
Status: Offline

#61774
Sure. It just has to work with Linux too :P

Posted: 2014-09-12 08:26  (Last Edited: 2014-09-12 23:12) Reply | Quote
Jarhmander

Avatar

Member for: 5900 days
Status: Offline

#61806
I wrote the utility using Python in like, 30 min? This means do not expect production quality code, but it should do the job:

[quote=]$ ./dmc2raw.py <(echo -ne 'UU\0\0\xFF\xFF\0\0\0\0\0\0\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF' ) >(xxd)
0000000: 4240 4240 4240 4240 4240 4240 4240 4240 B@B@B@B@B@B@B@B@
0000010: 3e3c 3a38 3634 3230 2e2c 2a28 2624 2220 ><:86420.,*(&$"
0000020: 2224 2628 2a2c 2e30 3234 3638 3a3c 3e40 "$&(*,.02468:<>@
0000030: 3e3c 3a38 3634 3230 2e2c 2a28 2624 2220 ><:86420.,*(&$"
0000040: 1e1c 1a18 1614 1210 0e0c 0a08 0604 0200 ................
0000050: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000060: 0204 0608 0a0c 0e10 1214 1618 1a1c 1e20 ...............
0000070: 2224 2628 2a2c 2e30 3234 3638 3a3c 3e40 "$&(*,.02468:<>@
0000080: 4244 4648 4a4c 4e50 5254 5658 5a5c 5e60 BDFHJLNPRTVXZ\^`
0000090: 6264 6668 6a6c 6e70 7274 7678 7a7c 7e7e bdfhjlnprtvxz|~~
00000a0: 7e7e 7e7e 7e7e 7e7e ~~~~~~~~[/quote]

Use freely, modify it, without restriction; I don't care of what anyone does with it.

EDIT: Only the attachment changed. Changed the shebang to [#!/usr/bin/env python2].


Attachments:
dmc2raw.zip (1 Kb)
Posted: 2014-09-12 10:40 Reply | Quote
jsr
Administrator

Avatar

Member for: 5925 days
Location: Sweden
Status: Offline

#61807
Jarhmander: I made a ZIP file of that attachment since the server apparently didn't like .py-files.

_______________________
Programmer and developer
Page 1 of 2 Sort: Goto Page: [1] [2] Next >>