Skip to content

C64 SID sound editor + player written in 6510 assembly

Notifications You must be signed in to change notification settings

nurpax/c64-sid-edit

Repository files navigation

C64 SID sound editor

C64 SID sound editor written in 6510 assembly.

screen shot 2018-04-25 at 11 55 10 pm

How to run:

Prerequisites: Install KickAssembler.

Compile startup.asm and load into VICE C64 emulator:

# Compile
java cml.kickass.KickAssembler startup.asm -o sidedit.prg
# Run in VICE
x64 sidedit.prg

Keyboard shortcuts

Most keyboard shortcuts (like F for freq, A for attack, etc.) are shown in the UI.

Use F1-F4 to select waveforms.

Press 'X' to load "snapshot saved" sounds from sounds.bin. Note that you need to recompile the editor if you update sounds.bin and want them available in the editor.

How to save and use edited sounds

This program doesn't have a "save" feature. However, when running in VICE, you can save a snapshot of the C64 state. This way you can save and load different sounds. To use the edited sounds in your own program, you need to extract the sound data from a VICE RAM snapshot. Here's how to do these steps:

  1. Run the editor. You can load previously edited sound data by loading in a VICE snapshot.
  2. Edit sounds.
  3. Save a snapshot (on Mac, press F12 to open VICE menu, Select "Snapshot", hit "Quicksave snapshot.svf".)
  4. snapshot.svf now contains full machine state, including C64 RAM.
  5. Extract sounds from snapshot.svf: run "stack runghc GrabSounds.hs". This will load snapshot.svf and store the edited sound parameters into sounds.bin.
  6. Import the sounds.bin into your program. See load_and_play function in startup.asm on how to do this.
  7. In your app init, call soundfx.init. In your raster IRQ, call soundfx.play to play the sounds.

See Stack Homepage on how to install the stack command used to compile & run GrabSounds.hs.

About

C64 SID sound editor + player written in 6510 assembly

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published