$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?
pcmplay - new dragon sound routine
Re: pcmplay - new dragon sound routine
- Attachments
-
- 8bit.zip
- (411.29 KiB) Downloaded 170 times
Re: pcmplay - new dragon sound routine
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!
I notice that the lookup value that was $800 is now $100, so that means the pitch error is now 8 times bigger!
Stew
Re: pcmplay - new dragon sound routine
Ouch. It shouldn't sound that bad. Something's wrong somewhere. I'll try & figure it out.utz wrote:Ok, here we go, testing with reduced counter size and one long triangle wave sample
Stew
Re: pcmplay - new dragon sound routine
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?
Or have I missed something?
Re: pcmplay - new dragon sound routine
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
Re: pcmplay - new dragon sound routine
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).
@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).
Re: pcmplay - new dragon sound routine
@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
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