  ___________________________                        
  \_   ___ \______   \_   ___ \                       
  /    \  \/|     ___/    \  \/                       
  \     \___|    |   \     \____                      
   \______  /____|    \______  /                      
          \/                 \/                       
      _________ __        __________                  
     /   _____//  |_  ____\______   \ ____  ____      
     \_____  \\   __\/ __ \|       _// __ \/  _ \     
     /        \|  | \  ___/|    |   \  ___(  <_> )    
    /_______  /|__|  \___  >____|_  /\___  >____/     
            \/           \/       \/     \/           
         _________             __________.__          
        /   _____/____    _____\______   \  |   ____  
        \_____  \\__  \  /     \|     ___/  | _/ __ \ 
        /        \/ __ \|  Y Y  \    |   |  |_\  ___/ 
       /_______  (____  /__|_|  /____|   |____/\___  >
               \/     \/      \/                   \/ 
          __________.__        _____.___.             
          \______   \  | _____ \__  |   | ___________ 
           |     ___/  | \__  \ /   |   |/ __ \_  __ \
           |    |   |  |__/ __ \\____   \  ___/|  | \/
           |____|   |____(____  / ______|\___  >__|   
                              \/\/           \/       


WAVtoCPC Tool © 2020 by Markus Hohmann
--------------------------------------

- Requires 64bit Windows and 64bit Java to work (www.java.com)
- WAVtoCPC.jar is included for users, who don't have enough money to buy their OS, and
  prefer open-source OS'es or MacOS.
  This is totally untested and may cause problems. Usually you can start it with a command line like:
  java -jar WAVtoCPC.jar


StereoSamplePlayer.asm © 2020 by Prodatron of SymbiosiS & Devilmarkus
---------------------------------------------------------------------

- Requires an Amstrad CPC with Z80 assembler, written and tested with JavaCPC Assembler


What's this?
With the WAVtoCPC tool you can produce sample files in stereo format for the Amstrad CPC.
Your CPC in the best case has a 4mb RAM expansion. :-)

Guide?
Well, I hate writing guides, but when you follow a few simple steps, you will get a nice result soon.

First, start the tool and import an audio file. 
Best is 8 bit WAV, 16,12,11,8 khz, stereo, but also other formats and also .MP3 is supported.
Make sure, your audio file is very LOUD, as the CPC likes to play LOUD samples.
Silent samples will sound very awful, as we convert them down to 4 bit nibbles, because
the CPC only can handle 4 bit sampled audio.

When you imported your file, you can see in the title bar, how much CPC ram it needs, and the display
is filled with the audio diagram.
If your sample needs more RAM than your CPC has, you can try "Half Rate", this reduces the samplerate.

If you import a MP3 or a 16bit WAV file, you can also choose the desired "Sample Frequency" on the left.

You can always click on "Play" to listen, what you did.

If you are fine with the result, click on "Save".
This writes all SAMPx.BIN files into the same location, where you imported your sample!
If you have ".SAMPLE" enabled, the tool stores one large .SAMPLE file, which you can load into JavaCPC only.

When you stored your sample files, you need to find out how you can load them into your CPC (emulator).
There exist several tools to copy files to DSK images.
If you need more space than one DSK, it's simple: Use more DSK images.
M4 users can direcly load the files into their CPC's.

Now check the StereoSamplePlayer.dsk
It contains the player code and also two examples:
- DISC.BAS demonstrates the whole sample playback
- GBS.BAS  demonstrates short sample playback with effects

To just load the code and enable it:
MEMORY &3FFF:LOAD"CODE.BIN":CALL &9000
- this loads the player code and initializes it.
To get an information about the RSX commands, enter:
|PLAYERHELP

Now, have fun, and feel free to contact me for questions, ideas, donations, whatever.

Devilmarkus
webmaster@cpc-live.com