This repository has been archived by the owner. It is now read-only.
Display the waveform for an audio file
Objective-C
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Demo
.gitignore
HybridWaveformView.h
HybridWaveformView.m
LICENSE
LiveWaveformView.h
LiveWaveformView.m
Preview.png
README.md
WaveformView.h
WaveformView.m
WaveformViewShared.h

README.md

WaveformView

WaveformView Preview

My take on an NSView subclass that can display the waveform for an audio file, allowing customisability of colors, play/stop control and image generation (from the view).

I'd recommend looking through the code and adapting/modifying to suit your needs.

Note If you're looking for an extremely accurate high performance visualization of a sound file or live sound recording, there are most likely alternatives that would better suit you.

Classes


WaveformView is a general-purpose waveform view to visualize a .wav file.


LiveWaveformView will show a live waveform for a given AVAudioRecorder.


HybridWaveformView is a hybrid/combination of both of these - it's a bit experimental and not perfect. It should display a rough "live" waveform, then switch to an accurate waveform once recording has stopped and the sound recording files has been saved and loaded.