Sound editor

1. Make the sound effect data with Sound Editor

Launch Sound Editor from [Tools]-[Sound Editor] menu.
The sound effect data has the following parameters.
Volume... sets the volume
Tone..... sets the frequency of the tone
Noise.... sets the frequency of the noise
Tone+.... increases or decreases the frequency of the tone
Volume+.. increases or decreases the frequency of the volume
Wait..... waits
Loop..... repeats
Register. writes the value of PSG directly


2. Export the sound effect data

Export the sound effect data from [File]-[Export] menu.


3. Use the sound effect data

- Example
include bios.ccz80++
include sound.ccz80++

class MainClass{
 static short sedata[]={## Paste the sound effect data to here ##};

 static void main(){
  sound.set(&sedata);
  sound.play(1);
  while(bios.strig(0)==0);
  sound.play(2);
  }
 }

back