Z80 driver - 4 channels player with volume control.
Moderator: Mask of Destiny
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Z80 driver - 4 channels player with volume control.
Lately i had to rewrite my 4ch player Z80 driver as i lost some sources :-/ Wasn't that bad after all as i was capable to improve it and get more "free time" than my first shoot. I have about 48 free slots (/256), a bit less than 20% of Z80 time which is enough to handle some YM2612 or/and PSG command
Finally i decided to add volume control with this available time.
I couldn't do more than 16 levels volume control because of Z80 ram limitation. The driver is only handling channel volume for now but i think i can add global volume with the 8 free slots leaving :p
You can download the rom here (the rom name is pl4ch_01.bin)
This driver gimme some ideas as doing a MOD converter : we can build samples at all needed rates and handle ADSR envelop "in software" by adjusting envelop on the fly (once by frame should be ok) X'D
Finally i decided to add volume control with this available time.
I couldn't do more than 16 levels volume control because of Z80 ram limitation. The driver is only handling channel volume for now but i think i can add global volume with the 8 free slots leaving :p
You can download the rom here (the rom name is pl4ch_01.bin)
This driver gimme some ideas as doing a MOD converter : we can build samples at all needed rates and handle ADSR envelop "in software" by adjusting envelop on the fly (once by frame should be ok) X'D
Last edited by Stef on Sun Feb 22, 2009 4:56 pm, edited 1 time in total.
Re: Z80 driver - 4 channels player with volume control.
Link does not work, empty page.
No pitch effects then (arpeggio, slides, portamento, vibrato), or you'll need very many samples.Stef wrote:we can build samples at all needed rates
Last edited by Shiru on Sun Feb 22, 2009 4:48 pm, edited 1 time in total.
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
Also cannot get anything :/
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: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Z80 driver - 4 channels player with volume control.
Does MOD support all that ?? well i suppose i've been optimist :pShiru wrote:Link does not work, empty page.
No pitch effects then (arpeggio, slides, portamento, vibrato), or you'll need very many samples.Stef wrote:we can build samples at all needed rates
anyway we can have a sort of very simple MOD player i guess
http://www.k9spud.com/traxmod/modplayer/effects.phpDoes MOD support all that ??
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
hmmm ok so MOD won't be that easy ^^mic_ wrote:http://www.k9spud.com/traxmod/modplayer/effects.phpDoes MOD support all that ??
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
now it works, pretty nice, and quality is very good too
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
Re: Z80 driver - 4 channels player with volume control.
Yes, but it will barely usable because of many drawbacks:Stef wrote:anyway we can have a sort of very simple MOD player i guess ;)
- It will require to write new music for it (taking all limitations in account)
- To compensate lack of pitch effects longer samples will be needed (takes more memory itself, and much more when duplicated with all pitches)
- Music data will be large anyway
- Not very suitable for games, because no sampled sound effects (or muting music channels, which is sounds bad, or 2-3 channels music, or lower quality of sound to make additional channels for effects)
-
- Very interested
- Posts: 3131
- Joined: Thu Nov 30, 2006 9:46 pm
- Location: France - Sevres
- Contact:
Re: Z80 driver - 4 channels player with volume control.
True, not very suitable for real use afaik... just a proof of conceptShiru wrote:Yes, but it will barely usable because of many drawbacks:Stef wrote:anyway we can have a sort of very simple MOD player i guess
- It will require to write new music for it (taking all limitations in account)
- To compensate lack of pitch effects longer samples will be needed (takes more memory itself, and much more when duplicated with all pitches)
- Music data will be large anyway
- Not very suitable for games, because no sampled sound effects (or muting music channels, which is sounds bad, or 2-3 channels music, or lower quality of sound to make additional channels for effects)
-
- Very interested
- Posts: 2440
- Joined: Tue Dec 05, 2006 1:37 pm
- Location: Estonia, Rapla City
- Contact:
http://www.fileden.com/files/2008/4/21/ ... 4ch_01.rar
a mirror, for people who might get further trouble accessing Stef's link
a mirror, for people who might get further trouble accessing Stef's link
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
Stef wrote:ThanksTmEE co.(TM) wrote:now it works, pretty nice, and quality is very good too
Strangely the quality is better than my first driver which was using similar code at the same output rate :-/
I often find I write something better the second time around Probably some bug, typo, or timing error that was too easy to miss.