Page 1 of 1

1 bit music

Posted: Fri Mar 23, 2018 6:42 pm
by MooZ
Here's a quick test of 1 bit music using the PhaserX engine. I converted the asm output of bintracker.
The changes are quite light but I fear it messed up the timing a little bit. The output on ZX spectrum is done using

Code: Select all

out (#fe), a
whereas on MZ, we have:

Code: Select all

and #08
or  #20
ld  (0xe007), a
Which nearly doubles the number of cycles. As it's not IRQ/timer based, it may add a supplemental delay.

Anyway, the archive contains the tape and the modified source file.

Here's a short video of the music playing on my Sharp MZ720.
https://www.youtube.com/watch?v=mOC-X9ich1o

Re: 1 bit music

Posted: Fri Mar 23, 2018 8:26 pm
by hlide
If register a is load from a table, I don't see the point to make "and #8; or #20". Better to alter the table so it contains the right value to provide to "ld (0xe007), a". Am I wrong?

EDIT: let me check the source.

EDIT2: the issue sounds more complex to address indeed.

Re: 1 bit music

Posted: Sat Mar 24, 2018 12:30 pm
by mz-80a
Interesting, I enquired a long time back on the World of Spectrum forums about 1-bit sampled sound but unfortunately the theory is too difficult for me. Great if you have managed to translate an existing engine to the Sharp. I'll take a listen later on to your sound clip. Soon, Sharpworks will be working on a standard music player for games...

Re: 1 bit music

Posted: Sat Mar 24, 2018 6:42 pm
by MooZ
The next version of Arkos Tracker will have a full mz support.

Re: 1 bit music

Posted: Sat Mar 24, 2018 8:36 pm
by hlide
"SID support"

what does it mean? SID format support?

Re: 1 bit music

Posted: Sun Mar 25, 2018 8:36 pm
by mz-80a
MooZ wrote: Sat Mar 24, 2018 6:42 pm The next version of Arkos Tracker will have a full mz support.
Very interesting. Will it be interrupt driven? How much memory does it take up?

Re: 1 bit music

Posted: Sun Mar 25, 2018 10:06 pm
by hlide
I don't think it is interrupt-driven. It looks like the loop is as fast as possible so I don't think an interrupt-driven version is doable. I mean, there is no CPU resource (all registers are used in the loop!) to make anything else.

Re: 1 bit music

Posted: Sun Mar 25, 2018 11:00 pm
by MooZ
The arkos replay routine is interrupt based. The replay code and the songs are not that big if I remeber correctly.

Re: 1 bit music

Posted: Mon Mar 26, 2018 12:14 am
by hlide
MooZ wrote: Sun Mar 25, 2018 11:00 pm The arkos replay routine is interrupt based. The replay code and the songs are not that big if I remeber correctly.
So it isn't the same as the one generated by bintracker? well, as long the driven-interrupt is not interrupting too much.

Re: 1 bit music

Posted: Sun Apr 01, 2018 8:40 pm
by hlide
MooZ, you will probably recognize the music.