1
Project / Coder's Corner / MOD files BPM and Temp parameters/commands
« on: May 26, 2021, 08:52:39 »
Hello All! I have some 8 bit machine based on Z80 CPU. I try to write MOD player, but confront wirh a problem.
This 8 bit machine not have DMA and not have CIA or similar device. So, i need to work with samples and speed and bpm parameters in realrtime (or with tables). I need to convert BMP and speed to bytes per tick/row. I know about standart formula - speed/(BPM*2), but this is in milliseconds (or in Hz). But, i need to calculate - how many byutes i need to send in sound device per speed tick (or row). Can somebody help me?
This 8 bit machine not have DMA and not have CIA or similar device. So, i need to work with samples and speed and bpm parameters in realrtime (or with tables). I need to convert BMP and speed to bytes per tick/row. I know about standart formula - speed/(BPM*2), but this is in milliseconds (or in Hz). But, i need to calculate - how many byutes i need to send in sound device per speed tick (or row). Can somebody help me?