Page 1 of 1
Waveform Widget
Posted: Tue Oct 13, 2026 3:31 pm
by pklum
Hi,
I have created a FREE "Waveform" widget that allows you to display an audio waveform.
The widget supports:
- mono and stereo files in MP3, WAV, and FLAC formats.
- Stereo channels can be displayed separately or overlaid on top of each other.
- Zooming and panning within the waveform (along the time axis) can be controlled via parameters or interactively using mouse click-and-drag or the scroll wheel.
- A grid—including labels that adjust based on the zoom level—can be enabled. Time labels can be set to "Seconds," "Samples," or "SMPTE," and amplitude levels can be displayed as "%" or "dB" (decibels).
- A data marker can be displayed to show individual sample values.
- RGBA colors can be set individually for the widget background, left/right channels, labels, grid, and the data marker's text and background.
I’m fairly new to forums. How do I go about pasting screenshots of the widget, publish download a link and providing contact details in the forum?
Best regards,
Peter
Re: Waveform Widget
Posted: Tue Oct 13, 2026 4:46 pm
by Klaus
hi Peter,
sounds great!
You need seven postings before you can post images, links etc.
So one more posting and you can promote you widget here!
Best
Klaus
Re: Waveform Widget
Posted: Tue Oct 13, 2026 5:47 pm
by dunbarx
Peter.
We will not mind if you post a handful of nearly blank messages to get over the hump.
Craig
Re: Waveform Widget
Posted: Tue Oct 13, 2026 6:59 pm
by pklum
Hi,
Sounds good – thanks!
I’ll make a small change to the widget and then try again.
Best regards,
Peter
Re: Waveform Widget
Posted: Tue Oct 13, 2026 7:52 pm
by pklum
Hi,
I am releasing a FREE Waveform Widget. The widget has been tested in Livecode Create 1.0 (DP12) Classic Mode.
"Waveform" is an advanced audio waveform widget with mono/stereo support and DAW-like pan/zoom features and tempo/beat detection. Supports MP3, WAV and FLAC audio files in stereo or mono. Developed for macOS (Intel, Apple Silicon and Universal) and Windows (X86-64).
Use the waveform widget to show stereo or mono audio waveform data with full RGBA color picker support, interactive marquee or scroll-wheel zooming, mouse or scroll-wheel panning, adaptive time/amplitude grids and data marker. Format the timeline in "samples", "seconds" or "SMPTE" and the amplitude in "%" or "dB" (decibel). Show separate channels or overlay channels on top of each other. Use widget messages to synchronize multiple waveform widgets or set play position in an player object.
Simply
Code: Select all
set the filename of widget <myWidget> to <audioPath>
to view the waveform of an MP3, WAV or FLAC audio file.
Download the Widget at
https://appic.se/livecode/waveform_widget_1.1.1.zip Please read the ReadMe.txt file in the zip-file.
See the supplied WaveformPlayer.livecode stack that demonstrates optimization and auto-scroll techniques with all properties exposed. The stack will be installed in the sample folder inside /Documents/My LiveCode/Extensions/community.livecode.appic.waveform.version. The WaveformPlayer.livecode requires the FREE MixPlay Widget that can be downloaded at
https://appic.se/livecode/livecode.html.
Visit
https://appic.se/livecode/livecode.html for more widgets.
Developed by Appic (
https://appic.se/).
Powered by dr_libs (
https://github.com/mackron/dr_libs) and kissFFT (
https://github.com/mborgerding/kissfft).
If you find bugs or have suggestion for features, please contact mailto:
contact@Appic.se
Best Regards,
Peter
Re: Waveform Widget
Posted: Wed Oct 14, 2026 11:42 pm
by pklum
Hi,
Waveform Widget update history.
Version 1.0.0
Version 1.0.1
- BUGFIX: LabelColor is now saved
- BUGFIX: Orphan message timeClicked removed. It is named clickedSample.
- CHANGE: Changed some Property Names (audioPath to filename, audioFrames to duration, audioSampleRate to timeScale), to match the property names used in the Player Object.
- NEW: When setting filename the existence of the file is checked. If the file does not exist, the filename property is set to empty.
- UPDATE: Documentation updated.
Version 1.0.2
- BUGFIX: Now handles filenames with international characters (åäö, etc).
- BUGFIX: To clear the waveform with 'set the filename of <widget> to empty' now works.
Version 1.0.3 released 2026-11-01
- CHANGE: Track data are now buffered in LCB minimizing C++ calls. Improved performance with objects overlapping the waveform widget.
- CHANGE: Documentation changes. "Snapshot" example to optimize rendering furthermore using a static waveform when objects overlap.
- CHANGE: Changed title to "Waveform"
MAJOR UPDATE Version 1.1.0, 2026-11-12
- NEW: Option for advanced tempo and beat detection powered by kissFFT. Average tempo and beat positions are detected using Fast Fourier Transform (FFT) and autocorrelation. A new timeFormat "Beats" to display measures and beats labels/grid.
The detected beats can be extracted (get the beatArray from <widget>) containing:
- time(Real): The precise timestamp of the beat in seconds from the start of the audio file.
- isDownbeat (Integer: 0 or 1): Indicates whether the beat is a downbeat / measure accent (1) or a regular beat (0), determined by the time signature and downbeatOffset.
- instantBpm (Real): The calculated instantaneous tempo (BPM) at this specific beat position.
- NEW: get the amplitudeArray of <widget> to obtain a peak amplitude array for the currently loaded audio range, allowing external scripts to analyze waveform data, drive custom VU meters, or perform audio processing.
Version 1.1.1, 2026-11-22
- BUGFIX: The message 'audioLoaded' is now sent properly when an audio source has been loaded into the widget.
- CHANGE: The default colors have been changed for better contrast.
- CHANGE: Optimization of OnPaint for efficiency.
- CHANGE: Waveform is now displayed without baseline filling.
- CHANGE: zoomChanged message sent only when zoom range changes(!).
- CHANGE: Better scrollwheel zoom and panning with shorter inertia scrolling.
- CHANGE: Option+scrollwheel to pan (more like option+mousedrag to pan).
- NEW: Added the timeFormat "TimeCode" to show time as HH:MM:SS.sss
- CHANGE: Time grid now updates down to milliseconds when timeFormat set to "Seconds".
- NEW: A demonstration stack 'WaveformPlayer.livecode' that demonstrates the widget and optimization techniques can be found in the /samples/ folder. Observe that the 'WaveformPlayer.livecode' requires the MixPlay widget as using the 'export snapshot' optimization technique during playback will interrupt the Livecode Player object. Download the FREE MixPlay widget from https://www.appic.se/livecode/livecode.html.
Download the widget at
https://appic.se/livecode/waveform_widget_1.1.1.zip
Regards,
Peter
Re: Waveform Widget
Posted: Thu Oct 15, 2026 6:57 pm
by Klaus
Very, very cool, Peter!
Tack så mycket för ditt fantastiska arbete för samhället!
(According to Google tranlate

)
Re: Waveform Widget
Posted: Thu Oct 15, 2026 8:14 pm
by pklum
Thank You!
"Samhället" in Swedish means "the Society"! That feels a bit grand. I’m happy if the community finds it useful!
Regards,
Peter
Re: Waveform Widget
Posted: Thu Oct 15, 2026 8:36 pm
by Klaus
Complain at Google! I actually entered "community" and that's what Google translate returned.

As a musician, I am curious to take a look at your upcoming "mixing" widget soon...

Re: Waveform Widget
Posted: Thu Oct 15, 2026 11:28 pm
by pklum
Hi Klaus,
I'm also a musician (Guitar, Vocals) but have previous played drums and also bass (my bands Youtube channel
https://www.youtube.com/@RecoveryMusic. What do you play?
I'm developing an desktop app called BandAid for musicians
https://appic.se/apps/bandaid/about.html and are planning to incorporate both the Waveform and the MixPlay widget into BandAid soon. First I made a MixPlay Library that worked fine. But decided to convert it to a widget in order to be able to have multiple MixPlay widget in a stack. I then got into troubles and decided instead to develop the Waveform Widget in order to learn LCB (newbie) and widgets. Now I am back and struggling to get the MixPlay widget to work properly. Hopefully I can release it in about a week.
Regards,
Peter
Re: Waveform Widget
Posted: Fri Oct 16, 2026 11:13 am
by Klaus
Hi Peter,
I have been a professional bass player in the past.
Retired now and play just as a hobby, see here for some bio, audio and video:
https://major-k.de/bass/index.html
Best from germany
Klaus