News: 11 March 2016 - Forum Rules
Current Moderators - DarkSol, KingMike, MathOnNapkins, Azkadellia, Danke

Author Topic: SNES music (.SPC) modification  (Read 5158 times)

stolenfat

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
SNES music (.SPC) modification
« on: May 13, 2011, 02:00:59 am »
I'd like to be able to modify the tempo of my favorite SPC tracks... is it possible to do?

Any ideas out there?

I've tried time stretching but it results in audio crippled by artifaction.

(I'd also be interested in changing the samples if that's possible.)

Nightcrawler

  • Hero Member
  • *****
  • Posts: 5787
    • View Profile
    • Nightcrawler's Translation Corporation
Re: SNES music (.SPC) modification
« Reply #1 on: May 13, 2011, 10:20:31 am »
Yes, it's possible to do both. To change the tempo of an SPC file, you'd need to either understand the underlying music format to change the note lengths, or edit the underlying assembly driver code to play everything faster. Each game can be different, but typically games made by the same company use the same or similar format and engine. It's probably more work than it's worth.

Changing the samples is a matter of replacing the BRR samples with one of the same or smaller size. If you have a bigger one, you'll most likely have to shift all the other samples and change the pointers to them.

Another idea is to see if any SPC players allow you simply to clock faster and speed it up that way.

Lastly, it's also possible to convert an SPC to MIDI and then you can play it in your favorite MIDI and play with the tempo all you want.
TransCorp - Over 20 years of community dedication.
Dual Orb 2, Wozz, Emerald Dragon, Tenshi No Uta, Glory of Heracles IV SFC/SNES Translations

stolenfat

  • Jr. Member
  • **
  • Posts: 7
    • View Profile
Re: SNES music (.SPC) modification
« Reply #2 on: May 13, 2011, 07:30:45 pm »
well i managed to figure it out...

first i used SPCtool to export into IT format, then used a mod tracker to modify further.

Eazy Peazy, was just really hard to find the information on how to.

Bregalad

  • Hero Member
  • *****
  • Posts: 2755
    • View Profile
Re: SNES music (.SPC) modification
« Reply #3 on: May 14, 2011, 08:32:43 am »
It's very easy to change the tempo in SPC files : The SPC itselfs is clocked by 3 8-bit timers, so if you change the period of those timers the tempo will be affected. (typically only the first timer is used)

The 3 timers are located at 0x1fa, 0x1fb and 0x1fc. You will almost always be able to change the tempo this way (the bigger the number, the slower).