Jump to content

Photo

FujiConvert 0.1


182 replies to this topic

#101 a8isa1 OFFLINE  

a8isa1

    Stargunner

  • 1,545 posts

Posted Wed Jun 6, 2018 6:51 AM

In Altirra I learned that PDM files 12 MB sized or smaller will play fine.  Files 13 MB or larger will play only as static.   This is true for SIDE 2 emulation.   It may be true for The!Cart emulation but I only tried one large file on The!Cart and heard only the static. If I truncate a large file to 12MB the shortened file will also play (from Side 2).

 

I don't own either of these cartridges so I cannot test them on real hardware.

 

I assume this is the issue that Xuel has discussed.


Edited by a8isa1, Wed Jun 6, 2018 6:52 AM.


#102 a8isa1 OFFLINE  

a8isa1

    Stargunner

  • 1,545 posts

Posted Wed Jun 6, 2018 8:37 AM

In Altirra I learned that PDM files 12 MB sized or smaller will play fine.  Files 13 MB or larger will play only as static.   This is true for SIDE 2 emulation.   It may be true for The!Cart emulation but I only tried one large file on The!Cart and heard only the static. If I truncate a large file to 12MB the shortened file will also play (from Side 2).

 

I don't own either of these cartridges so I cannot test them on real hardware.

 

I assume this is the issue that Xuel has discussed.d

Ran out of time to modify my post.

 

Sorry, I must have done something wrong when converting a file for The!Cart usage.   I tried again and it worked fine.  Not sure how long the PDM data is but the original song is 11:59 in length.



#103 MaPa OFFLINE  

MaPa

    Dragonstomper

  • 960 posts
  • Location:Czech Republic

Posted Wed Jun 6, 2018 9:28 AM

So... I download some .pdm file and then WHAT? :) I don't know anything about SIDE/SIDE2.. how it works, what it needs etc.



#104 brenski OFFLINE  

brenski

    Stargunner

  • 1,811 posts
  • How should we f**k off, oh Lord ?
  • Location:Ventura Highway, in the sunshine [UK]

Posted Wed Jun 6, 2018 11:00 AM

So... I download some .pdm file and then WHAT? :) I don't know anything about SIDE/SIDE2.. how it works, what it needs etc.

 your Side/Side2 will be using a CFcard ?

if so, remove CFcard, connect to your pc

copy FJC's pdmplayer to the FAT/FAT32 partition on your CFcard

 

do the same for any .PDM files you create from audio track

 

re-insert into Side/Side2 and play via pdm.xex via XEXLoader on your Atari8



#105 MaPa OFFLINE  

MaPa

    Dragonstomper

  • 960 posts
  • Location:Czech Republic

Posted Wed Jun 6, 2018 11:02 AM

 your Side/Side2 will be using a CFcard ?

if so, remove CFcard, connect to your pc

copy FJC's pdmplayer to the FAT/FAT32 partition on your CFcard

 

do the same for any .PDM files you create from audio track

 

re-insert into Side/Side2 and play via pdm.xex via XEXLoader on your Atari8

Thanks, but I wanted to know how to play it in Altirra emulator ;)



#106 Xuel OFFLINE  

Xuel

    Dragonstomper

  • Topic Starter
  • 740 posts
  • Location:US

Posted Wed Jun 6, 2018 12:39 PM

So... I download some .pdm file and then WHAT? :) I don't know anything about SIDE/SIDE2.. how it works, what it needs etc.

 

See flashjazzcat's instructions here.

 

To create a VHD file you can use Windows -> Start -> Disk Management -> Create VHD

 

To put files on the VHD use Windows -> Start -> Disk Management -> Attach VHD. This should add a drive letter that you can open in Explorer like any other disk. Drag PDM.XEX and the *.PDM files to this disk.

 

Then you have to eject or Detach VHD.

 

Then you can attach the VHD to Altirra with System -> Configure System... -> Devices -> SIDE 2 -> Add... -> Hard disk -> File...

 

In Altirra, make sure you *disable* System -> Console Switches -> Enable Cart SDX.



#107 MaPa OFFLINE  

MaPa

    Dragonstomper

  • 960 posts
  • Location:Czech Republic

Posted Wed Jun 6, 2018 1:40 PM

OK.. now I§m able to load something and play it, but all I hear is noise... tried official Altirra 3.0 and Altirra 3.10 test 28 (with timings like on real hw) and in both versions your edit in debugger but nothing helps.



#108 brenski OFFLINE  

brenski

    Stargunner

  • 1,811 posts
  • How should we f**k off, oh Lord ?
  • Location:Ventura Highway, in the sunshine [UK]

Posted Wed Jun 6, 2018 3:48 PM

well thanks to Jon [FJC] and Xuel, i now have this working on both real and virtual hardware!

 

respect to both, and mega thanks



#109 Mathy OFFLINE  

Mathy

    River Patroller

  • 2,862 posts
  • Location:Heerlen, NL

Posted Wed Jun 6, 2018 6:03 PM

Hello Xuel

 

Have you fixed the noise problem CharlieChaplin described yet?  If not, please do so as soon as possible.  PLEASE!!!

 

Sincerely

 

Mathy  (who's trying to be patient, but not having a lot of succes...)



#110 a8isa1 OFFLINE  

a8isa1

    Stargunner

  • 1,545 posts

Posted Wed Jun 6, 2018 6:45 PM

OK.. now I§m able to load something and play it, but all I hear is noise... tried official Altirra 3.0 and Altirra 3.10 test 28 (with timings like on real hw) and in both versions your edit in debugger but nothing helps.

Try one these two of brenski's shorter files

 

http://atariage.com/...-4#entry4042381



#111 Xuel OFFLINE  

Xuel

    Dragonstomper

  • Topic Starter
  • 740 posts
  • Location:US

Posted Thu Jun 7, 2018 2:03 AM

Hello Xuel

 

Have you fixed the noise problem CharlieChaplin described yet?  If not, please do so as soon as possible.  PLEASE!!!

 

Sincerely

 

Mathy  (who's trying to be patient, but not having a lot of succes...)

 

Fixed in FujiConvert 0.2.1. Change log here.

  • Loop at end of audio
  • Support for XEGS cartridges
  • Simple dither


#112 phaeron OFFLINE  

phaeron

    River Patroller

  • 2,675 posts
  • Location:Bay Area, CA, USA

Posted Thu Jun 7, 2018 2:26 AM

Ran a 44KHz chirp through the converter targeting 8KHz, and it looks like both Chrome and Edge are using pretty bad resampling filters -- no low pass filtering, sine wave frequency sweep gives textbook aliasing. Quick web search suggests they are doing linear interpolation. Firefox does a better job and appears to have a proper downsampling filter, but it also fails to convert from 44KHz to 8KHz entirely, throwing an Operation not supported error when creating the OfflineAudioContext.



#113 brenski OFFLINE  

brenski

    Stargunner

  • 1,811 posts
  • How should we f**k off, oh Lord ?
  • Location:Ventura Highway, in the sunshine [UK]

Posted Thu Jun 7, 2018 8:56 AM

at some point in the 1970/80s most classic rock artists dabbled in a little bit of a reggae vibe - some much less than others (Rush/Jefferson Starship) - merely a few bars of the bridge.

seems.

seems that the time used in the Caribbean recording albums certainly "rubbed off" on some., here's a few of my faves:

 

Brenski's Unlikely Rock Reggae Mix

Attached File  brenski's unlikely rock reggae mix pcm4+4 mono 44270Hz ide pal.zip   17.35MB   27 downloads

 

Eagles/Zeppelin/Costello/Rush/Clash/Scorpions/Animals/Travelling Wilburys/Jefferson Starship/3 Dog Night/Joe Walsh/Paul McCartney



#114 Xuel OFFLINE  

Xuel

    Dragonstomper

  • Topic Starter
  • 740 posts
  • Location:US

Posted Thu Jun 7, 2018 9:27 AM

Ran a 44KHz chirp through the converter targeting 8KHz, and it looks like both Chrome and Edge are using pretty bad resampling filters -- no low pass filtering, sine wave frequency sweep gives textbook aliasing. Quick web search suggests they are doing linear interpolation. Firefox does a better job and appears to have a proper downsampling filter, but it also fails to convert from 44KHz to 8KHz entirely, throwing an Operation not supported error when creating the OfflineAudioContext.

 

Ugh. Thanks for testing! Looks like some have proposed adding a resampling-method option to WebAudio (example issue thread) but so far the decision has been to leave it up to the individual browser. Looks like the WebAudio spec also states that browsers must support at least 8000Hz to 96000Hz sample rates. FujiConvert's 8kHz rate is actually two scanlines so comes in at 7800Hz or 7860Hz, just under the supported range.

 

I'll look into adding explicit sinc resampling code to FujiConvert.


Edited by Xuel, Thu Jun 7, 2018 9:28 AM.


#115 CharlieChaplin OFFLINE  

CharlieChaplin

    River Patroller

  • 3,014 posts

Posted Thu Jun 7, 2018 10:59 AM

 

 

Fixed in FujiConvert 0.2.1. Change log here.

  • Loop at end of audio
  • Support for XEGS cartridges
  • Simple dither

 

 

Works great now! Alas, 1MB is not much for 8Bit 44khz mono or 22khz stereo sounds. So now I would like to see bigger carts (atarimax, Megacart, XEGS) and cart emulation (e.g. with the Ultimate Cart.) to become reality. 16MB or more would be nice... ;-)   "All you have to do is dream..."


Edited by CharlieChaplin, Thu Jun 7, 2018 11:01 AM.


#116 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,331 posts
  • Location:United Kingdom

Posted Thu Jun 7, 2018 11:12 AM

Why design ever bigger carts just for this purpose when you have IDE devices currently available which can handle 128GB disks?



#117 mytek ONLINE  

mytek

    River Patroller

  • 3,227 posts
  • Location:Santa Rosa, CA

Posted Thu Jun 7, 2018 1:02 PM

Why design ever bigger carts just for this purpose when you have IDE devices currently available which can handle 128GB disks?

 

I agree that HDD like devices (IDE, CF, SD, USB Stick) are best way to go as we head down this path. Imagine if the iPod had required flashing a severely limited memory footprint device when downloading music, I doubt it would have been very successful. Even cooler still would be on-the-fly MP3 to PDM conversion from a FAT directory, although the current PDM player that Jon made is pretty darn good, and likely the most practical approach due to hardware limitations/CPU speed.

 

Feature Request for PDM Player:

 

  • ESC key to allow exiting a currently playing song and go back to the main menu (also exits/deactivates shuffle mode -- see below).
  • CTRL+Right/Left Arrow key to skip to NEXT, or go back to PREVIOUS song in directory. The order of which could either be by a numeric PDM file name and/or alphabetical order.
  • CTRL+S = enable 'shuffle' mode playback (random automatically load & play songs in directory)

 

On a side note; I notice that many of the PDM files have an ever so slight background 'crackle' when playing quiet passages. Is this to be expected? Perhaps a limitation of the available dynamic range?

 

Also thinking that perhaps some additional hardware audio filtering might help things out  :ponder: .



#118 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,331 posts
  • Location:United Kingdom

Posted Thu Jun 7, 2018 1:15 PM

I'll keep these suggestions in mind for the PDM player. I've done barely anything to it for weeks. ;) It's certainly far from being completed software.



#119 Kyle22 OFFLINE  

Kyle22

    River Patroller

  • 3,836 posts
  • Call my BBS! telnet://broadway1.lorexddns.net
  • Location:McKees Rocks (Pittsburgh), PA

Posted Thu Jun 7, 2018 2:49 PM

 

Kyle,

I have an Incognito also but Jon's PDM.xex will not find any content.

Have you tried to run it yet.

Sadly, I have not been able to try it yet. The fan on my laptop died so I can only turn it on for a few minutes. That's not long enough to transfer files to the Atari.

 

Edit: fix typo.


Edited by Kyle22, Thu Jun 7, 2018 3:03 PM.


#120 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,331 posts
  • Location:United Kingdom

Posted Thu Jun 7, 2018 2:55 PM

The PDM player doesn't work on the Incognito. Results with cartridge based playback were so poor on the 800 that I didn't bother, but I can produce a suitable player if it's needed for testing... some time. ;)



#121 Mathy OFFLINE  

Mathy

    River Patroller

  • 2,862 posts
  • Location:Heerlen, NL

Posted Thu Jun 7, 2018 4:59 PM

Hello Jon

 

Would be nice if that player would be ready by the time the Fujiama 2018 starts.   :grin:

 

And it should be able to use the Ultimate Cart.  :D

 

Not sure what the biggest SD card is, that the Ultimate Cart can handle.  But at the moment I'm using it with a 16GB card.  They should be enough (for now).

 

Sincerely

 

Mathy

 

PS ever considered coming to the Fujiama?  Shuiming Lai visited the location way back when the meeting was called "Unconventional".  He seemed to like it.



#122 Mathy OFFLINE  

Mathy

    River Patroller

  • 2,862 posts
  • Location:Heerlen, NL

Posted Thu Jun 7, 2018 5:02 PM

Hello Xuel

 

Fixed in FujiConvert 0.2.1. Change log here.

  • Loop at end of audio
  • Support for XEGS cartridges
  • Simple dither

 

THANK YOU VERY MUCH!!!!! 

 

Sincerely

 

Mathy


Edited by Mathy, Thu Jun 7, 2018 5:02 PM.


#123 flashjazzcat OFFLINE  

flashjazzcat

    Quadrunner

  • 14,331 posts
  • Location:United Kingdom

Posted Thu Jun 7, 2018 5:05 PM

Unfortunately the Ultimate Cart provides no direct access to the SD card, but I have the PDM player (standard SIDE version) working here just fine with a custom UNO Cart firmware.

I'll see what I can do regarding player refinements, although I have many things competing for my time and the player is not open source, since it is essentially my SIDE XEX loader.

As for Fujiyama: I'd love to, but I just don't have the bus fare right now. ;)

#124 Mathy OFFLINE  

Mathy

    River Patroller

  • 2,862 posts
  • Location:Heerlen, NL

Posted Thu Jun 7, 2018 5:31 PM

Hello Jon

 

Re: Ultimate Cart: Not even with a firmware rewrite?  (I'm not saying that YOU should do that!)

 

Will there be a player for the AVG cart?

 

Re: Fujiama: Maybe next year?  Next year the Fujiama will last for a whole week!

 

Sincerely

 

Mathy



#125 Mathy OFFLINE  

Mathy

    River Patroller

  • 2,862 posts
  • Location:Heerlen, NL

Posted Thu Jun 7, 2018 5:39 PM

Hello Xuel

 

Just tried FujiConvert 0.2.1.  At first I thought I had done something wrong.  But if you press the space bar when asked to press any key, the sample won't play until you hit the space bar again.  Oops.

 

And could you please add the option to choose between "start over" and "stop" when the end of the sample is reached?

 

Sincerely

 

Mathy






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users