@username@ wrote:Sure, you're on windows. It outputs an extra CR when it sees LF, so line endings become CR/CR/LF.
This makes sense!
@username@ wrote:CVTAPE, if we believe the UI, uses analogue algorithms, which is overkill on a very basic, single source file. If you switch the mindset to be more, how does an 8bit console load this - it all should become clear.
Now I understand the routine, thanks.
From my memory, the CvTape works like this:
1. parses the whole wav file in search of the absolute peak
2. uses the "Threshold" value as the highest value giving a "zero" bit
3. parses the wav file again, in search of the first $13 value (00010011)
4. from that point, stacks bits in groups of 8 and then converts them into ascii code
You should consider that CvTape doesn't work in CreatiVision environment, but in Windows. It gets data from a WAV file and outputs into TXT format.
This means that it's up to the CvTape to parse every value of the WAV file (that is dealing with stereo/mono, absolute peaks, AM/FM and sample rate), join bits into ascii code, and then make them into a plain text file.
Obviously it is much more advantageous to use the cv BASIC to do the job, but at the time the CvTape was designed, we had no working emulator to extract the listings from WAV file. It was circa 2001 or 2002. And the CvTape has proved to be extremely useful for several years, all things considered. And I'm obviously grateful to Giovanni for developing it at his best.
Speaking of the FunnyMu limitation with "special characters", I think it's not a problem with the emulation routines, it must be a problem with the "import from TXT" routine, which I designed with Giovanni around 2007. Anyway I dont have any chance to update the emulator, so I believe I would try to convert part of the BASIC listing by changing a few "nasty" special characters into CHR(xx) calls in the PRINT statements.
I want to make sure that the workaround would be good to let me play the game on the FunnyMu.
I am obviously very interested in more updates from you, especially with regards to the BASIC listings. My role in the CV community has changed a lot over the years, and all I can do now is maintaining the best possible archive of files, including BASIC listings.