CasTools with phase shift signal gives 3320.
Of course, thanks! http://ge.tt/4Fn9nFi2
Good, thanks for the .WAV file.
Just curious: what was this tape used for ?
Mystery solved, just padding bytes:
CasTools (96 + 8) * 31 + 96 = 3320
SofaCas 96 * 32 = 3072
No issue to send: Load completed!
Ah yes, I understand now. It's not really padding bytes: from what I've seen so far, CasTool "silence detection" is not so accurate, so you're often getting extra bytes at the end of a "chunk" (it does not cause too many problems though). SofaCas detects silences in a different way, so you don't have those extra-bytes.
What are the options to add one second silence at the start and 25ms between the chunks of a wav file?
Similar question for the headers...
Thanks for clarifying!
You mean when writing back a .CAS file to a .WAV file ?
Basically there are 2 types of "silence" that are used on MSX (like there are 2 types of headers, long and short):
-s Short silence duration in seconds (2.00s)
-S Long silence duration in seconds (1.00s)
-h Short header duration in seconds (6.67s)
-H Long header duration in seconds (1.67s)
Use of these long silences / headers depend on the format used (binary, tokenized basic, ascii...). I do not remember details for each format, but that's detailed somewhere in the MSX technical books.
I will give a look at the SofaCas sources to give more details when I'll have time.
EDIT: The values in parenthesis above are the default MSX-standard values. The 25ms you mention is really super-short!
Indeed from cas to wav, there are 32 headers "1F A6 DE BA CC 13 7D 74".
TX81Z receives all patches well if 25ms between the blocks, even if 5ms.
For now, I add 1s silence at the start by editing the file in a wave editor.
So it's not really an issue...
Did not realize immediately: is that TX81Z an MSX-compatible machine ??
It's Yamaha OS, V1.6 03-Feb-88, with standard MIDI and MSX cassette interface.
In those years, most musicians used Atari ST for editing and storing patches.
Meanwhile I've also tested a TX7, different format with two data blocks...

... working fine!
Where can we download SofaCAS nowadays?
