├── .gitignore ├── LICENSE ├── Makefile ├── README-SDL.txt ├── README.md ├── oscilloscoper-0.3-win32 └── README.md └── src ├── DspFilters ├── Bessel.cpp ├── Bessel.h ├── Biquad.cpp ├── Biquad.h ├── Butterworth.cpp ├── Butterworth.h ├── Cascade.cpp ├── Cascade.h ├── ChebyshevI.cpp ├── ChebyshevI.h ├── ChebyshevII.cpp ├── ChebyshevII.h ├── Common.h ├── Custom.cpp ├── Custom.h ├── Design.cpp ├── Design.h ├── Documentation.cpp ├── Dsp.h ├── Elliptic.cpp ├── Elliptic.h ├── Filter.cpp ├── Filter.h ├── Layout.h ├── Legendre.cpp ├── Legendre.h ├── MathSupplement.h ├── Param.cpp ├── Params.h ├── PoleFilter.cpp ├── PoleFilter.h ├── RBJ.cpp ├── RBJ.h ├── RootFinder.cpp ├── RootFinder.h ├── SmoothedFilter.h ├── State.cpp ├── State.h ├── Types.h └── Utilities.h ├── Encoder.cpp ├── Encoder.hpp ├── Main.cpp ├── Oscilloscope.cpp ├── Oscilloscope.hpp ├── Screen.cpp ├── Screen.hpp ├── Wave.cpp └── Wave.hpp /.gitignore: -------------------------------------------------------------------------------- 1 | # Compiled Object files 2 | *.slo 3 | *.lo 4 | *.o 5 | *.obj 6 | 7 | # Precompiled Headers 8 | *.gch 9 | *.pch 10 | 11 | # Compiled Dynamic libraries 12 | *.so 13 | *.dylib 14 | *.dll 15 | 16 | # Fortran module files 17 | *.mod 18 | *.smod 19 | 20 | # Compiled Static libraries 21 | *.lai 22 | *.la 23 | *.a 24 | *.lib 25 | 26 | # Executables 27 | *.exe 28 | *.out 29 | *.app 30 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2016 Tero Lindeman 4 | 5 | DSP Filters Library and DSP Demo Application Copyright (c) 2009 by Vinnie Falco 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in all 15 | copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23 | SOFTWARE. 24 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | oscilloscoper.exe: src/*.cpp src/*.hpp 2 | g++ -O3 -o oscilloscoper.exe src/*.cpp src/DspFilters/*.cpp -I src -I . -I /mingw/include/sdl2 -lmingw32 -lSDL2main -lSDL2.dll -D__STDC_CONSTANT_MACROS -lavcodec -lavutil -lavformat -lavfilter -lavdevice -lswscale -s 3 | -------------------------------------------------------------------------------- /README-SDL.txt: -------------------------------------------------------------------------------- 1 | 2 | Please distribute this file with the SDL runtime environment: 3 | 4 | The Simple DirectMedia Layer (SDL for short) is a cross-platform library 5 | designed to make it easy to write multi-media software, such as games and 6 | emulators. 7 | 8 | The Simple DirectMedia Layer library source code is available from: 9 | http://www.libsdl.org/ 10 | 11 | This library is distributed under the terms of the zlib license: 12 | http://www.zlib.net/zlib_license.html 13 | 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # oscilloscoper 2 | 3 | Creates oscilloscope videos from WAV files. Multiple files can be simultaneously rendered in the same video. Output is a raw H.264 stream. You need to use e.g. ffmpeg to mux the video stream with the audio in a playable container like MP4. 4 | 5 | ## Usage 6 | 7 | ``` 8 | oscilloscoper.exe WavFile1.wav WavFile2.wav ... 9 | ``` 10 | 11 | ### Muxing with ffmpeg 12 | 13 | ``` 14 | oscilloscoper -fps 50 Input.wav 15 | ffmpeg -i Input.wav -r 50 -i Output.h264 -vcodec copy Output.mp4 16 | ``` 17 | 18 | ## Input files 19 | 20 | Oscilloscoper reads normal PCM RIFF wave files. Stereo files will be reduced into mono files. Oscilloscoper tries to center the current oscilloscope display to zero crossings. For more complex input (with noise etc.) you can use the filtering options to try to stabilize the display. 21 | 22 | ## Command line options 23 | 24 | ```-output ``` 25 | Set output filename. Default is Output.h264. 26 | 27 | ```-width