SNES music program

Discussion of hardware and software development for Super NES and Super Famicom.

Moderator: Moderators

Forum rules
  • For making cartridges of your Super NES games, see Reproduction.
calima
Posts: 1000
Joined: Tue Oct 06, 2015 10:16 am

Re: SNES music program

Post by calima » Fri Jul 27, 2018 11:05 am

Well, he could develop a mic that passes data via the controller or expansion ports :P

psycopathicteen
Posts: 2901
Joined: Wed May 19, 2010 6:12 pm

Re: SNES music program

Post by psycopathicteen » Tue Jan 29, 2019 11:43 am

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.
Attachments
music program.zip
(21.68 KiB) Downloaded 348 times

User avatar
Drew Sebastino
Formerly Espozo
Posts: 3503
Joined: Mon Sep 15, 2014 4:35 pm
Location: Richmond, Virginia

Re: SNES music program

Post by Drew Sebastino » Tue Jan 29, 2019 4:28 pm

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.

psycopathicteen
Posts: 2901
Joined: Wed May 19, 2010 6:12 pm

Re: SNES music program

Post by psycopathicteen » Tue Jan 29, 2019 7:06 pm

It uses the keyboard and the mouse.

User avatar
Drew Sebastino
Formerly Espozo
Posts: 3503
Joined: Mon Sep 15, 2014 4:35 pm
Location: Richmond, Virginia

Re: SNES music program

Post by Drew Sebastino » Tue Jan 29, 2019 9:48 pm

Okay, I see now. I wasn't expecting whatever is mapped to the start button to enable you to modify the values.

psycopathicteen
Posts: 2901
Joined: Wed May 19, 2010 6:12 pm

Re: SNES music program

Post by psycopathicteen » Tue May 14, 2019 9:50 pm

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.

lidnariq
Posts: 8708
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

Re: SNES music program

Post by lidnariq » Tue May 14, 2019 11:40 pm

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.

psycopathicteen
Posts: 2901
Joined: Wed May 19, 2010 6:12 pm

Re: SNES music program

Post by psycopathicteen » Thu May 16, 2019 8:16 pm

music engine.zip
(22.27 KiB) Downloaded 243 times
Now you can use 4 waveforms for the additive synth section:
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.

psycopathicteen
Posts: 2901
Joined: Wed May 19, 2010 6:12 pm

Re: SNES music program

Post by psycopathicteen » Mon May 27, 2019 9:39 am

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.

Post Reply