nesdev.com
http://forums.nesdev.com/

SNES music program
http://forums.nesdev.com/viewtopic.php?f=12&t=17564
Page 2 of 2

Author:  calima [ Fri Jul 27, 2018 11:05 am ]
Post subject:  Re: SNES music program

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

Author:  psycopathicteen [ Tue Jan 29, 2019 11:43 am ]
Post subject:  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.

Attachments:
music program.zip [21.68 KiB]
Downloaded 340 times

Author:  Drew Sebastino [ Tue Jan 29, 2019 4:28 pm ]
Post subject:  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.

Author:  psycopathicteen [ Tue Jan 29, 2019 7:06 pm ]
Post subject:  Re: SNES music program

It uses the keyboard and the mouse.

Author:  Drew Sebastino [ Tue Jan 29, 2019 9:48 pm ]
Post subject:  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.

Author:  psycopathicteen [ Tue May 14, 2019 9:50 pm ]
Post subject:  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.

Author:  lidnariq [ Tue May 14, 2019 11:40 pm ]
Post subject:  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.

Author:  psycopathicteen [ Thu May 16, 2019 8:16 pm ]
Post subject:  Re: SNES music program

Attachment:
music engine.zip [22.27 KiB]
Downloaded 235 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.

Author:  psycopathicteen [ Mon May 27, 2019 9:39 am ]
Post subject:  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.

Page 2 of 2 All times are UTC - 7 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/