2018-12-30 02:21:09 +00:00
|
|
|
# Corrscope
|
2018-12-15 03:27:46 +00:00
|
|
|
Python program to render wave files into oscilloscope views, featuring improved correlation-based triggering algorithm
|
|
|
|
|
2018-12-30 02:21:09 +00:00
|
|
|
<!-- screenshot here -->
|
|
|
|
|
2018-12-15 03:27:46 +00:00
|
|
|
## Dependencies
|
|
|
|
|
|
|
|
- FFmpeg
|
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2018-12-30 02:21:09 +00:00
|
|
|
- Releases (recommended): https://github.com/nyanpasu64/corrscope/releases
|
|
|
|
- Dev Builds: https://ci.appveyor.com/project/nyanpasu64/ovgenpy/history
|
|
|
|
- Download Windows binary releases (zip files), then double-click `corrscope.exe` or run `corrscope (args)` via CLI.
|
|
|
|
- Download cross-platform Python packages (whl), then install Python 3.6+ and run `pip install *.whl`.
|
|
|
|
|
|
|
|
## Running from Source Code (cross-platform)
|
|
|
|
|
|
|
|
Install Python 3.6 or above (3.5 will not work), and Poetry.
|
2018-12-15 03:27:46 +00:00
|
|
|
|
|
|
|
```shell
|
2018-12-30 02:21:09 +00:00
|
|
|
# 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)
|
2018-12-15 03:27:46 +00:00
|
|
|
```
|
|
|
|
|
2018-12-30 02:21:09 +00:00
|
|
|
<!--
|
|
|
|
### Conda (possibly installs pyqt5 twice and breaks env)
|
|
|
|
|
2018-12-15 03:27:46 +00:00
|
|
|
```shell
|
|
|
|
conda create -n ovgenpy python=3.6 pip numpy scipy matplotlib pyqt=5
|
|
|
|
pip install -e .
|
2018-12-30 02:21:09 +00:00
|
|
|
python -m corrscope (args)
|
2018-12-15 03:27:46 +00:00
|
|
|
```
|
2018-12-30 02:21:09 +00:00
|
|
|
-->
|
|
|
|
|
|
|
|
## GUI Tutorial
|
|
|
|
|
|
|
|
1. Open GUI:
|
|
|
|
- `corrscope.exe` to create new project
|
|
|
|
- `corrscope.exe file.yaml` to open existing project
|
|
|
|
1. Add audio to play back
|
|
|
|
- On the right side of the window, click "Browse" to pick a master audio file.
|
|
|
|
1. Add oscilloscope channels
|
|
|
|
- On the right side of the window, click "Add" to add WAV files to be viewed.
|
|
|
|
1. Edit settings
|
|
|
|
- Global settings on the left side of the window
|
|
|
|
- Per-channel on the right side
|
|
|
|
1. Play or render to MP4/etc. video (requires ffmpeg)
|
|
|
|
- Via toolbar or menu
|
|
|
|
|
2018-12-15 03:27:46 +00:00
|
|
|
|
|
|
|
## Command-line Tutorial
|
|
|
|
|
|
|
|
1. Create YAML:
|
2018-12-30 02:21:09 +00:00
|
|
|
- `corrscope split*.wav --audio master.wav -w`
|
2018-12-15 03:27:46 +00:00
|
|
|
- Specify all channels on the command line.
|
|
|
|
- `-a` or `--audio` specifies master audio track.
|
|
|
|
- Creates file `master.yaml`.
|
|
|
|
|
|
|
|
1. Edit `master.yaml` to change settings.
|
|
|
|
|
|
|
|
1. Play (requires ffmpeg):
|
2018-12-30 02:21:09 +00:00
|
|
|
- `corrscope master.yaml -p/--play`
|
2018-12-15 03:27:46 +00:00
|
|
|
|
|
|
|
1. Render and encode MP4 video (requires ffmpeg)
|
2018-12-30 02:21:09 +00:00
|
|
|
- `corrscope master.yaml -r/--render`
|