spritekit-sound-physics

command
v0.6.20 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2026 License: MIT Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

spritekit-sound-physics

60fps Metal-backed SpriteKit physics and particle visualizer driven by real-time Accelerate vDSP FFT frequency bands from an internal AVFAudio synthesized groove.

Usage

# Launch the interactive 60fps AppKit + SpriteKit window (no mic permissions required)
go run ./examples/spritekit/spritekit-sound-physics

# Render offscreen via Metal SKRenderer + offline AVAudioEngine and print FFT/frame stats
go run ./examples/spritekit/spritekit-sound-physics -headless
go run ./examples/spritekit/spritekit-sound-physics -headless -frames 45 -out /tmp/frame.png

Notes

  • Zero CGo, zero TCC permissions required (uses an internal synthesized groove instead of microphone capture).
  • Computes 8 logarithmic frequency bands per frame with accelerate.VDSP_hann_window, VDSP_fft_zrip, and VDSP_zvabs.
  • Drives 8 glowing SKShapeNode physics orbs and a SKEmitterNode spark fountain.

Documentation

Rendered for darwin/amd64

Overview

Command spritekit-sound-physics is a 60fps Metal SpriteKit physics/particle visualizer driven by Accelerate vDSP FFT bands from an AVFAudio groove.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL