Re: Grayskull on APF Imagination Machine
Golden Child
03/16/25 07:08 PM
I was puzzled why some cassettes like Ferzerx wouldn't load. I ended up writing the world's worst cassette parser, dumping samples from audacity and seeing if I could parse raw samples with plain old lua.
Since the sample rate is 11025, if I count the number of samples that are above zero, less than 4 should be a zero and greater than that should be a 1 with a single zero ending the all 1's intro.
70541 6.3982766439909 5 1
70552 6.3992743764172 6 1
70562 6.4001814058957 3 0
70572 6.4010884353741 1 0
70595 6.4031746031746 1 0
70606 6.4041723356009 3 0
70617 6.4051700680272 3 0
70629 6.4062585034014 4 1
70640 6.4072562358277 4 1
70651 6.408253968254 4 1
BYTE=00001111
70662 6.4092517006803 5 1
70674 6.4103401360544 6 1
70685 6.4113378684807 6 1
70696 6.412335600907 6 1
70707 6.4133333333333 6 1
70718 6.4143310657596 6 1
70729 6.4153287981859 6 1
70740 6.4163265306122 6 1
BYTE=11111111
70751 6.4173242630385 6 1
70762 6.4183219954649 6 1
What I discovered with ferzerx is that it is picking up a stray zero within the lead-in (which should be all ones). If I cut the first 7 seconds of the audio in audacity, it loads perfectly.
![[Linked Image from i.imgur.com]](https://i.imgur.com/AxsKtmj.png)
Going to try this technique with some other cassettes that won't load.
That may explain why it would load if you delayed pressing enter for a few seconds after starting a CLOAD.
I would always hit enter first, then hit F2 to start up the cassette, so I was always starting from the beginning.