Basic drum machine written in C++ using iimavlib library.
Add to examples/CMakeLists.txt file inside IF (BUILD_EXAMPLES) IF(SDL_FOUND) block:
add_executable(app app.cpp)
target_link_libraries ( app ${EX_LIBS} )
install(TARGETS app RUNTIME DESTINATION bin)
Copy app.cpp file to examples/.
./prepare_linux.sh
cd build
make
./bin/app
These instructions will show you how to start and use this program.
Device id has to be specified as first argument. If you want to use default device, use "DEFAULT" keyword.
./app <device id|DEFAULT> [wav files or directories]
Wav files should have sample rate 44.1 kHz with 16 bits per sample.
Launch with default device and without any wav file:
./app DEFAULT
Launch with device having id = "hw:0,0" and with two wav files:
./app "hw:0,0" ./wav/kick.wav ./wav/snare.wav
Launch with default device and with directory, containing several wav files:
./app DEFAULT ./wav
- Stop / Play button
- Hotkeys
- Color schemes
- Paginator
- Master volume controller
- Tempo controller
- Track name
- Blue button - reverse playback, green button - toggle mute
- Active grid cells
- Inactive grid cells
- Per track volume controller