Skip to content

AppWerft/Ti.SpectrumAnalyzerView

Repository files navigation

Ti.SpectrumAnalyzer

Permissions

You need the runtime permission AUDIO_RECORDING

Constants

  • CURVE_LINEAR
  • CURVE_LOG
  • CURVE_SQRT

Usage

var SA = require("ti.spectrumanalyzer");

var SpectrumView = SA.createView({
	color : "green",
	backgroundColor : "black",
	frequency :  44100, // optional
	blockSize :  512, // optional
	fadeEnabled : true, // default
	fftEnabled  : true, // default
	fadeTime : 50, // 0 … 255
	compressType : SA.CURVE_LOG,
	width: "90%",
	top: 10,
	height : 300
	
});
var Window = Ti.UI.createWindow();
Window.add(SpectrumView);

Window.addEventListener("focus",function(){SpectrumView.start();});
Window.addEventListener("blur",function(){SpectrumView.stop();});

About

Fast Fourier Transformation based Simple Spectrum Analyzer for Axways Titanium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published