Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 7512

General • Re: PT52-Lua The Modern Retro computer

$
0
0
Update:

I've polished up the PCM playback now you can load multiple samples as the library will return you a SAMPLE data type where you can trigger play back set looping if you want and if need be stop play back early. Lua will garbage collect any SAMPLE that falls out of scope nice and clean. I'd say PCM play back is working nicely. You can also play tones and PCM samples at the same time.

The Sequencer is started and is working in my tests however it's not possible yet to load the ROLL(music/sfx)data from disk yet so I haven't finished it to the point of SAMPLE. This is the next step. Once ROLL data can be loaded and used I need to think of how to create it.

So far I've got VGM this is very close to ROLL as it is direct write to the registers but might be a bit of a learning curve to use a track to write music. I'm looking at MIDI there would need to be a tool written to convert any of these two formats to ROLL. If there is another tool or format I should be aware of let me know.

So the PT52 sound has two independent sequencers both can be used simultaneously the important thing to be aware of is there are only 6 sound channels each can play only one tone/noise at a time and care is needed when designing your ROLL so it doesn't clobber the channels used by the other if both are used. The sequencers are labelled BGM and SFX but you can use them how ever you like. Some system sounds are going to built in and they will be limited to one channel.

I should clarify that ROLL is a format created for the PT52 and if there is anything similar out there it's not my intention to confuse them.

Code will continue to be cleaned up and tested once I have it all working and I have proof of concept examples I will of coarse upload to the repos and you can all make some noise!

Thanks for the interest and following along.

Statistics: Posted by DarkElvenAngel — Thu Oct 23, 2025 3:34 am



Viewing all articles
Browse latest Browse all 7512

Trending Articles