Problem with TFM music replay - distorted sound
Posted: Mon Oct 10, 2011 7:32 pm
Hi guys, new member here!
I'm looking to write some demos for the Megadrive, but I'm more of a graphics-effect type of coder, so I'm looking for a kind of a plug-and-play solution for the music.
I found Shiru's TFM Music Maker, which seemed to be a good match, an editor, lots of example music and some nice source-code example for the replayer.
I got some stuff up and running, sounded wonderfully in emulator. But then I purchased a real Megadrive console and an Everdrive MD, and when I trid my ROM, the music sounded very distorted, almost like it is being heavily clipped.
And I don't think it is an isolated problem with my code, because I tried this ready-made replayer bin
viewtopic.php?t=691
the sound was equally distorted.
Then I noticed when running the Bassfish/Speckdrumm demo that they also had the same type of sound distortion. When reading the comments at Pouet (http://pouet.net/prod.php?which=50188) everyone who had run the demo on real hardware had the same problem.
Now I'm not sure if they used TFM music in that demo, but it seems to me that there is some kind of problem with replaying chip music on the YM2612 that gives these kind of problems. In the Pouet comments someone commented that "...Sounds like what you get when you configure the FM operator "Total Level" values incorrectly."
I'm not sure if that is a clue for anyone?
Anyway, I can also say that there is no hardware problem with my console, music in games sounds just fine.
So, anyone have any ideas on how to fix this problem, either by giving tips on how to make the TFM-replay sound correct, or have any tips of other music replay routines/trackers that I could use instead? Preferably not too CPU-hungry as well!
-edit-
I just found the following in the documentation for TFM Music Maker:
"Note: do not use too low (close to zero) values for TL of slots, it can cause to distortion of sound. Acceptable range of values is 5..25, depending from how much instruments sounds at once. "
I have no idea what what "TL of slots" mean however (I don't understand music/composing at all, I just want to play the tunes!)
I am doing my testing using the example tunes included with TFM Music Maker, perhaps most of them use low "TL of slots", so that's what causing it...?
I'm looking to write some demos for the Megadrive, but I'm more of a graphics-effect type of coder, so I'm looking for a kind of a plug-and-play solution for the music.
I found Shiru's TFM Music Maker, which seemed to be a good match, an editor, lots of example music and some nice source-code example for the replayer.
I got some stuff up and running, sounded wonderfully in emulator. But then I purchased a real Megadrive console and an Everdrive MD, and when I trid my ROM, the music sounded very distorted, almost like it is being heavily clipped.
And I don't think it is an isolated problem with my code, because I tried this ready-made replayer bin
viewtopic.php?t=691
the sound was equally distorted.
Then I noticed when running the Bassfish/Speckdrumm demo that they also had the same type of sound distortion. When reading the comments at Pouet (http://pouet.net/prod.php?which=50188) everyone who had run the demo on real hardware had the same problem.
Now I'm not sure if they used TFM music in that demo, but it seems to me that there is some kind of problem with replaying chip music on the YM2612 that gives these kind of problems. In the Pouet comments someone commented that "...Sounds like what you get when you configure the FM operator "Total Level" values incorrectly."
I'm not sure if that is a clue for anyone?
Anyway, I can also say that there is no hardware problem with my console, music in games sounds just fine.
So, anyone have any ideas on how to fix this problem, either by giving tips on how to make the TFM-replay sound correct, or have any tips of other music replay routines/trackers that I could use instead? Preferably not too CPU-hungry as well!
-edit-
I just found the following in the documentation for TFM Music Maker:
"Note: do not use too low (close to zero) values for TL of slots, it can cause to distortion of sound. Acceptable range of values is 5..25, depending from how much instruments sounds at once. "
I have no idea what what "TL of slots" mean however (I don't understand music/composing at all, I just want to play the tunes!)
I am doing my testing using the example tunes included with TFM Music Maker, perhaps most of them use low "TL of slots", so that's what causing it...?