Author Topic: New release of Sid player  (Read 3890 times)

0 Members and 1 Guest are viewing this topic.

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #25 on: 23:54, 04 August 18 »
I wanted to add it, and sign about the progress, but during unpack, and data preprocess I can not, because 1st page contains the code, and 1st part of packed data, 2nd page contains the 2nd part of packed data, 3rd page is untouched, but I need CPC system variables, and 4th page is fully used for unpacking.I wanted to use 3rd page from 8000h-9fffh for print, but i forgot that CPC video addressing is not linear, so the 1st character row would overwrite CPC system data :(
The name of the song or/and a picture can be displayed after data preprocessing.
If you use your own interrupts routine (writing some at #0x38), you don't need the 3rd page then (and have still access at ROM part of firmware (for loading files from disk...)), the 3rd page - RAM part of firmware is more about cursor/alternating pen color/basic, isn't it ?

Ah yes disk routine from firmware ROM does use a part of &8000 as buffer (sorry)

It's easier to dev for 128KB CPC (8 pages)
« Last Edit: 00:08, 05 August 18 by freemac »

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #26 on: 00:31, 05 August 18 »
It's easier to dev for 128KB CPC (8 pages)
The program uses as much RAM as the machine has, it unpacks the data temporary to page 3 after data preprocessing the data is moved to page2 with different RAM settings, on a 128KB CPC 135 sec music can be played back, on a CPC with 512KB added RAM, 891 sec can be played back.
The border is changing slowly during unpacking, and faster during preprocessing.
>> DiskSID4.ZIP has been removed
« Last Edit: 13:12, 05 August 18 by Geco »

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #27 on: 13:12, 05 August 18 »
I found a smaller error in SIDB9, volume values were adjusted twice for Sawtooth, Triangle, and noise, it has been corrected.

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #28 on: 19:50, 05 August 18 »
I found a smaller error in SIDB9, volume values were adjusted twice for Sawtooth, Triangle, and noise, it has been corrected.
Got no sound with SIDB9 (but nice border-raster  8) )

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #29 on: 09:53, 06 August 18 »
Got no sound with SIDB9 (but nice border-raster  8) )
The previous version of SIDB9 had sound? I have sound with ep128emu, but i do not have normal sound on WInCPC with any versions. Which emulator do you use, or did anybody tried it on real machine?

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #30 on: 14:02, 06 August 18 »
The previous version of SIDB9 had sound? I have sound with ep128emu, but i do not have normal sound on WInCPC with any versions. Which emulator do you use, or did anybody tried it on real machine?
I tryed it on MiST-board FPGA and on WinAPE emulator. I'll retry on them this evening.

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #31 on: 14:48, 06 August 18 »
I tryed it on MiST-board FPGA and on WinAPE emulator. I'll retry on them this evening.
And only SIDB9 had problems? I will have to look into AY write.

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.291
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2176
Re: New release of Sid player
« Reply #32 on: 15:54, 06 August 18 »
And only SIDB9 had problems? I will have to look into AY write.
The problem is the register selection in your code.

In one place you are sending 88 in another 89.

The upper 4 bits must be 0.

See this document:

http://www.ym2149.com/ay8910.pdf

"high order chip select".

"Unless otherwise specified, address bits DA7-DA4 are programmed to recognise only a 0000 code".ep128emu seems to be wrong here.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.291
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2176
Re: New release of Sid player
« Reply #33 on: 15:56, 06 August 18 »
The previous version of SIDB9 had sound? I have sound with ep128emu, but i do not have normal sound on WInCPC with any versions. Which emulator do you use, or did anybody tried it on real machine?
I will check on real hardware tonight and tell you which versions do work.
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #34 on: 17:31, 06 August 18 »
The problem is the register selection in your code.

In one place you are sending 88 in another 89.

The upper 4 bits must be 0.

See this document:

http://www.ym2149.com/ay8910.pdf

"high order chip select".

"Unless otherwise specified, address bits DA7-DA4 are programmed to recognise only a 0000 code".ep128emu seems to be wrong here.
Thank you very much, I will check it.
So it seems then  the AY register selection is wrong.

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #35 on: 19:11, 06 August 18 »
AY register selection has been corrected, playback did not changed, sample rate remained 7299 Hz, only providing data for playback loop became 8 T-state slower.
I tested it on Winape, and WinCPC also, it seems we can forget SIDB and SIDB3, because the quality in these 2 emulators is very poor, probably on real machine also. SIDB8 and SIDB9 was ok.

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #36 on: 19:52, 06 August 18 »
Tests on MiST-board: sidb is degraded but good on its way (can be interesting for sound designers). Got bad cristal noise on sidb3. sidb8 is really cool, sidb9 works fine (more agressive: cool also)

sidb8 LASTNIN0.M64

http://www.youtube.com/watch?v=faOUNIqPu0M

sidb9 COMMANDO.M64 (one speaker set lower than the other one :p)

http://www.youtube.com/watch?v=SWBeszpZQDg
« Last Edit: 21:35, 06 August 18 by freemac »

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.291
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2176
Re: New release of Sid player
« Reply #37 on: 20:51, 06 August 18 »
AY register selection has been corrected, playback did not changed, sample rate remained 7299 Hz, only providing data for playback loop became 8 T-state slower.
I tested it on Winape, and WinCPC also, it seems we can forget SIDB and SIDB3, because the quality in these 2 emulators is very poor, probably on real machine also. SIDB8 and SIDB9 was ok.
@Geco:I can't run it from drive B. My drive B is gotek and my drive A is not connected at the moment.
The best way to do this is to use BASIC to load the file and then it will use the drive that the basic program was run from.

My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.291
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2176
Re: New release of Sid player
« Reply #38 on: 20:54, 06 August 18 »
@Geco:
Is the sid player designed for CPC speaker or CPC stereo output?


My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #39 on: 21:19, 06 August 18 »
@Geco:I can't run it from drive B. My drive B is gotek and my drive A is not connected at the moment.
The best way to do this is to use BASIC to load the file and then it will use the drive that the basic program was run from.
Do you mean the program should be loaded by a basic loader? If yes, I have to make small modification, as i see it can not be loaded to &80 from basic.
@Geco:
Is the sid player designed for CPC speaker or CPC stereo output?
It designed to sounds somehow ;) 3 SID channels are written to 3 AY volume registers, so it becomes stereo.

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #40 on: 21:21, 06 August 18 »
Tests on MiST-board: sidb is degraded but good on its way (can be interesting for sound designers). Got bad cristal noise on sidb3. sidb8 is really cool, sidb9 works fine (more agressive: cool also)
Cool, thank you very much :) I heard the cristal noise of SIDB3, but it was not so bad on EP128emu, I will remove SIDB3 and SIDB, and I will create a version which can be loaded from basic for SIDB8 and SIDB9

Offline arnoldemu

  • Supporter
  • 6128 Plus
  • *
  • Posts: 5.291
  • Country: gb
    • Unofficial Amstrad WWW Resource
  • Liked: 2176
Re: New release of Sid player
« Reply #41 on: 21:26, 06 August 18 »
Do you mean the program should be loaded by a basic loader?
Yes please
If yes, I have to make small modification, as i see it can not be loaded to &80 from basic.
When using basic you can load to &384 (this is lowest), but it's fine to load and relocate to &80.When loading from basic you do not need to initialise any roms. It is done for you.

It designed to sounds somehow ;) 3 SID channels are written to 3 AY volume registers, so it becomes stereo.
ok.:)
My games. My Games
My website with coding examples: Unofficial Amstrad WWW Resource

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #42 on: 21:56, 06 August 18 »
When using basic you can load to &384 (this is lowest), but it's fine to load and relocate to &80.When loading from basic you do not need to initialise any roms. It is done for you.
I created a basic loader, and did not modify the programs, I hope ROM initialisation does not cause any problem. Load the program to 4000h and copy to 0080h
And I removed SIDB and SIDB3 from the disk

>>DiskSID7.zip has been removed
« Last Edit: 20:06, 08 August 18 by Geco »

Offline ASiC

  • Supporter
  • CPC664
  • *
  • Posts: 92
  • Country: gb
  • Liked: 53
Re: New release of Sid player
« Reply #43 on: 22:19, 06 August 18 »
Last Ninja with SIDB8 sounds soooo good!!!
Well done buddy  :)

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #44 on: 22:26, 06 August 18 »
Last Ninja with SIDB8 sounds soooo good!!!
Well done buddy  :)
Cool :) I thought that SIDB9 is better, on EP128emu i heard it better :) , and I tried to compensate non linear AY volumes in SIDB9.
« Last Edit: 22:32, 06 August 18 by Geco »

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #45 on: 22:39, 06 August 18 »
Cool :) I thought that SIDB9 is better, on EP128emu i heard it better :) , and I tried to compensate non linear AY volumes in SIDB9.

Yes SIDB9 does saturate as the original SID with COMMANDO.M64, SIDB8 seems correcting too much the signal => SIDB9 is nicely aggressive.

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #46 on: 14:43, 07 August 18 »
Have you lowered twice the CPC channel B volume ?


SID has 3 channels (ABC) and is done for mono sound, and CPC Yamaha has 3 channels (AB) + (BC)

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #47 on: 15:43, 07 August 18 »
Have you lowered twice the CPC channel B volume ?
SID has 3 channels (ABC) and is done for mono sound, and CPC Yamaha has 3 channels (AB) + (BC)
No  :-[ I thought the difference is only is 2/3 1 2/3, but if i do it, it cause a bit worse quality, because the digi loop slows down by 28 T-States, I think I will try to create a SIDB10 with lowered B channel.

Offline freemac

  • CPC6128
  • ****
  • Posts: 287
  • Country: 00
  • Liked: 207
Re: New release of Sid player
« Reply #48 on: 10:05, 08 August 18 »
No  :-[ I thought the difference is only is 2/3 1 2/3, but if i do it, it cause a bit worse quality, because the digi loop slows down by 28 T-States, I think I will try to create a SIDB10 with lowered B channel.
In fact it depends : using headphones or not. So you can choice between half and full for channel B. I'm not really expert but I don't think half is really the best choice, perhaps has to try several ratio : 50% 66.6% 75% 83.3% 100%  :-\

Offline Geco

  • CPC664
  • ***
  • Posts: 70
  • Country: hu
  • Liked: 52
Re: New release of Sid player
« Reply #49 on: 11:57, 08 August 18 »
In fact it depends : using headphones or not. So you can choice between half and full for channel B. I'm not really expert but I don't think half is really the best choice, perhaps has to try several ratio : 50% 66.6% 75% 83.3% 100%  :-\
;D Ok, I will create some other versions, and i got to my mind last evening after some beers, that I do not have to modify the playback routine so sample rate will not change, i will modify the volume at data preprocessing on AY Channel 9.