Author Topic: Next JavaCPC will come with internal YM-fileplayer  (Read 3798 times)

0 Members and 1 Guest are viewing this topic.

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Hello folks!
I am actually coding on a YM-filerecorder and player for my JavaCPC emulator.

Actually it can:
- Record up to 40 hours YM music into 1 YM file (interleaved)
- Playback interleaved and non-interleaved YM files
- Playback of Amstrad CPC and! Atari ST YM files with 2000000hz!

it cannot:
- LHA crunch/uncrunch YM files, so crunched YM files are not supported
- Playback ZX Spectrum YM files (I am working on it)

Preview:
- here (playback of "Speedball 2" tune from Atari ST

I hope, you will like this feature coming with next release...

Cheers,
Markus
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #1 on: 17:55, 25 March 09 »
Watch this "realtime online demo":
Click here

Another example:
Click here

Please make sure, that you quit emu using menu - file - quit before opening the next url

You can also use menu: Edit - Show YM-Control  ;)
« Last Edit: 18:15, 25 March 09 by CPC-Live »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.573
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3140
  • Likes Given: 5795
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #2 on: 19:59, 25 March 09 »
This is lovely, especially if there's an online YM library to draw from... :)

Cybernoid sounds a bit 'watery' to me, but I'm not sure. But why do we see only two EQ bars?

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #3 on: 20:02, 25 March 09 »
This is lovely, especially if there's an online YM library to draw from... :)

Cybernoid sounds a bit 'watery' to me, but I'm not sure. But why do we see only two EQ bars?

You see two VU-meter bars:
RED: Left audiochannel
GREEN: Right audiochannel
(Stereo provides 2 channels)  ;)

'bout Cybernoid 2 tune:
It is an Atari ST tune.
JavaCPC can playback Atari ST YM, but no warranty, that it's 100% correctly.

Also don't forget:
AY-emulation is used for playback! The emulation is also not 100% perfect...
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.573
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3140
  • Likes Given: 5795
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #4 on: 20:05, 25 March 09 »
Ah so it's a channel volume meter, duhhhh.... Ok.

Yeah, I know it's an ST tune (big fan of ST here!), will have to check it against the real thing to see. But it's nice :) What engine did you use?

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #5 on: 20:33, 25 March 09 »
What engine did you use?

I don't know, what you mean.
I am using AY-3-8910 emulation of JavaCPC to playback the YM files.
Each VSync all 16 PSG-registers are filled with YM-file values.

When a ST-tune is loaded, I simply change AY-3-8910 update step speed.

After a STOP or a RESET, or after the YM player stops playing, the update step speed is set to CPC-value.

During the YM playback, the CPC-display is not rendered, and you see the "JavaCPC YM-Player" display.

EDIT: Another great ST-tune: Speedball
« Last Edit: 20:39, 25 March 09 by CPC-Live »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Gryzor

  • Administrator
  • 6128 Plus
  • *****
  • Posts: 15.573
  • Country: gr
  • CPC-Wiki maintainer
    • CPCWiki
  • Liked: 3140
  • Likes Given: 5795
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #6 on: 09:45, 26 March 09 »
No, I meant if you used the YM emulation engine by someone else, but apparently you coded it yoruself :)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #7 on: 14:07, 26 March 09 »
No, I meant if you used the YM emulation engine by someone else, but apparently you coded it yoruself :)

Yes, I coded the routines.
Thanks to Demoniak, Kev Thacker and Plissken for advice!
Here's a small demonstration video, how to record and save YM files with next JavaCPC (not released yet, stay tuned...)
http://cpc-live.com/videos/recym

Cheers,
Markus
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Executioner

  • Supporter
  • 6128 Plus
  • *
  • Posts: 783
  • Country: au
  • WinAPE Developer
    • WinAPE
  • Liked: 391
  • Likes Given: 60
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #8 on: 02:29, 27 March 09 »
Yes, I coded the routines.
Thanks to Demoniak, Kev Thacker and Plissken for advice!

I seem to remember writing the AY emulation for JEMU myself.
 
Interesting that you did the player as part of the emulator, especially since you can't do the emulation at the same time (unless you use more sound channels and another thread!)

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #9 on: 12:29, 27 March 09 »

I seem to remember writing the AY emulation for JEMU myself.
 
Interesting that you did the player as part of the emulator, especially since you can't do the emulation at the same time (unless you use more sound channels and another thread!)

You are right. You coded the AY emulation.  :)
I was talking about coding the routines for recording and playback.  8)
I also included some extra-code in AY emulaton, too, like 'changeClockSpeed(int value)'
Sorry for miss-understanding this.

In fact, I did not add channels.
During playback the Display is not shown, and keyboard input is blocked.
If you start a game for example, which has music, and want to playback a YM file simulteanously, this causes bad sound. So, the emulation should be resetted first.
I will also disable FDC cycles and other things during playback.
« Last Edit: 12:31, 27 March 09 by CPC-Live »
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release

Offline Devilmarkus

  • Vivid source of indefiniteness
  • 6128 Plus
  • ******
  • Posts: 4.035
  • Country: de
  • WebCPC / JavaCPC developer
    • index.php?action=treasury
    • CPC-Live website
  • Liked: 1014
  • Likes Given: 926
Re: Next JavaCPC will come with internal YM-fileplayer
« Reply #10 on: 23:27, 27 March 09 »
Betatest for next JavaCPC available!

Hello guys,
today I compiled an .EXE file for next JavaCPC release as beta test.
Please download:
http://cpc-live.com/Release.zip

No JAR or other format available now. So Windows only...
No sources available (please ask if you want sources)

Later, also sources and JAR file will be available...

Sorry, no documentation included.
You can use the YM-Control deck using:
- Click "Edit -> Show YM-Control"
or:
- Click "File -> Load" and load a YM file, the player will start automatically.

Please regard:
- Only YM3, YM5 and YM6 files are supported
- LHA crunched files don't work, please uncompress them first
- Reset emulator first, before playing a YM tune
- If you save a YM file, it will be saved in YM5 format.
- Loaded YM3 format files will be saved as YM3, too.

Please post your feedback here.
I am still optimizing some things, before I will officially release it.
So I need your feedbacks...

Cheers,
Markus
When you put your ear on a hot stove, you can smell how stupid you are ...

Amstrad CPC games in your webbrowser

JavaCPC Desktop Full Release