rensoup Posted September 19, 2021 Share Posted September 19, 2021 23 minutes ago, ivop said: Perhaps it hasn't been clear yet, but the main problem with RMT is its inherent timing, which is... ehm... wrong, and cannot be fixed without the RMT source code. Even if phaeron were to create a Pokey library for RMT based on Altirra, it would be all over the place, timing wise. So, a waste of time. We have to make do with apokeysnd during composition, even though its resampling is fixed and does not vary between NTSC and PAL. hmm, still not clear ?... you're saying apokeysnd is the only DLL that can ever work with RMT ? not sure why another DLL couldn't cope with RMT's peculiarities... maybe it's time to write a tracker in javascript then ?, something like https://www.stef.be/bassoontracker/ 3 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4908375 Share on other sites More sharing options...
Yautja Posted September 19, 2021 Share Posted September 19, 2021 On 9/18/2021 at 6:17 PM, mrk said: Not yet, but I can easily add that. I'd be really cool to have such feature. - Y - Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4908387 Share on other sites More sharing options...
ivop Posted September 20, 2021 Share Posted September 20, 2021 14 hours ago, rensoup said: hmm, still not clear ?... you're saying apokeysnd is the only DLL that can ever work with RMT ? not sure why another DLL couldn't cope with RMT's peculiarities... No DLL will ever work correctly, because RMT is faulty in its timing. I mean that apokeysnd is the best we have, and it's pointless to create a new DLL that is maybe 1% better than apokeysnd, but in combination with RMT it will still be wrong. 14 hours ago, rensoup said: maybe it's time to write a tracker in javascript then ?, something like https://www.stef.be/bassoontracker/ Nice! Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4908689 Share on other sites More sharing options...
mrk Posted September 20, 2021 Author Share Posted September 20, 2021 (edited) On 9/19/2021 at 11:24 PM, VinsCool said: Hmm something with the Poly5 (Distortion 2) emulation is off, things sound weird with it ? After few hours of debugging it seems I've found bug ............ in RMT2LZSS converter cc: @rensoup I'm attaching comparison of sap files created by RMT2LZSS and Altirra - as you see the only differences are Poly5 tunes on channel 3 (AUDF values are different): @VinsCool please check out this altirra-dumped version: https://mrk.sed.pl/web-pokey/examples/sap-player/#https://atariage.com/forums/applications/core/interface/file/attachment.php?id=876522 Xenon_Final_altirra.sap Edited September 20, 2021 by mrk 3 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909055 Share on other sites More sharing options...
VinsCool Posted September 20, 2021 Share Posted September 20, 2021 Sounds better! The Poly5 timbre is still off, however Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909062 Share on other sites More sharing options...
VinsCool Posted September 21, 2021 Share Posted September 21, 2021 (edited) 1 hour ago, mrk said: After few hours of debugging it seems I've found bug ............ in RMT2LZSS converter cc: @rensoup Out of curiosity, how were things converted for this example? From what I could see, the values shown in the screenshot were intended for Distortion A, which makes me believe the conversion was done without the use custom tuning tables, since this tune was specifically designed around that For reference, this is my binary from RMT2LZSS and the .rmt project, that .rmt will only play correctly in the tracker using my patched version, however. Xenon Final.rmt Xenon Final.xex Edited September 21, 2021 by VinsCool typo 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909090 Share on other sites More sharing options...
rensoup Posted September 21, 2021 Share Posted September 21, 2021 1 hour ago, mrk said: After few hours of debugging it seems I've found bug ............ in RMT2LZSS converter cc: @rensoup Impossible ? 9 minutes ago, VinsCool said: Out of curiosity, how were things converted for this example? Bingo ? I got worried for a bit! I tried outputting the xex from RMT 1.28 and got the SAPR from Altirra and it matched my output... I only saved the beginning as SAPR but as you can see, it matches perfectly ? xenonlocal.sap XENON.xex 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909097 Share on other sites More sharing options...
VinsCool Posted September 21, 2021 Share Posted September 21, 2021 1 minute ago, rensoup said: Impossible ? Bingo ? I got worried for a bit! I tried outputting the xex from RMT 1.28 and got the SAPR from Altirra and it matched my output... I only saved the beginning as SAPR but as you can see, it matches perfectly ? xenonlocal.sap 2.4 kB · 1 download XENON.xex 5.6 kB · 1 download Haha yep, that xex is indeed super mega off Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909098 Share on other sites More sharing options...
rensoup Posted September 21, 2021 Share Posted September 21, 2021 (edited) 35 minutes ago, VinsCool said: Haha yep, that xex is indeed super mega off oh damn... I forgot... does it require custom instruments ? that means I uploaded the wrong SAPR initially ? That's right... I forgot to change the RMT version in the options when converting it initially... it should have been "1.28 custom tables" This is what it should have been like (right @VinsCool ? ) https://mrk.sed.pl/web-pokey/examples/sap-player/#https://atariage.com/forums/applications/core/interface/file/attachment.php?id=876535 (I suppose there's still something wrong with that poly5 timbre in the web pokey) Xenon Final.sapr Xenon Final.obx Edited September 21, 2021 by rensoup 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909101 Share on other sites More sharing options...
VinsCool Posted September 21, 2021 Share Posted September 21, 2021 (edited) Yup, that's more like it, the emulation of Poly5 tones is odd regardless of the frequencies used in the conversions Edited September 21, 2021 by VinsCool typo Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909142 Share on other sites More sharing options...
Mr Robot Posted September 21, 2021 Share Posted September 21, 2021 On 9/18/2021 at 12:29 PM, ascrnet said: Great job thanks for sharing it, some time ago i wanted to make a music player for my wiki. i did it, but i didn't like very much the mp3 result. i tried to test your web pokey using the following form, but without results. ? You can do that with ASAP (though no type R support), I have it working on my website (example here https://atari8bit.net/db/?g=Games&d=d&f=180) I haven't implemented playing of subsongs (yet) but it's doable. See here http://asap.sourceforge.net/web.html Not wanting to derail this thread so no more on this but I hope it helps. 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909359 Share on other sites More sharing options...
mrk Posted September 21, 2021 Author Share Posted September 21, 2021 (edited) 15 hours ago, VinsCool said: Yup, that's more like it, the emulation of Poly5 tones is odd regardless of the frequencies used in the conversions I've fixed one poly-5 related bug, any difference now? Additionally on the bottom of player page there is sample rate selector, it would be also great to test different settings (different downsampling rate / low pass filter parameters are used for each sampleRate and it also affects resulting sound) https://mrk.sed.pl/web-pokey/examples/sap-player/#https://atariage.com/forums/applications/core/interface/file/attachment.php?id=876535 Edited September 21, 2021 by mrk typo 1 2 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909518 Share on other sites More sharing options...
VinsCool Posted September 21, 2021 Share Posted September 21, 2021 1 hour ago, mrk said: I've fixed one poly-5 related bug, any difference now? Additionally on the bottom of player page there is sample rate selector, it would be also great to test different settings (different downsampling rate / low pass filter parameters are used for each sampleRate and it also affects resulting sound) https://mrk.sed.pl/web-pokey/examples/sap-player/#https://atariage.com/forums/applications/core/interface/file/attachment.php?id=876535 Sounds a lot better now! Much closer to what I expect from the Poly5 timbre Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909563 Share on other sites More sharing options...
mrk Posted September 21, 2021 Author Share Posted September 21, 2021 34 minutes ago, VinsCool said: Sounds a lot better now! Much closer to what I expect from the Poly5 timbre Great! I think it generates now correct output at pokey clock frequency, I need to focus more on postprocessing phase now (output signal needs to be resampled from 1.77Mhz to destination frequency and doing it properly is not trivial task (for example low-pass filter needs to be applied)). But it seems it works quite well now - I've compared Altirra signal shape and my emulator output for few poly-5 tones and they are already very similar 1 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909590 Share on other sites More sharing options...
rensoup Posted September 21, 2021 Share Posted September 21, 2021 1 hour ago, mrk said: Great! I think it generates now correct output at pokey clock frequency, I need to focus more on postprocessing phase now (output signal needs to be resampled from 1.77Mhz to destination frequency and doing it properly is not trivial task (for example low-pass filter needs to be applied)). But it seems it works quite well now - I've compared Altirra signal shape and my emulator output for few poly-5 tones and they are already very similar it's super news! and once you're done with filters, there's just two tone mode ? Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909620 Share on other sites More sharing options...
rensoup Posted September 21, 2021 Share Posted September 21, 2021 @emkay haven't you got any tunes that could really test mrk's pokey accuracy ? Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909624 Share on other sites More sharing options...
emkay Posted September 21, 2021 Share Posted September 21, 2021 Just now, rensoup said: @emkay haven't you got any tunes that could really test mrk's pokey accuracy ? Which format needed? Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909626 Share on other sites More sharing options...
rensoup Posted September 21, 2021 Share Posted September 21, 2021 14 minutes ago, emkay said: Which format needed? SAPR if you can (can be exported with RMT2LZSS debug output: Altirra header) ? Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909630 Share on other sites More sharing options...
mrk Posted September 21, 2021 Author Share Posted September 21, 2021 36 minutes ago, rensoup said: it's super news! and once you're done with filters, there's just two tone mode ? I only need to learn how this two-tone thing works The other missing thing is pokey reset via skctl 3 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909642 Share on other sites More sharing options...
SlidellMan Posted September 21, 2021 Share Posted September 21, 2021 I have to admit, that is one cool program that you have made. Maybe you could make a VST instrument out of your POKEY simulation? 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909644 Share on other sites More sharing options...
emkay Posted September 21, 2021 Share Posted September 21, 2021 Check it warlocke.sapr 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909648 Share on other sites More sharing options...
mrk Posted September 21, 2021 Author Share Posted September 21, 2021 (edited) 11 minutes ago, emkay said: Check it warlocke.sapr 31.57 kB · 2 downloads playable url: warlocke.sapr - POKEY stress test by @emkay For reference and comparing with Altirra xex would be helpful Edited September 21, 2021 by mrk Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909652 Share on other sites More sharing options...
emkay Posted September 21, 2021 Share Posted September 21, 2021 5 minutes ago, mrk said: playable url: POKEY stress test by @emkay It's only at 48kHz sounding correct. But I have to admit that I only know how it sounds on Altirra, which is meanwhile 99% timing correct but has some volume mixing issues. The timing seems a little off, as there a some short cancelling points that shouldn't appear. Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909664 Share on other sites More sharing options...
ivop Posted September 21, 2021 Share Posted September 21, 2021 (edited) Great work! ? SKCTL and STIMER are not supported by SAP-R, though We were thinking about creating a new SAP-R2 format (or SAP-Q if we were to stick to a single character), to capture more registers per frame. The existing STEREO and FASTPLAY tags should take care of either two pokeys per frame being captured, and the frame rate (multispeed). Edited September 21, 2021 by ivop 5 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909668 Share on other sites More sharing options...
mrk Posted September 21, 2021 Author Share Posted September 21, 2021 (edited) 38 minutes ago, emkay said: It's only at 48kHz sounding correct. Thanks for feedback. So I definitely need to spend more time learning how to properly do downsampling (low-pass filters for other sample rates needs to be fixed probably). For now I'll change default sampleRate to 48k Edited September 21, 2021 by mrk 1 Quote Link to comment https://forums.atariage.com/topic/325056-web-pokey/page/2/#findComment-4909681 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.