MIDI player for the SPC, any interest ?

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.
tepples
Posts: 22345
Joined: Sun Sep 19, 2004 11:12 pm
Location: NE Indiana, USA (NTSC)
Contact:

Re: MIDI player for the SPC, any interest ?

Post by tepples »

KungFuFurby wrote:Yeah, the worst part about doing it in real-time is you're at the mercy of the SNES's clock speed, which is 60hz or 50hz, depending on NTSC and PAL settings.
Yet NES games had no problem with clocking the music engine at 50 or 60.1 Hz. How many NSFs actually use an update period faster than 16640 µs (NTSC) or 20000 µs (PAL)?
User avatar
thefox
Posts: 3139
Joined: Mon Jan 03, 2005 10:36 am
Location: Tampere, Finland
Contact:

Re: MIDI player for the SPC, any interest ?

Post by thefox »

Bregalad wrote:Unfortunately, the 65c816 has no custom timer or anything like that, it would probably have to update it's MIDI parsing-and-playing code at a 60Hz, which is very slow.
Disclaimer: I don't know anything about SPC/SNES, but even if the parsing code runs at 60 Hz, wouldn't it be possible to buffer the events in SPC RAM so that the SPC code could process them at a higher rate?
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: fo.aspekt.fi
Shiru
Posts: 1161
Joined: Sat Jan 23, 2010 11:41 pm

Re: MIDI player for the SPC, any interest ?

Post by Shiru »

SPC700 is a bit slow, but it should be possible. If I remember correctly, I tried 200 Hz update in my music player, and it worked (8 channels). However, there is a problem with clicks when a new sample replaces another sample. To avoid this, you need to do a key off, wait for some time while sound fades out smoothly, then start a new sound. This makes high update rates not so useful.
Post Reply