Making the ultimate Sega Genesis sound driver
Moderator: BigEvilCorporation
-
- Very interested
- Posts: 211
- Joined: Sat Apr 19, 2008 10:58 am
- Location: Frankfurt, Germany
- Contact:
*cough*
^ not entirely sure why people keep ignoring this.. And with a SGDK implementation on the way (almost finished), this should be almost perfect.
I've been experimenting with setting different YM timer values to make it faster. And it works pretty well, but PCM timing must be a bit more smoothed out that way. other than that it's running well
^ not entirely sure why people keep ignoring this.. And with a SGDK implementation on the way (almost finished), this should be almost perfect.
I've been experimenting with setting different YM timer values to make it faster. And it works pretty well, but PCM timing must be a bit more smoothed out that way. other than that it's running well
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Have a native tracker or something... XM sucks
Joking aside, Echo is good stuff
Joking aside, Echo is good stuff
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
I think MIDI import should be a feature in any sound/music library. Thanks mostly to other peoples help (including Shiru) I've been able to play TFM music tracks but importing music has been a dead end.
I'm pretty sure my future is in using SGDK so I hope Echo does make it there.
Oh, and, isn't it Stefs birthday?
I'm pretty sure my future is in using SGDK so I hope Echo does make it there.
Oh, and, isn't it Stefs birthday?
You can use mod plug tracker to convert a midi to a mod file then you can import it vgm maker or tft maker and echo accepts xm files which can also be converted from midi to xm using mod plug tracker.slobu wrote:I think MIDI import should be a feature in any sound/music library. Thanks mostly to other peoples help (including Shiru) I've been able to play TFM music tracks but importing music has been a dead end.
I'm pretty sure my future is in using SGDK so I hope Echo does make it there.
Oh, and, isn't it Stefs birthday?
Also Shiru mentioned that if we wanted to use a 256 byte buffer that it would cause drums to be behind a frame so why not just have the tracker or converter make the drums trigger a frame ahead so it would appear that the drums play correctly when comparing it to the original file.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
I never got syncing issues... it is only matter of placing your commands anyway.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
At 16000 Hz 256 bytes is 1/62 second - it is a TV frame of delay. It could be compensated by shifting drum trigger events. If music player update is not quantized to this value, it is one to two TV frames of delay. It can't be compensated, because the delay vary. Higher sample rates or shorter buffer reduces the delay, so compensation would be not needed.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Actually my system would shift note events to the next 256 samples, so only thing one would get is loss of music speed, out of syncness cannot happen.
Since the setup is YM timer based a fix is just making timer period longer and adjusting the song accordingly.
Since the setup is YM timer based a fix is just making timer period longer and adjusting the song accordingly.
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
-
- Very interested
- Posts: 2984
- Joined: Fri Aug 17, 2007 9:33 pm
A wonderful lib for PCM data is SoX.djcouchycouch wrote:What kind of user tools would have to be created so that users can make content for this ultimate sound driver?
At some times I used it to convert any data to PCM data to raw data at the freq I want. I started a genres plugin but never finished it (like too many others things)
Bonus : it's multi OS
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Oerg866>
Echo is great driver with good sdk and documentation
It also have good support of SFX and it would be a very nice addition to SGDK if you permit it
But technically i think it is very similar to what we already have : 5FM + 1PCM@10 Khz + 4PSG.
I think having more PCM channels and / or variable rate would be a nice addition.
slobu>Hehe yeah it was, and as every year the music festival in the city celebrated my birthday
About the format used for the driver, maybe VGM is not a good solution as too intensive on Z80 to parse, i think the format should be optimized to limit Z80 parse operation time.
This way we could use about 70% of CPU time for PCM mixing and playing and about 30% for the rest (it should be more than enough i guess for both FM and PSG operation if we limit to simple register writes command).
Echo is great driver with good sdk and documentation
It also have good support of SFX and it would be a very nice addition to SGDK if you permit it
But technically i think it is very similar to what we already have : 5FM + 1PCM@10 Khz + 4PSG.
I think having more PCM channels and / or variable rate would be a nice addition.
slobu>Hehe yeah it was, and as every year the music festival in the city celebrated my birthday
About the format used for the driver, maybe VGM is not a good solution as too intensive on Z80 to parse, i think the format should be optimized to limit Z80 parse operation time.
This way we could use about 70% of CPU time for PCM mixing and playing and about 30% for the rest (it should be more than enough i guess for both FM and PSG operation if we limit to simple register writes command).
-
- Very interested
- Posts: 710
- Joined: Sat Feb 18, 2012 2:44 am
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
You will spend a great deal of time waiting behind YM. Z80 is already too fast for YM, and 68K is even faster. One could parse music stuff on 68K and then forward all YM writes to Z80 which will do them.
EA stuff does it from what I know
EA stuff does it from what I know
Mida sa loed ? Nagunii aru ei saa
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen
http://www.tmeeco.eu
Files of all broken links and images of mine are found here : http://www.tmeeco.eu/FileDen