ArduiTape

Страница 2/9
1 | | 3 | 4 | 5 | 6 | 7

By Buleste

Master (158)

Аватар пользователя Buleste

28-09-2014, 11:21

Unfortunately caslink2 does not handle cas files so isn't much use for me.

By hit9918

Prophet (2932)

Аватар пользователя hit9918

28-09-2014, 15:58

@Buleste,
did I get it right you are doing a wav encoder for your device? I recommend giving 9600hz wav another try.
I updated my package, now there's a 9600Hz wav in there to try out straight away with bload"cas:",r . It's the software sprite demo.
https://sites.google.com/site/tueftlerlabs/home/downloads/lw...
lwav.zip in https://sites.google.com/site/tueftlerlabs/home/downloads/

The deal is that 9600Hz is small wav (and the wav zips even better) and plain simple generator code.
None of the usual calculations, just dump 4 ppi states in 4 samples, tell 9600hz in wav header, done.

By Buleste

Master (158)

Аватар пользователя Buleste

29-09-2014, 18:47

I have tried 9600Hz at both 1200 and 2400 baud and at 1200 the games at least tried to load but failed whereas at 2400 they weren't even 'heard' by my MSX. 14400 is still the best sample rate.

By tvalenca

Paladin (747)

Аватар пользователя tvalenca

29-09-2014, 20:03

What's the point not supporting CAS files from the start? If I have to convert to WAV, I'd rather wire the play/pause button to remote control on MSX! Way simpler than using a whole arduino to do it!

By tvalenca

Paladin (747)

Аватар пользователя tvalenca

29-09-2014, 23:14

tvalenca wrote:

(...) I'd rather wire the play/pause button to remote control on MSX! (...)

Play/Pause button from a cheap MP3 player!

By Buleste

Master (158)

Аватар пользователя Buleste

29-09-2014, 23:29

I would love to support cas files but as I've said before its beyond my skills as a programmer. If you wish to do it them please go ahead tvalenca.

Again the idea of the project is to create a cheap sdcard system for most 8-bit computers with full motor control not just the MSX. However due to an updated cas2wav converting cas files to wavs is easy.

By tvalenca

Paladin (747)

Аватар пользователя tvalenca

29-09-2014, 23:55

I don't have any experience with arduino, but maybe it won't be an issue, because the CAS file format is well-documented and has some opensource code available, so it will be easy to adapt and recreate. Maybe the only issue is to keep a continous data flow, but since it is smaller, the arduino will have less data to process and the code will not need to be too much optimized...

Which language you use to program the arduino? C?

By Buleste

Master (158)

Аватар пользователя Buleste

30-09-2014, 01:05

C or C++

By hit9918

Prophet (2932)

Аватар пользователя hit9918

30-09-2014, 19:45

At 2400 baud the PPI pin wiggles at 9600hz.
when 14400 loads better than 9600... maybe at 9600 the resampling code ended up making 1.001 samples per ppi state. while required is exactly 1.

the 9600hz wav I posted loads over plain door bell wire Smile
and in openmsx.
and it is easy to code the wav generator: throw the resampling code out of the window, done Big smile

By giangiacomo.zaffini

Champion (267)

Аватар пользователя giangiacomo.zaffini

01-10-2014, 03:37

@ hit9918 : thank You for sharing Java code, I found it nice to read something different from C/C++/python

As I said before, I reworked CasLink2 C code with floating point variables for managing sampling rate of 11025Hz and 44100Hz WAV files representing MSX cassette streams @ 1200 baud rate or 2400 baud rate.

Страница 2/9
1 | | 3 | 4 | 5 | 6 | 7