TypeChime's code uses algorithms to generate background music as you type into a textbox.

-Generating notes: TypeChi.me reads in each word and breaks it down into its phonetic parts. Vowel phonetics is recorded and each assigned a number from 0 to 14 according to the vowel's pitch when it is spoken 1. This corresponds to the nth note in whatever scale is being used. -Tempo: Each note is put onto the note queue that plays a quarter note when a note is taken off the queue. Spaces are added once a new word is started to break up the stream of notes. The beats per minute of the music is dynamically based on how fast you type so that the music keeps up with what you are typing. -Key: A major or minor key is assigned to the music based on the semantics of the words currently being used. Each adjective, noun, verb, and adverb is filtered through thousands of movie reviews where it is assigned values for positive and negative connotation and the word's objectiveness 2. These values come from teaching the algorithm with the rating of the reviews the word appears in. Different rages of positive, negative, and objective values correspond to different musical keys. -Cords: Background chords are generated on top of the main melody to add depth. A canon cord progression of 8 cords is continually repeated. When the user finishes a word, the program uses a Euclidean Rhythm algorithm to determine if it should switch to the next cord 3.

Share this project:

Updates