SonogramView alternatives and similar libraries
Based on the "Audio" category.
Alternatively, view SonogramView alternatives based on common mentions on social networks and blogs.
-
EZAudio
An iOS and macOS audio visualization framework built upon Core Audio useful for anyone doing real-time, low-latency audio processing and visualizations. -
PandoraPlayer
🅿️ PandoraPlayer is a lightweight music player for iOS, based on AudioKit and completely written in Swift. -
AudioPlayer
AudioPlayer is syntax and feature sugar over AVPlayer. It plays your audio files (local & remote). -
IQAudioRecorderController
A drop-in universal library allows to record audio within the app with a nice User Interface. -
TheAmazingAudioEngine2
The Amazing Audio Engine is a sophisticated framework for iOS audio applications, built so you don't have to.
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of SonogramView or a related project?
README
SonogramView
Audio visualisation of song
Requirements
- iOS 8.0+
- macOS 10.10+
- Xcode 8.0+
Installation:
Manually
First
Check SonogramView.swift or MacSonogramView.swift and copy it to your project, then take a look on example for iOS or macOS, it's pretty straightforward, and don't forget to make sure, that you have your audiofile added to project/downloaded.
Second
You whould init anywhere the SonogramView() as nib or fram - doesnt matter..
let sView: SonogramView = SonogramView()
Provide your fileURL like:
sView.addDurationOfFileWith(url: fileUrl!)
And just invoke the magic!
sView.convertToPoints()
Playground:
Try it in Playground! :)
import PlaygroundSupport
var fileUrl: URL?
do {
fileUrl = PlaygroundSupport.playgroundSharedDataDirectory.appendingPathComponent("test.m4a")
// User/Documents/Shared Playground Data
} catch {
print(error)
}
var waveView: SonogramView = SonogramView()
waveView.addDurationOfFileWith(url: fileUrl!)
waveView.convertToPoints()
// And you are done!
// Customization of view
waveView.backgroundColor = .clear
let view = UIView(frame: CGRect(x: 0, y: 0, width: 300, height: 200))
view.backgroundColor = .white
view.addSubview(waveView)
waveView.frame.size.width = view.frame.width
waveView.frame.size.height = view.frame.height
waveView.center = view.center
PlaygroundPage.current.liveView = view // Showing in liveView with xCode Playground