-
Notifications
You must be signed in to change notification settings - Fork 122
Description
Hi,
First of all, I just wanted to say thanks for the awesome DAW! I've had a really good time working with FamiStudio so far, so I just wanted to say thanks for all the work that people have put into the project.
I'm currently running a Linux build on version 4.4.2. My goal is to export the song in such a way that I can include it in an iNES ROM (currently configured to support either the MMC1 or MMC3 mappers), assembled using ca65.
My current approach is using the MMC3 mapper, with the intent of swapping $C000-$DFFF in memory to load new DMC files (because I have way too many of them) for song playback whenever necessary. My memory config contains segments for each 8KB worth of samples:
DPCM0: load = PRG_SAMPLES, type = ro, offset = $00000; # Bank 0
DPCM1: load = PRG_SAMPLES, type = ro, offset = $02000; # Bank 1
DPCM2: load = PRG_SAMPLES, type = ro, offset = $04000; # Bank 2
... # 32 8KB banksand my code includes these samples:
.segment "DPCM0"
.incbin "sample0.dmc"
.segment "DPCM1"
.incbin "sample1.dmc"
... # other memory segmentsHowever, I haven't been able to find a way to export each used DPCM Sample as a dmc file. I set the corresponding bank numbers for each sample in the editor (the song can be seen below)
but when I export FamiStudio Music Code with the settings below, there's only a single dmc file.
I'm completely new to NES development, so I'm sure I'm misunderstanding something or missing some information. I was able to get playback for the other 4 channels to function properly on export using the ca_65 audio engine, but any approach at DPCM that I've made thus far has just resulted in garbage noise.
Any help or guidance that you can provide is appreciated! Please let me know if there's more information that I can provide that might be helpful for assisting.
Best,
Xander