It is currently Tue Nov 21, 2017 1:17 am

All times are UTC - 7 hours





Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Mon Mar 05, 2012 11:54 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
Sonic the Hedgehog for Game Gear uses 4-bit PCM audio for the SEGA sound.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 06, 2012 6:10 am 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10116
Location: Rio de Janeiro - Brazil
Dwedit wrote:
Sonic the Hedgehog for Game Gear uses 4-bit PCM audio for the SEGA sound.

But it's played back using the square wave channels, right?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 06, 2012 9:15 am 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19237
Location: NE Indiana, USA (NTSC)
rainwarrior wrote:
The ghostbusters thing doesn't sound like fixed bit compression to me. If I had to guess what's going on there, I'd say it cuts the sound into short segments and replaces each segment with a single cycling waveform that is a close match.

That's how the Digitalker family of codecs works, by treating voice as periodic over the short term. But in addition to periodism and 2-bit delta coding, it employs two other non-obvious (at the time) techniques. It changes the phase of each period sample to all cosines so that it can use a ping-pong loop (2x saving), and it silences the half of that sample that has the least energy (another 2x saving). That's how games using MX squeeze voice into 4 kbps or smaller at the expense of a bit of "robot voice". The developers of BBH&S probably didn't want the "robot voice" and were willing to spend a lot of bits to eliminate it.

tokumaru wrote:
Dwedit wrote:
Sonic the Hedgehog for Game Gear uses 4-bit PCM audio for the SEGA sound.

But it's played back using the square wave channels, right?

Yes, and the PCM sample had to be stored logarithmically because of this.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2012 5:14 pm 
Offline

Joined: Fri Jul 29, 2011 12:31 pm
Posts: 10
Location: Seattle
Now I am getting a bit of a better understanding of how these PCM-based speech engines work. I've got the jist of how the sample playback works, but it is animating the character's mouth that I am wondering about.

Of course, accurate lip synching is not an overall necessity, considering that the sample playback requires 100% CPU attention. I mean, in Sesame Street Countdown, when the Count says, "'Ah, 'ah, 'ah! Find [number]," his mouth only opens three times. I'd love to find out how Hide & Speak manages to keep Big Bird's mouth moving during smaple playback.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2012 6:19 pm 
Offline

Joined: Sun Sep 19, 2004 11:12 pm
Posts: 19237
Location: NE Indiana, USA (NTSC)
Moving the beak during sample playback is as easy as updating a couple entries in a display list, waiting for vblank, and then blasting the display list to the PPU through $4014. This probably happened at the breaks between concatenated waves, seeing as all the voiceless consonants are stored as separate waves.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2012 6:25 pm 
Offline
User avatar

Joined: Sat Feb 12, 2005 9:43 pm
Posts: 10116
Location: Rio de Janeiro - Brazil
NEStegg wrote:
I'd love to find out how Hide & Speak manages to keep Big Bird's mouth moving during smaple playback.

The rate at which the graphics have to be animated is pretty low. I'm sure there's some time between the output of consecutive samples to update some sprites and/or background tiles. In a mapper like the MMC3, that can bankswitch small portions of CHR-ROM, it would be even easier.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2012 6:26 pm 
Offline

Joined: Mon Sep 27, 2004 2:57 pm
Posts: 1248
They probably sneak the mouth movements into the tiny tiny pauses during speech.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 07, 2012 7:57 pm 
Offline
User avatar

Joined: Fri Nov 19, 2004 7:35 pm
Posts: 3950
The most ridiculous attempt at PCM I've ever seen was Ultimate Stuntman. They used PCM sound for drums even during gameplay sequences. Quality often sucks. DMC would have sounded much better.

_________________
Here come the fortune cookies! Here come the fortune cookies! They're wearing paper hats!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2012 1:41 am 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
Most of the samples are broken up in such a way that facilitate animation. Here's an alternative dump with a pop between every individual sample.

http://rainwarrior.ca/projects/nes/Sesame%20Street%20-%20Big%20Bird's%20Hide%20&%20Speak%20(USA)%20div.wav

Notice, for instance, that "hide and" are together as a single sample, and as you might expect, he does not close his mouth between them in-game. Not sure why the alphabet letters are so broken up; I don't think there's any animation during them, really.

Also, this game is MMC1, if anyone's wondering. No special timing hardware was involved, it's pretty much all just cycle counting.

Dwedit, are you sure about Ultimate Stuntman? The NSF version is constantly playing DPCM samples in every track.


Last edited by rainwarrior on Mon Sep 07, 2015 8:34 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2012 3:13 am 
Offline
User avatar

Joined: Mon Jan 03, 2005 10:36 am
Posts: 2981
Location: Tampere, Finland
rainwarrior wrote:
Dwedit, are you sure about Ultimate Stuntman? The NSF version is constantly playing DPCM samples in every track.

Yes, Ultimate Stuntman definitely uses raw PCM during gameplay as well.

_________________
Download STREEMERZ for NES from fauxgame.com! — Some other stuff I've done: kkfos.aspekt.fi


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2012 12:30 pm 
Offline

Joined: Wed Mar 09, 2005 9:08 am
Posts: 348
Quote:
Dwedit, are you sure about Ultimate Stuntman? The NSF version is constantly playing DPCM samples in every track.


That's because Kevtris (the man behind th NSF format) converted the samples from PCM to DPCM when he ripped that NSF back in the good old early days of NSF ripping :)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 08, 2012 5:10 pm 
Offline

Joined: Sun Mar 19, 2006 9:44 pm
Posts: 919
Location: Japan
rainwarrior wrote:
Not sure why the alphabet letters are so broken up; I don't think there's any animation during them, really.


Probably because about 10 of the consonants end in the "ee" sound so it can be re-used.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 28, 2012 7:01 pm 
Offline
User avatar

Joined: Mon Jun 21, 2010 10:23 pm
Posts: 162
Location: Seattle, WA
I know Michael Riedel over the net if you guys want me to ask him anything. Though he never replies to my messages anymore, but I can try. I remember mentioning this game to him and he didn't have a lot to say about it. I also know one of the programmers if you're interested, though again, he didn't have a lot to say about the game either.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 30, 2012 11:16 pm 
Offline
User avatar

Joined: Sun Jan 22, 2012 12:03 pm
Posts: 5824
Location: Canada
I dunno, at this point I know everything I ever wanted to know about Big Bird's Hide and Speak. I can't think of anything I'd want to ask.


Top
 Profile  
 
PostPosted: Sun Mar 03, 2013 11:58 pm 
Offline
User avatar

Joined: Thu Jan 03, 2008 1:48 pm
Posts: 543
http://www.glitterberri.com/developer-i ... f-sunsoft/

Apparently Mozer ESS was used in Mito Koumon 1 and 2 for the Famicom as well.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 30 posts ]  Go to page Previous  1, 2

All times are UTC - 7 hours


Who is online

Users browsing this forum: Bing [Bot] and 13 guests


You cannot 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 post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group