Monthly Archives: February 2018

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 Line-by-Line Text Differencer in JavaScript

The JavaScript code below compares two text files line-by-line to find the differences between them, and then displays those differences with appropriate highlighting. To see it in action, copy it into an .html file and open that file in a … Continue reading

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

A Color Palette Generator in JavaScript

The JavaScript code below generates a color palette of a specified size from a specified image, then re-draws the image using that palette. (At least, I think that’s what it does. It worked on the first try, which always makes … Continue reading

Posted in Uncategorized | Tagged , , | Leave a comment