This HyperCard version runs only in OS9. A Supercard version for OSX is below.
The stack itself can be downloaded here. HyperCard requires OS9 (at best) or Classic under OSX to run, the program HyperCard to be installed, or HyperCard Player, which can be found on your OS9 System CD. |
I had always wanted to build a stack to translate text characters to notes in order to build simple melodies. Simple enough, but getting the consequent text to a MIDI file was the difficulty.
Above, is a screenshot of the first card in the stack, and the first little tune created, from a phrase by Leonard Cohen. Basically, the stack translates the text character to an ASCII value. I don't pretend to understand MIDI encoding, but apparently that numerical value is assigned a note value.
So, based on the relationship of the distance between the characters, we can generate a melody. Yes, some of them aren't very 'melodic'.
Some can be surprisingly interesting. The best 'tunes' I seemed to find were based on some kind of poetic rhythm or pattern, a repetition of similar text strings or layering phrases to create chords, and judicious choices of instrument.
Later cards in the stack will create a multiple lined or chorded melody.
The buttons beside 'letter:" allow you to slide the melody up and down the scale by assigning a different starting point for the translation comparison.
Without UDI's XCMD's the rest of this would have been impossible. The XCMD's call the QuickTime Instruments and allow the writing of a MIDI file. They do far more sophisticated MIDI calls than I understand. I usually masssage the MIDI file in Midigraphy.
I also have been able to take a very simple line drawing, get it out of Photoshop as ASCII, sometimes cleaning up the file in bbEdit, to draw music. Best results come from a longish, narrow graphic file to simulate the passage of time from left to right. And, once, puzzling about whether there was any value in the spam we all receive, I tossed a short phrase into the stack and clicked away.
2006: This is a version on Supercard. There are two; 1) a project requiring Supercard itself to run, and 2) a standalone version which should run under OSX. It generates only a Chromatic scale, single line melody. I drag the exported MIDI file into Garageband and futz about with it there.
These chants have been reasonably successful translations from text to tones. The repetition of words, vowels and phrases lends more musicality. I wish I knew something about music. :-)

5 minutes 41 seconds
Quite joyful. 3 minutes 44 seconds
Still a work in progress, I think. Calm, interesting. meditative. 8 minutes 45 seconds
Download the standalone MIDI tricks or the Supercard Project version which requires Supercard or the SuperCard Player to run. And if you have Supercard, the project is editable.