GenDev SpritesMind Website SpritesMind.Net
Sega Megadrive/Genesis development
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Z80 driver - 4 channels player with volume control.
Goto page 1, 2  Next
 
Post new topic   Reply to topic    SpritesMind.Net Forum Index -> Demos
View previous topic :: View next topic  
Author Message
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 4:24 pm    Post subject: Z80 driver - 4 channels player with volume control. Reply with quote

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 Smile

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
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mic_
Very interested


Joined: 12 Aug 2008
Posts: 250
Location: Sweden

PostPosted: Sun Feb 22, 2009 4:47 pm    Post subject: Reply with quote

Quote:
You can download the rom here.

The page briefly displays some message in french, then it goes blank and nothing happens.
Back to top
View user's profile Send private message Visit poster's website
Shiru
Very interested


Joined: 07 Apr 2007
Posts: 786
Location: Russia, Moscow

PostPosted: Sun Feb 22, 2009 4:48 pm    Post subject: Re: Z80 driver - 4 channels player with volume control. Reply with quote

Link does not work, empty page.

Stef wrote:
we can build samples at all needed rates

No pitch effects then (arpeggio, slides, portamento, vibrato), or you'll need very many samples.


Last edited by Shiru on Sun Feb 22, 2009 4:48 pm; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TmEE co.(TM)
Very interested


Joined: 05 Dec 2006
Posts: 1941
Location: Estonia, Mahtra village

PostPosted: Sun Feb 22, 2009 4:55 pm    Post subject: Reply with quote

Also cannot get anything :/
_________________
Mida sa loed ? Nagunii aru ei saa Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 4:56 pm    Post subject: Reply with quote

sorry, i fixed the link !
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 4:58 pm    Post subject: Re: Z80 driver - 4 channels player with volume control. Reply with quote

Shiru wrote:
Link does not work, empty page.

Stef wrote:
we can build samples at all needed rates

No pitch effects then (arpeggio, slides, portamento, vibrato), or you'll need very many samples.


Does MOD support all that ?? well i suppose i've been optimist :p
anyway we can have a sort of very simple MOD player i guess Wink
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
mic_
Very interested


Joined: 12 Aug 2008
Posts: 250
Location: Sweden

PostPosted: Sun Feb 22, 2009 5:10 pm    Post subject: Reply with quote

Quote:
Does MOD support all that ??

http://www.k9spud.com/traxmod/modplayer/effects.php
Back to top
View user's profile Send private message Visit poster's website
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 5:16 pm    Post subject: Reply with quote

mic_ wrote:
Quote:
Does MOD support all that ??

http://www.k9spud.com/traxmod/modplayer/effects.php


hmmm ok so MOD won't be that easy ^^
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TmEE co.(TM)
Very interested


Joined: 05 Dec 2006
Posts: 1941
Location: Estonia, Mahtra village

PostPosted: Sun Feb 22, 2009 5:20 pm    Post subject: Reply with quote

now it works, pretty nice, and quality is very good too Very Happy
_________________
Mida sa loed ? Nagunii aru ei saa Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Shiru
Very interested


Joined: 07 Apr 2007
Posts: 786
Location: Russia, Moscow

PostPosted: Sun Feb 22, 2009 5:40 pm    Post subject: Re: Z80 driver - 4 channels player with volume control. Reply with quote

Stef wrote:
anyway we can have a sort of very simple MOD player i guess ;)

Yes, but it will barely usable because of many drawbacks:

- 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)
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 5:56 pm    Post subject: Re: Z80 driver - 4 channels player with volume control. Reply with quote

Shiru wrote:
Stef wrote:
anyway we can have a sort of very simple MOD player i guess Wink

Yes, but it will barely usable because of many drawbacks:

- 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)


True, not very suitable for real use afaik... just a proof of concept Smile
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Sun Feb 22, 2009 5:59 pm    Post subject: Reply with quote

TmEE co.(TM) wrote:
now it works, pretty nice, and quality is very good too Very Happy


Thanks Very Happy
Strangely the quality is better than my first driver which was using similar code at the same output rate :-/
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
TmEE co.(TM)
Very interested


Joined: 05 Dec 2006
Posts: 1941
Location: Estonia, Mahtra village

PostPosted: Sun Feb 22, 2009 8:12 pm    Post subject: Reply with quote

http://www.fileden.com/files/2008/4/21/1876835/pl4ch_01.rar

a mirror, for people who might get further trouble accessing Stef's link Smile
_________________
Mida sa loed ? Nagunii aru ei saa Wink
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Stef
Very interested


Joined: 30 Nov 2006
Posts: 1253
Location: France - Sevres

PostPosted: Mon Feb 23, 2009 2:05 pm    Post subject: Reply with quote

Thanks Wink
Unfortunatly i lost my password for my usual FTP so i had to do with this crappy stuff.
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Snake
Very interested


Joined: 13 Sep 2008
Posts: 200

PostPosted: Thu Feb 26, 2009 11:54 pm    Post subject: Reply with quote

Stef wrote:
TmEE co.(TM) wrote:
now it works, pretty nice, and quality is very good too Very Happy


Thanks Very Happy
Strangely the quality is better than my first driver which was using similar code at the same output rate :-/

Very Happy

I often find I write something better the second time around Wink Probably some bug, typo, or timing error that was too easy to miss.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    SpritesMind.Net Forum Index -> Demos All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group