One of the things that make video games awesome is that you can use anything to make a game. One of the things that make being a web developer awesome is that you have a lot of amazing APIs at your disposal.
Why not combine both for maximum effect? Like using the Web Audio API to make your own music driven game using a real life ukulele as controller? I’d like to show you how, why and on top you’ll learn some music theory.
via Creating an Accessible Breakout Game Using Web Audio and SVG.
This article is part of a web development series from Microsoft. Thank you for supporting the partners who make SitePoint possible.
As the co-author of Babylon.js, a WebGL gaming engine, I was always felt a little uneasy listening to folks discuss accessibility best practices at web conferences. The content created with Babylon.js is indeed completely inaccessible to blind people. Making the web accessible to everyone is very important. I’m more convinced than ever about that as I’m personally touched via my own son. And so I wanted to contribute to the accessibility of the web in some way.
via AudioKeys –.
Kyle Stetz, designer and developer for P’unk Avenue in Philadelphia, has created a great library for using key input to play notes on a scale, which he has aptly namedAudiokeys. In this post, we will walk you through setting up AudioKeys as well as creating a playable custom synth using the diatonic scale. Mr. Stetz is the webaudio wizard who gave us typedrummer, and if you have yet to check it out we highly recommend it.
via Audio Sampling and the Delay Node with AudioKeys – sounDesign.
This post originally appeared on Sonoport Tech Blog.
Welcome to another tutorial on Web Audio API! Last week we did a tutorial on theAudioKeys library, utilizing it to make a qwerty keyboard syntheszier. Now, let’s turn that synthesizer into a sampler, and add a delay effect to it. While simple in theory, we will see that audio playback in web audio is a bit more involved than creating oscillators.
First, let me explain how the webaudio API handles audio playback. When we want to play an audio file, we must decode that audio file. Our internet browser is only a piece of software that connects us to the world wide web, nothing more (well maybe a bit more…) and nothing less. Because the browser will not understand us when we say “Hey, Chrome, play this fat kick!”, we need to speak to the browser in a language it can understand, the beautiful prose of binary.
via The Web Audio API: What Is It? – Tuts+ Code Tutorial.
Don’t worry, it’s here! An API that will not only whiten your teeth and improve your posture, but will add sound to your website in a wonderful way*. It’s the Web Audio API! Never heard of it? Don’t worry. This tutorial will get you up and running in no time.
“Can’t I just use the
<audio> element?” Well, yes, but it really depends on what your use-case is. The
<audio> element is perfect for embedding and playing audio clips such as music or podcasts, but if you require a bit more control, such as programmatically controlling volume or adding effects, then the Web Audio API will be right up your Tin Pan Alley.
via Onwards with our Web Audio Journey: Oscillators, Filters and Gain Nodes – sounDesign.
This post is part of the series Make Noise with Web Audio API and originally appeared on Sonoport Tech Blog.
To help guide you on your web audio journey this segment will be about the Audio Context, how to create Oscillators, Filters, and Gain nodes. Previously we have complied a bunch of information that would be useful for anyone to start on web audio here, then we went through the basics of making sound and the brief history of Web Audio API here, now for this post, we are going to talk more about… nodes!
Inside of the API, everything is a node! NODE! NODE! node… What is a node? A node, or specifically an AudioNode, is the unit of processing inside WebAudio. We as developers, have to connect these AudioNodes in various patterns to generate, process and analyse audio. Such a connected set of AudioNodes is called an AudioGraph. Think of it as a tree. At the base of the tree (the trunk of the tree?) is the Audio Context.
via The Web Audio API: Adding Sound to Your Web App – Tuts+ Code Tutorial.
What happened to audio on the web? For a time the web was the platform to show off your taste in tunes. From MIDI versions of The Final Countdown bubbling in the background, to autoplaying MySpace mp3s being thrown in your face, sound was everywhere.
Not anymore. Having been burned by these user experience atrocities, web developers stay well away from it. Sadly sound has taken a backseat on the web, while native apps flourish.
Think of the notification sound your hear when receiving an email, or the little pop when you pull to refresh the Twitter app. Such apps show how sound can be integral to a great user experience.
In this tutorial I’ll show you how to bring sound back to the web, in a good way!