pcmplay - new dragon sound routine

A place to discuss everything Dragon related that doesn't fall into the other categories.
User avatar
utz
Posts: 18
Joined: Mon Aug 31, 2015 8:49 pm
Location: Absurdistan
Contact:

Re: pcmplay - new dragon sound routine

Post by utz »

$800 is mapped to C-0. But the values are chosen arbitrarily, the table isn't tuned to 440 Hz or anything.

Ok, here we go, testing with reduced counter size and one long triangle wave sample.
Convinced now?
Attachments
8bit.zip
(411.29 KiB) Downloaded 170 times
sorchard
Posts: 531
Joined: Sat Jun 07, 2014 9:43 pm
Location: Norwich UK

Re: pcmplay - new dragon sound routine

Post by sorchard »

Cheers, I'll give that a listen when I get home tonight.

I notice that the lookup value that was $800 is now $100, so that means the pitch error is now 8 times bigger!
Stew
sorchard
Posts: 531
Joined: Sat Jun 07, 2014 9:43 pm
Location: Norwich UK

Re: pcmplay - new dragon sound routine

Post by sorchard »

utz wrote:Ok, here we go, testing with reduced counter size and one long triangle wave sample
Ouch. It shouldn't sound that bad. Something's wrong somewhere. I'll try & figure it out.
Stew
sixxie
Posts: 1348
Joined: Fri Jul 18, 2008 8:36 am
Location: Hertfordshire
Contact:

Re: pcmplay - new dragon sound routine

Post by sixxie »

I've not looked at the example, but is some of the misunderstanding here from what constitutes a "sample"? In most players those 256 bytes constitute one cycle at (mixing rate / 256), pretty sure pcmplay has them be low-res "samples", i.e. more cycles at whatever nominal frequency they're at, thus you have to cut the internal "frequency" delta per mix cycle, thus the error at the low end is that much increased.

Or have I missed something?
sorchard
Posts: 531
Joined: Sat Jun 07, 2014 9:43 pm
Location: Norwich UK

Re: pcmplay - new dragon sound routine

Post by sorchard »

Found it. The divide by 256 on the instrument address was missing. Sounds closer to expectation now.
Attachments
test.zip
(710 Bytes) Downloaded 175 times
Stew
User avatar
utz
Posts: 18
Joined: Mon Aug 31, 2015 8:49 pm
Location: Absurdistan
Contact:

Re: pcmplay - new dragon sound routine

Post by utz »

Oh, that sounds much, much better than I expected. My sincere apologies for doubting you.

@sixxie: Yes, but this new version uses 256 bytes per cycle. Or rather, will use 256 bytes per cycle as I have to make new samples now. I'll probably make a new player for this, as some things won't be possible with this approach (chord05.smp would fail, for example).
sorchard
Posts: 531
Joined: Sat Jun 07, 2014 9:43 pm
Location: Norwich UK

Re: pcmplay - new dragon sound routine

Post by sorchard »

@utz

No worries. I've learned quite a lot by looking at your excellent player and thinking about how these things work. The fun is in the discovery :)
Stew
Post Reply