|
Joined: Jul 2007
Posts: 4,625
Very Senior Member
|
Very Senior Member
Joined: Jul 2007
Posts: 4,625 |
I'm still new to M.E.S.S., so I still need to discover how to do it. Are the .WAV files all that we need? Yes. If you use the MESS GUI you will see the supported devices and the supported image types.
|
|
|
|
Joined: Jul 2009
Posts: 78
Member
|
OP
Member
Joined: Jul 2009
Posts: 78 |
The tape is playing but ignore the end of tape time. Indeed, I just see that the line of code that would bring the cassette data into the machine is commented (I don't know why, that seems correct to me): http://git.redump.net/cgit.cgi/mess/tree/src/mess/drivers/mc1000.c#n326// data &= (((cassette_input(state->cassette) < +0.0) << 7) | 0x7f); (The sound of the cassette becomes 0 or 1, and becomes the most signifying bit of the byte that is served by the selected port.)
|
|
|
|
Joined: Apr 2004
Posts: 1,563 Likes: 12
Very Senior Member
|
Very Senior Member
Joined: Apr 2004
Posts: 1,563 Likes: 12 |
It could be me, but I'd kinda expect to see something like:
data &= (((cassette_input(state->cassette) < +0.0 ? 0 : 1) << 7) | 0x7f);
or
data &= (((cassette_input(state->cassette) < +0.0 ? 1 : 0) << 7) | 0x7f);
|
|
|
|
Joined: Dec 1999
Posts: 1,180 Likes: 2
Very Senior Member
|
Very Senior Member
Joined: Dec 1999
Posts: 1,180 Likes: 2 |
I only have access to mess.redump.net, where I've downloaded 0.132 from. Thanks for reminding me to go upload 0.133 to mess.redump.net
|
|
|
|
Joined: Jan 2005
Posts: 53
Member
|
Member
Joined: Jan 2005
Posts: 53 |
As it happens, I have a CCE MC-1000 at home (doesn't everybody in Wales?). I can try and save out a BASIC "Hello World" program to a WAV file if you want...?
|
|
|
|
Joined: Apr 2004
Posts: 1,563 Likes: 12
Very Senior Member
|
Very Senior Member
Joined: Apr 2004
Posts: 1,563 Likes: 12 |
I suppose that would be useful for debugging.
|
|
|
|
Joined: Feb 2005
Posts: 449
Senior Member
|
Senior Member
Joined: Feb 2005
Posts: 449 |
As it happens, I have a CCE MC-1000 at home (doesn't everybody in Wales?). I can try and save out a BASIC "Hello World" program to a WAV file if you want...? Please do, I don't have any CCE WAV files to test with.
|
|
|
|
Joined: Jul 2009
Posts: 78
Member
|
OP
Member
Joined: Jul 2009
Posts: 78 |
I don't have any CCE WAV files to test with. Have you tried to use these (MS-DOS) applications for converting .BAS files into .WAV files? http://mc-1000.wikispaces.com/Cassete#toc0Download the .zip file linked by the word " aqui", then you can use the four applications: BAS2BIN.EXE filename.BASFrom a plain text file containing a BASIC program, generates a filename.BIN containing all the bytes that are to be saved to tape (header, then the tokenized version of the program). You can get a handful of BASIC programs here. BIN2WAV.EXE filename.BINGenerates a filename.WAV file from the .BIN file. The .WAV file generated has an unusual sample rate of 2757 samples/second (instead of 44100 or something like that), tuned to produce .WAV files as small as possible, with one sample per peak or valley. But the sound seems to get distorted in some players. For instance, it plays well in Windows Sound Recorder, but differently in Windows Media Player. (Higher frequency becomes mute.) Would M.E.S.S. read them well? WAV2BIN.EXE filename.WAVAnalyzes a .WAV file to generate a .BIN file. Accepts files with any sample rate. LISTBIN.EXE filename.BINLists the BASIC program contained in a .BIN file. It doesn't generate a .BAS file, but you can redirect (>) the output to a file. NOTE: These applications were made with an old QuickBasic, so file names must have no more than 8 characters.
Last edited by Ensjo; 08/19/09 04:09 PM. Reason: Note added.
|
|
|
|
Joined: Jul 2007
Posts: 4,625
Very Senior Member
|
Very Senior Member
Joined: Jul 2007
Posts: 4,625 |
I don't have any CCE WAV files to test with. Have you tried to use these (MS-DOS) applications for converting .BAS files into .WAV files? http://mc-1000.wikispaces.com/Cassete#toc0Download the .zip file linked by the word " aqui", then you can use the four applications: BAS2BIN.EXE filename.BASFrom a plain text file containing a BASIC program, generates a filename.BIN containing all the bytes that are to be saved to tape (header, then the tokenized version of the program). You can get a handful of BASIC programs here. BIN2WAV.EXE filename.BINGenerates a filename.WAV file from the .BIN file. The .WAV file generated has an unusual sample rate of 2757 samples/second (instead of 44100 or something like that), tuned to produce .WAV files as small as possible, with one sample per peak or valley. But the sound seems to get distorted in some players. For instance, it plays well in Windows Sound Recorder, but differently in Windows Media Player. (Higher frequency becomes mute.) Would M.E.S.S. read them well? WAV2BIN.EXE filename.WAVAnalyzes a .WAV file to generate a .BIN file. Accepts files with any sample rate. LISTBIN.EXE filename.BINLists the BASIC program contained in a .BIN file. It doesn't generate a .BAS file, but you can redirect (>) the output to a file. NOTE: These applications were made with an old QuickBasic, so file names must have no more than 8 characters. I tried without success. See my older posting. The tape is playing but ignore the end of tape time.
Ensjo, I made following :
1.) Convert the .bas file to .bin (BAS2BIN) 2.) Convert the .bin file to .wav (BIN2WAV)
|
|
|
|
Joined: Jul 2009
Posts: 78
Member
|
OP
Member
Joined: Jul 2009
Posts: 78 |
I tried without success. See my older posting. The tape is playing but ignore the end of tape time.
Ensjo, I made following :
1.) Convert the .bas file to .bin (BAS2BIN) 2.) Convert the .bin file to .wav (BIN2WAV) Anna, but you did manage to produce a .wav file with the programs, right? That's one thing. That the emulator still can't read the .wav files is another issue. But .wav files will be needed to make the tests, that's why I explained about these applications. Curt: Why is this line commented in the code?
// data &= (((cassette_input(state->cassette) < +0.0) << 7) | 0x7f);
This prevents the emulator from "hearing" the .wav files. Is the line commented because it generates some error? Does this suggestions from Judge solve the problem? It could be me, but I'd kinda expect to see something like:
data &= (((cassette_input(state->cassette) < +0.0 ? 0 : 1) << 7) | 0x7f);
or
data &= (((cassette_input(state->cassette) < +0.0 ? 1 : 0) << 7) | 0x7f);
|
|
|
2 members (AJR, Kale),
273
guests, and
1
robot. |
Key:
Admin,
Global Mod,
Mod
|
|
Forums9
Topics9,320
Posts121,923
Members5,074
|
Most Online1,283 Dec 21st, 2022
|
|
These forums are sponsored by Superior Solitaire, an ad-free card game collection for macOS and iOS. Download it today!
|
|
|
|