• Stars
    star
    101
  • Rank 336,116 (Top 7 %)
  • Language
    JavaScript
  • Created over 11 years ago
  • Updated about 8 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Web Audio API Simulator for Firefox/MSIE/Opera

WAAPISim : Web Audio API Simulator

WAAPISim is a 'WebAudioAPI' polyfill fallbacking to the 'Audio Data API', or Flash.
In addition, even in WebAudio API ready browsers, add some latest method name for node-creation and start/stop if the browser does not support these method name.

WAAPISim automatically check the availability of APIs:
WebAudioAPI => AudioDataAPI => Flash

  • Chrome : WebAudioAPI is supported. WAAPISim do nothing.
  • Safari (include iOS) : WebAudioAPI is supported but old method name is used. WAAPISim add new method name for node-creation, start/stop and setTargetAtTime.
  • Firefox : Simulate using AudioDataAPI
  • Opera : Simulate using Flash
  • MSIE : Simulate using Flash. Float32Array is assigned to normal Array(IE9).

For more detail: http://www.g200kg.com/docs/waapisim/

WebAudioSynth running on MSIE

Some Links of Test-pages

Try these pages with Firefox/Opera or MSIE.

Node test (Oscillator/ScriptProcessor/BiquadFilter/WaveShaper/Panner/Analyser)
Compressor test
AudioParam Automation test
ChannelSplitter/ChannelMerger test
Oscillator custom waveform test

Shiny Happy MIDI Drum Machine (MIDIDrums) (by Chris Wilson + (Chris Rogers and Ken Moore)) with WAAPISim
http://g200kg.github.com/MIDIDrums/ forked from https://github.com/cwilso/MIDIDrums

WebAudioSynth (by aike) with WAAPISim
http://g200kg.github.com/webaudiosynth/ forked from https://github.com/aike/webaudiosynth

Current Status

  • Support : OscillatorNode / ChannelSplitterNode / ChannelMergerNode / AudioBufferSourceNode / WaveShaperNode / AnalyserNode / GainNode / BiquadFilterNode / DelayNode / DynamicsCompressorNode / PannerNode / ScriptProcessorNode / ConvolverNode

  • Not Support : MediaElementAudioSourceNode / MediaStreamAudioSourceNode / MediaStreamAudioDestinationNode / OfflineAudioCOntext

  • ConvolverNode : By performance reason, convolution is executed for only IR's first 1000 samples. Sebsequent part will be replaced as simple delays.

  • PannerNode : Simplified. Listener position should stay default. Source positions are interpreted as x-z 2d coordinate.

  • ScriptProcessorNode : Input buffer size should be 1024 and under (No limitation if use output only)

  • DynamicsCompressorNode : A little different characteristics from Chrome's implements.

  • Number of channels in each nodes should be 1 (mono) or 2(stereo)

  • createBuffer from ArrayBuffer and decodeAudioData supports only wav format.

  • k-rate AudioParam controls are executed only per 1024 samples frequency. a-rate AudioParams are controlled by sample.

Usage

Load the 'waapisim.js' before using the Web Audio API functions in your script.

<script type="text/javascript" src="waapisim.js"></script> or <script type="text/javascript" src="waapisim.min.js"></script>

To enable fallbacking to Flash, place the 'waapisim.swf' file to same folder as 'waapisim.js'.

Options

These lines should be specified before loading the 'waapisim.js'

<script type="text/javascript">waapisimLogEnable=1;</script>
Enable internal log info to console.

<script type="text/javascript">waapisimForceSim=1;</script>
Enable WAAPISim even if native WebAudioAPI is available.

<script type="text/javascript">waapisimForceSimWhenNotWebkit=1;</script>
Force enable WAAPISim when non-webkit browser.

  • some versions of Firefox have WebAudioAPI interfaces but not implemented completely (e.g. custom waveforms). Some apps may work better on Firefox with this flag.

<script type="text/javascript">waapisimForceSimWhenLackOsc=0;</script>
Disable WAAPISim if native WebAudioAPI is available even lacking oscillator function (means Firefox 23). This flag is default on (=1).

  • FIrefox 23 or ealier 's WebAudioAPI (need about:config flag setting) is very tentative. In default, WAAPISim ignore this version of WebAudoAPI.

License

Copyright (c) 2013 g200kg
http://www.g200kg.com/

Modified by Loguehttp://logue.be

Released under the MIT License

More Repositories

1

webaudio-controls

GUI parts library for Web application using WebComponents
JavaScript
319
star
2

webaudio-tinysynth

Light-weight GM mapped WebAudio-JavaScript Synthesizer Engine / MIDI Player
JavaScript
218
star
3

zoom-ms-utility

Zoom MS-50G / MS-60B / MS-70CDR multi stomp patch utility
JavaScript
210
star
4

WebAudioDesigner

WebAudioAPI GUI design tool
JavaScript
152
star
5

webaudio-pianoroll

Pianoroll GUI library for Web application / relevant to webaudio-controls
JavaScript
89
star
6

kicad-lib-arduino

74
star
7

kicad-gerberzipper

KiCad Plot&Zip script plugin
Python
56
star
8

input-knobs

HTML
49
star
9

Fft-asm.js

JavaScript FFT module using asm.js
JavaScript
32
star
10

vowelsynth

HTML
30
star
11

LiveBeats

Audio / Visual Live-Performance tool on Browser
HTML
29
star
12

midi-dump

An online program that dumps MIDI (SMF) files with high readability.
JavaScript
26
star
13

websequencer

HTML
21
star
14

web-audio-api-ja

Web Audio API (Working Draft) ๆ—ฅๆœฌ่ชž่จณ
HTML
20
star
15

WhiteboardDrum

20
star
16

webaudio-macronodes

[Web Audio API] custom nodes for effectors.
JavaScript
19
star
17

AutoBeats

Auto Composer using Web Audio API
JavaScript
17
star
18

web-midi-api-ja

Web MIDI API (Working Draft) ๆ—ฅๆœฌ่ชž่จณ
HTML
16
star
19

WebGL-Audio-processing

audio processing sample with WebGL shader program
15
star
20

knobman3d

Knob Image Design Tool
HTML
14
star
21

audioworklet-in-one-file

Sample of how to write Web Audio API AudioWorklet within one file
HTML
12
star
22

webaudio-customnode

[Web Audio API] How to create custom AudioNode
HTML
10
star
23

audioworklet-adsrnode

JavaScript
9
star
24

apngbuilder

Javascript library for building APNG animation from multiple PNG files
JavaScript
9
star
25

KnobMan

Java
8
star
26

webgrowler

JavaScript
6
star
27

SkinMan

C++
5
star
28

waveedit

JavaScript
5
star
29

stl-knob-designer

Knob Designer for 3D printers
JavaScript
4
star
30

kicad-lib

KiCad refined TTL / OTA symbols
3
star
31

arduino-stepping-motor

Stepping motor driver with I2C I/F for Arduino
C++
2
star
32

kicad-action-plugins

KiCad Action Script Plugins : GerberZip, BulkTextSize
Python
2
star
33

electro-kalimba

ElectroKalimba
C
2
star
34

game-interpreter

JavaScript
2
star
35

cvtodmx

HTML
1
star
36

nekomanner

HTML
1
star
37

auditory-test

่ด่ฆšใƒ†ใ‚นใƒˆ
HTML
1
star
38

strober

Strober, the programmable LED flasher hardware design
1
star
39

chirimen-webbluetooth

HTML
1
star
40

webknobman

HTML
1
star
41

chirimen-steppingmotor

HTML
1
star