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 

My attempt at 2ch Z80 mixer

 
Post new topic   Reply to topic    SpritesMind.Net Forum Index -> Demos
View previous topic :: View next topic  
Author Message
TmEE co.(TM)
Very interested


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

PostPosted: Sun Jun 24, 2007 8:51 pm    Post subject: My attempt at 2ch Z80 mixer Reply with quote

www.hot.ee/tmeeco/DWNLOADS/MSETEST.RAR

It can play 1ch @ 110KHz, and 2ch @ 52KHz.
This demo plays @ 22KHz or so.

2ch playback is little distorted because of extra jitter, and it sounds faster than 1ch on real HW (LDIR instruction executed faster ?) than on emulator where it sounds slower than 1ch.

A and B buttons make sound.

Thing is not finished though, need to work out sound effect stuff, and music part.
_________________
Mida sa loed ? Nagunii aru ei saa Wink


Last edited by TmEE co.(TM) on Sun Jun 24, 2007 9:10 pm; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
evildragon
Very interested


Joined: 12 Mar 2007
Posts: 326

PostPosted: Sun Jun 24, 2007 9:07 pm    Post subject: Reply with quote

this is awesome :p i never thought this was even possible...
Back to top
View user's profile Send private message Visit poster's website
TmEE co.(TM)
Very interested


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

PostPosted: Sun Jun 24, 2007 9:12 pm    Post subject: Reply with quote

It is, and it sounds lot better on real HW, than on emulators (Fusion sounds nice though). 110KHz is achieved thanks to Stef's idea which he came quite some time ago (see the "How can I do music on MegaDrive" topic on MD stuff forum).
_________________
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
TmEE co.(TM)
Very interested


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

PostPosted: Mon Jun 25, 2007 12:28 pm    Post subject: Reply with quote

Updated the thing, now it sounds much more nicer.

A=Snare drum (ch1)
B=Bass drum (ch0)
C=Crash cymbal(ch1)

There is a weird pop when 2ch are playing, I couldn't get rid of it... any ideas anyone ?

I was drumming whole night yesterday...
_________________
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: Mon Jun 25, 2007 3:23 pm    Post subject: Reply with quote

TmEE co.(TM) wrote:
There is a weird pop when 2ch are playing, I couldn't get rid of it... any ideas anyone ?

Record sound output from emulator to wav and look it in any sound editor, you understand this problem. It's a incorrect DC offset.
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: 1954
Location: Estonia, Mahtra village

PostPosted: Tue Jun 26, 2007 8:14 am    Post subject: Reply with quote

Yes it was... I lowered the volume of one channel playback (so it is as loud as 2ch) but I forgot to add 64 to get "silence" position (128), it was 64, and when 2ch played, jump from 64 to 128 caused a pop. Now it is fixed and works great !!!

Upadated again.
_________________
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: 1290
Location: France - Sevres

PostPosted: Sun Jul 01, 2007 8:51 pm    Post subject: Reply with quote

It's awesome to see how we progressed from our first attempt Smile
just need to continu in this way and we will do our 4 ch MOD player on Z80 Wink
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Fonzie
Genny lover


Joined: 29 Aug 2006
Posts: 318

PostPosted: Mon Jul 02, 2007 6:22 am    Post subject: Reply with quote

yeah ^^ Very impressive dudes Razz
May i recall that the official sega driver supported "delta compressed samples" (ADPCM?) in top of FM/PSG Wink Haha Very Happy I'm insane, I know Razz

Anyway, nowadays, you may have 8Megabytes cartridges, so it is fine Wink
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Shiru
Very interested


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

PostPosted: Mon Jul 02, 2007 6:59 am    Post subject: Reply with quote

DPCM and ADPCM is different things, DPCM is much simpler, it has fixed delta.
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: 1954
Location: Estonia, Mahtra village

PostPosted: Mon Jul 02, 2007 3:20 pm    Post subject: Reply with quote

For a while, I was thinking about creating my own brand of ADPCM, but as Fonz said, size is no problem today Wink
_________________
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
Display posts from previous:   
Post new topic   Reply to topic    SpritesMind.Net Forum Index -> Demos All times are GMT
Page 1 of 1

 
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