Latest 0.1.0
Homepage https://github.com/Ibrahimhass/IHEqualizerView
License MIT
Platforms ios 10.0
Frameworks UIKit, AVFoundation
Authors

Version
License
Platform

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

Written purely in SWIFT. Very simple and lightweight. Hardly 128 lines of Code. Color Coding for differnt output range

  • Pale red for low output
  • Light red for medium
  • Red for high output
  • Based on the output distribution pattern of Recorder App from Apple

Getting Started

To begin using IHEqualizerView you must first make sure you have the proper build requirements.

Build Requirements

iOS

10.0+

Installation

IHEqualizerView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

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.

ScreenShot

simulator screen shot 16-aug-2017 12 23 44 am

10 pixel width

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 {
    //Getting the Path of the Audio Asset in this case this is bundled in to the main Bundle with the fileName
    var url : URL?
    let path = Bundle.main.path(forResource: "bensound-sunny.mp3", ofType:nil)!
    url = URL(fileURLWithPath: path)
    return url!
    }

func lineWidth() -> CGFloat {
  return 2
    }

func lineSeperation() -> CGFloat {
    return 1
    }

}

Author

Md Ibrahim Hassan, [email protected]

License

IHEqualizerView is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "IHEqualizerView",
    "version": "0.1.0",
    "summary": "A simple, intuitive audio asset line bar visualiser.",
    "description": "SWIFT, Realtime Audio Visualiser. Line Visualiser having differnt colors for different output levels.",
    "homepage": "https://github.com/Ibrahimhass/IHEqualizerView",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Md Ibrahim Hassan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ibrahimhass/IHEqualizerView.git",
        "tag": "0.1.0"
    },
    "social_media_url": "https://twitter.com/IbrahimH_ss_n",
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "IHEqualizerView/Classes/*",
    "swift_version": "3.2",
    "frameworks": [
        "UIKit",
        "AVFoundation"
    ]
}

Pin It on Pinterest

Share This