Giter VIP home page Giter VIP logo

googlechromelabs / web-audio-samples Goto Github PK

View Code? Open in Web Editor NEW
686.0 30.0 197.0 685.5 MB

Web Audio API samples by Chrome Web Audio Team

Home Page: https://bit.ly/web-audio-samples

License: Apache License 2.0

HTML 12.56% CSS 0.87% JavaScript 79.65% C++ 3.79% Makefile 0.10% GLSL 0.17% ShaderLab 0.18% C 0.61% Nunjucks 1.85% TypeScript 0.21%
webaudioapi chrome audioworklet audio webmidiapi

web-audio-samples's Issues

mag-phase uses 2-arg createBuffer and recyles source.buffer

The 2-arg createBuffer prevents FF from working.
Also, it recycles the source.buffer. One AudioBufferSourceNode is created, and as the user selects different sounds, source.buffer is set to the new sound. We'll probably want to change that.

WebGL and Web Audio don't work together in FF?

Following demos don't work, but oddly, when you flip to another screen (e.g. press the back button), the audio suddenly starts.

Affects at least:
oscillator.html
oscillator-fm.html
javascript-processing.html
visualizer-gl.html

Remove tone.html

This just generates a 440 Hz tone using a buffer. If anything we'd use an Oscillator these days.

Just remove this.

Fix timeline.html

Just need to change webkitAudioContext to OfflineAudioContext. Probably want to keep this because this is probably what was used to generate the timeline graph example in the WebAudio spec.

webkitAudioContext still used

Looks like most demos still use webkitAudioContext. We need to update these. I thought we had fixed all of them to use AudioContext when available. Newer versions of chrome now print out deprecation messages about using webkitAudioContext.

Fix or remove simple-mixing.html

It's a simple demo to mix three sounds together with differing gain. Probably not worth having. I think html5rocks has similar demos already.

Replace some console.log messages with alert?

Some of the demos use console.log to print out error messages, like being unable to decode a file. I think some of these should probably be converted to alerts to make it more conspicuous on why a demo isn't working.

Fix or remove test-waveshaper.html

A couple of tweaks makes this run, but I don't know what it's really supposed to show and what the correct audio is.

Perhaps best to remove this?

Fix javascript-processing2.html or delete

Could be an interesting demo, but maybe we should just delete this since it's using Javascript to do amplitude modulation. Probably not a good idea to have even more demos of processing in Javascript.

Remove dj-test.html

dj-test.html is very similar to dj.html. A quick diff shows that the major differences are in how the cross fader works, the addition of a post compressor gain stage in dj.html, and some difference in how the animation is drawn.

Demos not working with Firefox

Here is a list of demos that don't work with Firefox. I did not investigate why, just whether there was the expected output. Tests were done using Firefox 27.0.1 on Linux. I did not compare the audio with Chrome.

  • convolution: The Spoken word and Obama examples constantly spin; no audio output. Others seem to work ok, but I didn't try every one.
  • wavetable-synth Audio sounds really funny.
  • Digital DJ Just keeps spinning.
  • Granular Effects Just keeps splnning. Console says "Error decoding human voice!"
  • Realtime Analyser Console says "Error decoding human voice!".
  • Oscillator. No audio or graphics.
  • FM Synthesis. No audio or graphics.
  • Panning/Reverb. Audio output, but moving the red dot around doesn't produce audio like I expect.
  • Javascript Processing. No audio, but visuals work. Oddly, when I press the back button, audio suddenly starts playing. How bizarre is that!?!

Slider labels don't include value until the slider is moved

Using the DJ demo as an example, notice that when loaded the slider label doesn't include any info about the value of the slider. When you move the slider, then the label is updated to include the value.

I find it somewhat annoying that the slider doesn't automatically include the initial value. I didn't investigate if this is an issue with slider itself or with the various demos that show the slider value.

Remove oscillator-fm.html

Seems to be roughly similar to oscillator-fm2.html, so we should just remove this one in favor oscillator-fm2.html.

Demos that don't work with unprefixed webaudio

WaveTableSynth not working

This used to work, especially after Chris made some fixes.

But today, I hear nothing with Chrome M36.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.