Python program to render wave files into oscilloscope views, featuring advanced correlation-based triggering algorithm
Go to file
nyanpasu64 902afe54db [poetry] Add coverage.py, pytest-cov, diff-cover, codecov.io 2019-01-11 20:37:52 -08:00
.appveyor Add appveyor.yml (poetry, pytest, pyinstaller) 2018-12-23 15:57:31 -08:00
.idea Enable Pycharm compatibility checking (3.6, 3.7) 2019-01-08 20:31:07 -08:00
corrscope Add grid color (optional) to GUI 2019-01-09 23:38:41 -08:00
tests Simplify channel config (#128) 2019-01-08 14:06:06 -08:00
.gitattributes
.gitignore Datestamp --profile filenames, add GUI --profile (#104) 2019-01-01 00:26:36 -08:00
.pre-commit-config.yaml Revert black formatting for scipy code 2019-01-03 14:23:46 -08:00
LICENSE
README.md Add badges to README.md 2019-01-11 20:34:22 -08:00
appveyor.yml Switch appveyor releases to Python 3.7 (possible speed boost) (#106) 2019-01-09 03:30:58 -08:00
build_pyinstaller.py Set pyinstaller --log-level DEBUG 2019-01-04 02:18:53 -08:00
corrscope.spec [pyinstaller] Cleanup corrscope.spec 2019-01-04 19:22:27 -08:00
poetry.lock [poetry] Add coverage.py, pytest-cov, diff-cover, codecov.io 2019-01-11 20:37:52 -08:00
pyproject.toml [poetry] Add coverage.py, pytest-cov, diff-cover, codecov.io 2019-01-11 20:37:52 -08:00
setup.cfg

README.md

Corrscope

Build status codecov Latest pre-release

Corrscope renders oscilloscope views of WAV files recorded from chiptune (game music from retro sound chips).

Corrscope uses "waveform correlation" to track complex waves (including SNES and Sega Genesis/FM synthesis) which jump around on other oscilloscope programs.

Sample results can be found on my Youtube channel at https://www.youtube.com/channel/UCIjb87rjJZxtNsHUdKXMsww/videos.

Dependencies

  • FFmpeg

Installation

Running from Source Code (cross-platform)

Install Python 3.6 or above (3.5 will not work), and Poetry.

# Install Poetry (only do this once)
curl -sSL https://raw.githubusercontent.com/sdispater/poetry/master/get-poetry.py | python
# Install corrscope
cd path/to/corrscope
poetry install --develop corrscope
poetry run corr (args)

GUI Tutorial

  1. Open GUI:
    • corrscope.exe to create new project
    • corrscope.exe file.yaml to open existing project
  2. Add audio to play back
    • On the right side of the window, click "Browse" to pick a master audio file.
  3. Add oscilloscope channels
    • On the right side of the window, click "Add" to add WAV files to be viewed.
  4. Edit settings
    • Global settings on the left side of the window
    • Per-channel on the right side
  5. Play or render to MP4/etc. video (requires ffmpeg)
    • Via toolbar or menu

Command-line Tutorial

  1. Create YAML:

    • corrscope split*.wav --audio master.wav -w
    • Specify all channels on the command line.
    • -a or --audio specifies master audio track.
    • Creates file master.yaml.
  2. Edit master.yaml to change settings.

  3. Play (requires ffmpeg):

    • corrscope master.yaml -p/--play
  4. Render and encode MP4 video (requires ffmpeg)

    • corrscope master.yaml -r/--render

Contributing

Issues, feature requests, and pull requests are accepted.

This project uses Black code formatting. Either pull request authors can reformat code before creating a PR, or maintainers can reformat code before merging.

You can install a Git pre-commit hook to apply Black formatting before each commit. Open a terminal/cmd in this repository and run:

pip install --user pre-commit
pre-commit install