Zap-Matlab
Matlab GUI which implements Zafar's audio player (Zap), featuring some practical functionalities such as a playback line, a select/drag tool, and a synchronized spectrogram.
Files:
- zap.m: Matlab GUI which implements Zap.
- audio_file.wav: audio file used for the examples.
zap.m
Zap implements a simple audio player as a Matlab programmatic GUI. The user can open a WAV or MP3 file, play/stop the audio, select/drag a region to play, and zoom and pan on the axes. The code is self-explanatory, heavily commented, and fully modular. Parts of the code can be helpful for other GUIs, especially the playtool function which displays a playback line as the playback is in progress and the selecttool function which allows the user to create a selection line or region on the audio to play.
Functionalities:
- Open
- Play/Stop
- Select/Drag
- Zoom
- Pan
Author:
- Zafar Rafii
- zafarrafii@gmail.com
- http://zafarrafii.com
- https://github.com/zafarrafii
- https://www.linkedin.com/in/zafarrafii/
See also: https://github.com/zafarrafii/Zap-Matlab
Cite As
Zafar (2026). Zap-Matlab (https://github.com/zafarrafii/Zap-Matlab/releases/tag/v1.0), GitHub. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0 |
