Skip to content

An audio processing app that processes live microphone data and displays spectrograms, audio metrics, etc

Notifications You must be signed in to change notification settings

CCS-1L-F19/audio-processing-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 

Repository files navigation

audio_processing_app

An audio processing app that processes live microphone data and displays spectrograms, audio metrics, etc

Accessing the webapp

The most up to date version of the webapp is hosted on a Github Pages site, https://ccs-1l-f19.github.io/audio-processing-app/. For now the landing page contains links to several demo pages. The current main project is the live spectrogram page.

Modifying the source code

All the webapp's files are stored in the docs folder of this repo.

index.html is a simple page that contains links. The page under active development is in spectrogram.html. The HTML body is currently contains only several elements and is layed out with Bootstrap (in progress). The script block is mostly contained in an asyncronous block that depends on the getUserMedia call, which requests microphone data from the device through the browser. The script then initializes a Google chart and updates it periodically with a setInterval() call to updateSpectrogram().

generate-scales is a simple Python script that generates a javascript object containing 2 parallel arrays of frequencies and the names of the corresponding notes.

This is an open source patch by Chris Wilson referenced in MDN documentation (https://developer.mozilla.org/en-US/docs/Web/Guide/Audio_and_video_delivery/Web_Audio_API_cross_browser). It is required to offer compatibility with browsers including Safari which require the webkit prefix on Web Audio API to function. I have copied AudioContext-MonkeyPatch.js directly into my repository because the URL to include it from the web is not HTTPS, which some browsers do not like when allowing microphone access.

This MDN API provides a stream of microphone data and includes an Analyser Node which performs a Fast Fourier Transform on the raw audio to calculate frequency data.

About

An audio processing app that processes live microphone data and displays spectrograms, audio metrics, etc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages