Widget to display waveform.

Audio software developers forum.
Forum rules
If you require help using Audacity, please post on the forum board relevant to your operating system:
Windows
Mac OS X
GNU/Linux and Unix-like
Post Reply
apoorv569
Posts: 1
Joined: Sun Nov 22, 2020 8:04 pm
Operating System: GNU/Linux other

Widget to display waveform.

Post by apoorv569 » Sun Nov 22, 2020 8:09 pm

I'm making a application using wxWidgets, and as Audacity also used wxWidgets for GUI toolkit, I wanna know which widget Audacity uses to display the waveform when you load a audio file to it.

Sorry if this is the wrong board to ask such question.

steve
Site Admin
Posts: 81227
Joined: Sat Dec 01, 2007 11:43 am
Operating System: Linux *buntu

Re: Widget to display waveform.

Post by steve » Mon Nov 23, 2020 11:24 pm

The drawing of the waveform in Audacity is rather complex. You can view the code here: https://github.com/audacity/audacity/bl ... Artist.cpp
9/10 questions are answered in the FREQUENTLY ASKED QUESTIONS (FAQ)

jademan
Forum Crew
Posts: 1274
Joined: Fri Jul 17, 2009 10:11 pm
Operating System: Please select

Re: Widget to display waveform.

Post by jademan » Sun Nov 29, 2020 7:33 pm

apoorv569 wrote:
Sun Nov 22, 2020 8:09 pm
wxWidgets for GUI toolkit, I wanna know which widget Audacity uses to display the waveform when you load a audio file to it.

From https://wiki.audacityteam.org/wiki/Developer_Guide
"The GUI code is mostly written using wxWidgets library, which handles dialogs and common GUI controls. HOWEVER, the waveforms (in the TrackPanel) is not a standard widget, and Audacity code draws the TrackPanel itself, placing the lines and text and clickable icons."

Post Reply