Tag Archives: sound

A MIDI Viewer in JavaScript

The JavaScript program below prompts for a MIDI file, loads that file, parses it into text, and displays that text. It also allows the file to be re-saved, though, since the file can’t be edited, re-saving is solely a way … Continue reading

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

A Music Tracker in JavaScript

Below is a screenshot of a music tracker implemented in JavaScript. To see the code, visit the URL “https://github.com/thiscouldbebetter/MusicTracker“. Or, for an online version, visit the URL “https://thiscouldbebetter.neocities.org/MusicTracker/_MusicTracker.html“.

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

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