Showing posts with label Music. Show all posts
Showing posts with label Music. Show all posts

Tuesday, March 2, 2010

Embeds

The highlight of this week’s Dreamweaver assignment was learning how to embed video, so I had to go create one. And being in possession of music notation software (Finale), I had to write a sound track. I chose not to rent or build a soundstage, however; the kitchen fit the bill nicely, the bill being $0.00. Also, the film is more of a short subject rather than feature length; the cast did not want to spend a lot of time on the project.


The other two parts of the assignment also have to do with embedding, namely an mp3 (a playlist was my choice) and a small program (Java applet). No reporters were embedded because none seemed interested. The Java applet was written during a class I took ten years ago. In the class I am taking now we have not yet progressed beyond applications that run from the command line. Towards the end of the semester I should have some newly-minted Java applets to show.

Monday, February 22, 2010

Read the Music While You Listen

This week’s Dreamweaver lab assignment (number 5) has three objectives:
  • create a auto-stretching web page
  • build a set of swapable images
  • add a sound file on the page
The auto-stretch part has the cornices and pedestals of ionic columns with a solid color that adjusts to the window size as the column (it’s actually a table cell with a solid background color). The cross beam at the top is setup the same way. The music control buttons are there by virtue of the underlying audio file (Shockwave flash). The page number buttons change color when you move the mouse pointer over them, which also causes the related page of music to display between the columns; that’s the swapable image bit. The sound and the score images are therefore synchronized only by the reader’s music reading and mouse movement skills.

Thursday, February 4, 2010

Doo-Wop Loop

Computer languages all share three essential characteristics; they execute some set of commands through sequence (one after another to the end, then stop), selection (if something is true, do this, otherwise do that), and iteration (do these commands until the cows come home). In Java, one of the languages I’m learning, iteration comes in three flavors:
- a for loop, where the computer is told to iterate a specific number of times;
- a while loop which first tests to see if the loop should be entered in the first place, then if it is, to iterate until some condition is true, such as freezing temperatures in some nether region;
- and a do while loop which is very similar to the while loop except it always iterates at least once.
Now, there is speculation in some circles, or so I’ve heard, that there is (or was) a fourth kind of loop that is similar to the do while loop and tends to be used only on specialized SATB computers (and its variants, such as SAB or SSATB). Here is an example:

doo {

} wop (soloText.compareTo(“friends”) == 0);

The SATB type computers are actually clusters of several computers, sometimes as few as four or five, sometimes as many as 20 or 30. One of the computers is designated the controller and will execute commands of considerable variety and complexity (not shown in the example above) while the other computers run the commands shown, over and over in a doo-wop loop.