GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Luccifer/SonogramView: Audio visualisation of song

This repository was archived by the owner on Feb 13, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

16 Commits
16 Commits

Folders and files

NameName
Last commit message
Last commit date
SonogramWS.xcworkspace
SonogramWS.xcworkspace
 
 
testSonogram.xcodeproj
testSonogram.xcodeproj
 
 
testSonogram
testSonogram
 
 
testSonogramMacOS.xcodeproj
testSonogramMacOS.xcodeproj
 
 
testSonogramMacOS
testSonogramMacOS
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
Screen Shot 2017-09-01 at 23.35.47.png
Screen Shot 2017-09-01 at 23.35.47.png
 
 

Repository files navigation

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

About

Audio visualisation of song

Topics

audiobezierbpmfourier-transformiosmacospathsongssonogramswiftswift3swift4

Resources

Readme
MIT license
Activity

Stars

67 stars

Watchers

1 watching

Forks

6 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.