Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ibrahimhass/ihequalizerview
An Custom UIView which draws the output of an audio asset in real time.
https://github.com/ibrahimhass/ihequalizerview
animation audio-visualizer cocoapods equalizer-and-visualisation ios mediaplayer swift uiview uiview-subclass visualization
Last synced: 3 months ago
JSON representation
An Custom UIView which draws the output of an audio asset in real time.
- Host: GitHub
- URL: https://github.com/ibrahimhass/ihequalizerview
- Owner: Ibrahimhass
- License: mit
- Created: 2017-08-13T20:27:18.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-06T07:24:04.000Z (almost 2 years ago)
- Last Synced: 2024-10-31T13:33:22.004Z (3 months ago)
- Topics: animation, audio-visualizer, cocoapods, equalizer-and-visualisation, ios, mediaplayer, swift, uiview, uiview-subclass, visualization
- Language: Swift
- Homepage:
- Size: 11.7 MB
- Stars: 110
- Watchers: 4
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# IHEqualizerView
A simple, intuitive audio asset visualiser for iOS.# Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.# Highlights
Very simple and lightweight. Color Coding for differnt output range. Written in Swift.* Pale red for low output
* Light red for medium
* Red for high output
* Based on the output distribution pattern of Recorder App from Apple
* Option to pre-render audio file# Getting Started
To begin using IHEqualizerView you must first make sure you have the proper build requirements.
# Screen Recordings
| | |
|:-------------------------:|:-------------------------:|
| | |# Build Requirements
## iOS
10.0+
## Installation
IHEqualizerView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'IHEqualizerView'
```# Adding Manually To Project
You can add IHEqualizerView to your project in a few ways:
The way to use IHEqualizerView is to download the IHWaveFormView class file in your project as is and use.
# Usage
## StoryBoard
Make the UIView a subclass of IHEqualizerView, make its outlet and initialise as follows:
@IBOutlet var musicView: IHWaveFormView!
extension ViewController: IHWaveFormViewDataSource {
func urlToPlay() -> URL {
var url : URL?
let path = Bundle.main.path(forResource: "bensound-sunny.mp3", ofType:nil)!
url = URL(fileURLWithPath: path)
return url!
}func lineWidth() -> CGFloat { 2 }
func lineSeperation() -> CGFloat { 1 }
func shouldPreRender() -> Bool { true }
}
## AuthorMd Ibrahim Hassan, [email protected]
## License
IHEqualizerView is available under the MIT license. See the LICENSE file for more info.