SonogramView
Audio visualisation of song
Install / Use
/learn @Luccifer/SonogramViewREADME
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
Related Skills
qqbot-channel
345.9kQQ 频道管理技能。查询频道列表、子频道、成员、发帖、公告、日程等操作。使用 qqbot_channel_api 工具代理 QQ 开放平台 HTTP 接口,自动处理 Token 鉴权。当用户需要查看频道、管理子频道、查询成员、发布帖子/公告/日程时使用。
docs-writer
100.0k`docs-writer` skill instructions As an expert technical writer and editor for the Gemini CLI project, you produce accurate, clear, and consistent documentation. When asked to write, edit, or revie
model-usage
345.9kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
arscontexta
2.9kClaude Code plugin that generates individualized knowledge systems from conversation. You describe how you think and work, have a conversation and get a complete second brain as markdown files you own.
