Tag Archives: sound

Recording Sound in JavaScript with MediaRecorder

The JavaScript program below, when run, presents an interface that allows the user to record an audio clip and play it back. To see it in action, copy it into an .html file and open that file in a web … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment

Positional Audio for a Game in HTML5 with JavaScript

The code below implements a simple example of positional audio in JavaScript using the WebAudio API. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. You’ll need … Continue reading

Posted in Uncategorized | Tagged , , , , , , , | Leave a comment

A Simple Text-To-Speech Application in JavaScript with the Web Speech API

Below is a simple text-to-speech application implemented in JavaScript, using the Web Speech API. To see the code in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an … Continue reading

Posted in Uncategorized | Tagged , , , , , , | 1 Comment

A 4X Space Strategy Game in JavaScript

The JavaScript code below implements a prototype of a 4X strategy game set in space, similar to the old DOS game Ascendancy. It makes use of pieces of functionality from several previous posts. ¬†As usual, it’s nowhere near finished yet, … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

A Profile, Media, Persistence, and Menu Framework for a Video Game

The JavaScript code below implements a “framework” for an extremely simple video game, that includes the following features: 1. Creating a new player profile or choosing from an existing ones. 2. Creating, saving, and loading games, using the “Local Storage” … Continue reading

Posted in Uncategorized | Tagged , , , , | Leave a comment

A Sound Editor in HTML5 Using JavaScript

The JavaScript code below implements a sound editor in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs JavaScript. Or, for an online version, visit http://thiscouldbebetter.neocities.org/soundeditor.html. The … Continue reading

Posted in Uncategorized | Tagged , , , | 2 Comments

A Simple Music Synthesizer in JavaScript

The code included below implements a simple text-to-music synthesizer in JavaScript. To see it in action, copy it into an .html file and open that file in a web browser that runs Javascript. Or, for an online version, visit http://thiscouldbebetter.neocities.org/synthesizer.html. … Continue reading

Posted in Uncategorized | Tagged , , , , , | Leave a comment