
SNES music program
Moderator: Moderators
Forum rules
- For making cartridges of your Super NES games, see Reproduction.
Re: SNES music program
Well, he could develop a mic that passes data via the controller or expansion ports 

-
- Posts: 2904
- Joined: Wed May 19, 2010 6:12 pm
Re: SNES music program
I've updated it quite a bit.
To make a user defined instrument, set the instrument parameter to 3, and press left or right to go to the user defined instrument screen. Sample size is (N+1)16 where $0000 is 16 samples, and $03FF is 16384 samples. You can mix up to 4 oscillators. The "wave" parameter doesn't do anything yet so just ignore it. A frequency of $0400 is "normal". In order to hear it, you must press render to update the BRR sample to the SPC700 chip.
To make a user defined instrument, set the instrument parameter to 3, and press left or right to go to the user defined instrument screen. Sample size is (N+1)16 where $0000 is 16 samples, and $03FF is 16384 samples. You can mix up to 4 oscillators. The "wave" parameter doesn't do anything yet so just ignore it. A frequency of $0400 is "normal". In order to hear it, you must press render to update the BRR sample to the SPC700 chip.
- Attachments
-
- music program.zip
- (21.68 KiB) Downloaded 353 times
- Drew Sebastino
- Formerly Espozo
- Posts: 3503
- Joined: Mon Sep 15, 2014 4:35 pm
- Location: Richmond, Virginia
Re: SNES music program
What are the controls? I can move the cursor around, but I haven't been able to make anything happen beyond that, unfortunately. It might be a good idea to include a readme file at some point for if you plan on distributing it outside of NESDev. Fantastic work, by the way.
-
- Posts: 2904
- Joined: Wed May 19, 2010 6:12 pm
Re: SNES music program
It uses the keyboard and the mouse.
- Drew Sebastino
- Formerly Espozo
- Posts: 3503
- Joined: Mon Sep 15, 2014 4:35 pm
- Location: Richmond, Virginia
Re: SNES music program
Okay, I see now. I wasn't expecting whatever is mapped to the start button to enable you to modify the values.
-
- Posts: 2904
- Joined: Wed May 19, 2010 6:12 pm
Re: SNES music program
I've been starting to work on this thing again, and I'm wondering how much of a difference there will be between a BRR sample using only filter 0 (raw 16-bit PCM) blocks and a BRR using all 4 filters. I got the range bits working, but not the filter bits.
Re: SNES music program
The filter bits "just" let you trade off some amount of sharpness for some amount of reduction of quantization noise. As to how to decide when is appropriate? Last time I said to pick it as a function of what desired frequencies exist in your output, and use the filters to remove higher harmonic content.
-
- Posts: 2904
- Joined: Wed May 19, 2010 6:12 pm
Re: SNES music program
1: square
2: 25% pulse
3: 12.5% pulse
4: sawtooth
The part that does BRR sample conversion automatically decides if sample blocks use filter 0 or filter 1. I didn't implement anything with filter 2 or filter 3 yet.
-
- Posts: 2904
- Joined: Wed May 19, 2010 6:12 pm
Re: SNES music program
I just got the system to do a complete conversion from PCM to BRR. I think I'll hold off posting an update until I have some more features. I think I'll do add FM synth next.