https://github.com/yuao/audioprism
AudioPrism implements the `AnalyserNode` functionality defined in the Web Audio API.
https://github.com/yuao/audioprism
analysernode audio fft frequency webaudio
Last synced: over 1 year ago
JSON representation
AudioPrism implements the `AnalyserNode` functionality defined in the Web Audio API.
- Host: GitHub
- URL: https://github.com/yuao/audioprism
- Owner: YuAo
- License: mit
- Created: 2021-12-03T09:21:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-20T07:08:39.000Z (over 4 years ago)
- Last Synced: 2025-01-28T05:09:46.821Z (over 1 year ago)
- Topics: analysernode, audio, fft, frequency, webaudio
- Language: Swift
- Homepage:
- Size: 704 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AudioPrism

AudioPrism implements the `AnalyserNode` functionality defined in the Web Audio API. https://webaudio.github.io/web-audio-api/#AnalyserNode
## Usage
```Swift
import AudioPrism
// Create an `AudioPrism` object.
let prism = try AudioPrism(options: ...)
// Update the `AudioPrism` object with audio buffers.
prism.update(with: ...)
// Get the most recent frequency data
let frequencyData = prism.frequencyData
```
## Documentation
[API Reference](https://yuao.github.io/AudioPrism/documentation/audioprism)
## Swift Package
To use this package in a SwiftPM project, add the following line to the dependencies in your Package.swift file:
```swift
.package(url: "https://github.com/YuAo/AudioPrism", from: "1.0.0"),
```
## Acknowledgements
### Example Audio
Endless Light
by Siddhartha Corsus
https://creativecommons.org/licenses/by-nc/4.0/