Wednesday, August 25, 2010

Working with videos in Transcribe!

In this post, I'll show you how to set up Transcribe! with Apple's Quick Time and use it to transcribe music from video found on the web (under Microsoft Windows). All of this information is available in the Transcribe! documentation, but it took me a little digging, so I'm doing a step-by-step here.

Requirements:
  • Microsoft Windows XP/Vista/7 (this procedure was tested on Windows XP)
  • Transcribe! from Seventh String Software
  • Quick Time from Apple
  • Mozilla Firefox web browser (for downloading video from “tube” sites).
First, download and install the latest Quick Time from Apple. If you have iTunes, then you probably have Quick Time installed on your computer already. Next, download and install the latest version of Transcribe! from Seventh String Software. Now, get the latest Firefox from Mozilla, if you don't already have it. Finally, get the Video Downloader from ffpimp.com: While viewing this post in Firefox, click this link to go to the download page. Click on the green “Add to Firefox” button. In the resulting dialog, click the “Install Now” button to install the Video Downloader.(Ctrl.+click images to view them at larger resolution in a new tab or window.)
Firefox will prompt you that it needs to be restarted to finish the installation. Go ahead and click the “Restart Now” button to restart Firefox (your session will be saved and any pages you were browsing will reappear when Firefox is finished restarting).

Now we're ready to go to YouTube and get a music video to work on. Point Firefox to YouTube and search for a music video.

Now, YouTube shows videos using the Adobe Flash plugin. But for Transcribe!+Quick Time, we need video that's in Quick Time format. Fortunately, most of the videos on YouTube are available in Quick Time format as an alternate. To get the alternate format, you have to alter the url in the address bar by adding "&fmt=18" (without the quotes) to the very end and pressing “Enter” on your keyboard. The browser window will now refresh, loading the Quick Time version of the video.
Now that we have the right format, download a copy of the video using the Video Downloader. On a toolbar above your browser tab, notice the colored “filmstrip” icon with the words “Save Video” to the right. Click this icon. If you're given a choice among different titles, choose the one that matches the title of the desired video and also has the extension *.mp4, which is the extension for Apple Quick Time format.
Choose a convenient location to save the file. If Firefox downloads it to a default location, and you don't know where that is, open the “Downloads” window (Tools: Downloads or Ctrl.+J), right click on the file from the list and choose “Open Containing Folder.”

Now you can close Firefox and open Transcribe! Once Transcribe! is up, click the “Open” icon and browse to the location you saved the video file. Select the file and click “Open.” Transcribe! opens, along with a Transcribe! video window. You can now listen to and view the video, and harness the tuning and speed control features of Transcribe!

Monday, July 19, 2010

Open-Source Applications for Music Education - Launching

Update: In the wake of Examiner.com's ill-fated "upgrade" to Drupal 7 (and subsequent loss of essential publishing features), I've migrated my work in this area to it's own self-contained blog on Blogger.

In the coming weeks I will begin writing tutorial articles for Examiner.com on open-source programs of use to Music Educators. My goal is to raise awareness of open-source solutions among educators generally and Music Educators specifically. Especially as educational institutions begin trending back toward open-source technology (and away from expensive licenses), I'm anticipating a vacuum of sorts for music teachers in particular. Many of the free alternatives to software music teachers (and musicians generally) rely upon are almost unknown to them. I hope to use Examiner to gain visibility for these applications and maybe generate some buzz about my own work in this area.

As I've set out to start this task, I've set some limitations and guidelines for myself and for the project:
  • Software demonstrated must be available on all three popular platforms: Windows®, Mac OS and GNU/Linux
  • Each concise article will demonstrate a specific application's features and their use for a specific purpose. Each article will be a self-contained project that will be immediately useful to music teachers.
  • New or derivative works created for the purpose of demonstrating the applications (a new work for strings, for example) will be licensed under a Creative Commons license.
  • Articles will be accessible to those with basic computer skills (that is, they don't have to be computer whizzes). To achieve this, I'm going to include helpful screenshots that are pertinent to the procedures outlined in the articles, interleaved with the text.

Bearing in mind that any screenshots of programs running under a GNU/Linux platform are a tacit advertisement for open-source operating systems, I've set about cobbling together some desktop art and interfaces on which to demonstrate the software. I spent some time searching the web for some really top-notch desktop wallpapers and GNOME themes to make the desktops as efficient and attractive as possible. I set out to make these desktop environments as clean and inviting as I could, so I'll leave you with shots of those desktops, with captions detailing a little of what's under the hood. Throughout the post, you can click on images to view them at larger resolution.


Ubuntu 10.04 LTS with the “Ambiance” theme and Avant Window Navigator (the dock). An Emacs buffer is open and I'm using the “Slick Workspace Switcher” applet to view the available virtual desktops.


With a Terminal window open.


Ubuntu 10.04 LTS with the “Human” them and DockbarX along the bottom.


With a Terminal window open.


Ubuntu 10.04 LTS with the “Human” theme and Avant Window Navigator. I'm using the AWN Main Menu applet to view the different categories of applications and utilities.


Using the “Slick Workspace Switcher.”

In the coming days, I plan to post some more shots of desktops in Linux Mint, Ubuntu Studio and maybe the new OpenSUSE. Stay tuned...

Copyright © 2010 by Stocker Enterprises, Inc. 

Wednesday, March 3, 2010

Sun Microsystems WebLog Publisher extension for OpenOffice.org


Look what the Sun WebLog Publisher extension for OpenOffice.org can do. I can format my text the way I want to, and the formatting carries over when I publish my post—all without ever even opening a web browser to edit my post. It can even do this:


\version "2.13.13"

\include "english.ly"

\score {
\new Staff = "Guitar" {
\clef "treble_8"
\key a \minor
\time 4/4
\numericTimeSignature
<<
\new Voice = "notes" {
\relative c {
<c a'>8 <b gs'> <c a'> <d b'>
<e c'> <f d'> <e c'>4
}
}
>>
}
}

A whole block of text in monospace, just like it would appear in my text editor when I'm working on source files. That Rocks!!


Hyperlinks are easier to deal with too, since I can specify the target frame in an OO.o dialog instead of having to manipulate the html code in Blogger's browser interface. Nice!


Next, I'll give it a go with pictures and graphics. We'll see how Blogger handles it.


Sunday, February 28, 2010

LilyPond: abusing \glissando to indicate scale runs on parallel strings


Fingering indications are ubiquitous in most written music, and this is especially true for Guitar music. There are seldom fewer than two or three solutions for a given passage of music and with all the editorial markings in common usage, Guitar music can quickly become cluttered. The job of the engraver is to creatively use a minimum of editorial markings to convey the maximum amount of information. For example, in the case of a scale run in thirds or sixths, it's more useful to indicate the strings the notes are played on rather than print each individual fingering for each individual note. Marking the strings intended for the scale run rather than the fingers used eliminates clutter on the page and concisely shows the composer's or arranger's intent. In this post, I'll demonstrate how to notate scale runs on parallel strings in Guitar music by using the \glissando command in invisible voices, along with \tweak and some other LilyPond magic.


First, open your favorite text editor and create your new LilyPond input file. Save it to a convenient location with the name “string_run.ly” For this demonstration, I use GNU Emacs, which has good LilyPond syntax highlighting. Syntax highlighting is useful for quickly spotting mistakes in the code. (Ctrl+click on images to display them in a separate window at full size.)
Go ahead and set up your input file by first typing a version statement, and setting up the basic structure of the file. In the examples, pay close attention to the comments (text following a %), as they tell you how each of the elements in the input file affects the output. Take a look at Example 1, and see the what the structure of the input file is like. Example 2 shows in more detail what each of the commands and and context indicators does in LilyPond.

Example 1


Example 2


Now, let's set up our staff for Guitar by putting in the clef, key signature and time signature commands in the Staff context. I'm writing the example in A Minor with a meter of 4/4. Next, it's time to add our scale run. Type in a run in thirds or sixths. I've chosen a short run in sixths. Let's compile the example and take a look (from here on out, Ctrl.+click on the images of music to view the source code in a separate tab or window).

That's beautiful isn't it? Now, let's get to work on the string indicators. For that, we're going to add a voice above and a voice below. Eventually, these voices will be invisible, leaving only a string number indication, and a long glissando line for each voice. To position the glissando line and set its angle, we'll set the notes strategically. The glissando line should be parallel to the overall trajectory of the line of music. You'll arrive at your own solutions through experimentation. Take a look.

Let's move the string number so that it appears right on the notehead, using the \tweak command. Put the command between the note and string number. This \tweak will affect the extra-offset of the string number, which is expressed as a pair of values—one each for the horizontal and vertical placement relative to the mark's normal default position. View the source code to see how this is done.

So far, so good. Now let's add the lower string indicator in the same manner. Since the string number's default placement is above the note, even when the note is below the staff, we'll need to specify a different default placement for it in LilyPond. I've told LilyPond to put the string number below the note for this voice, so that it will appear below the staff. This is done with \set stringNumberOrientations before the string number is called.

Great. Now let's clean it up. You'll notice that LilyPond shifts voices left or right to avoid collisions in multi-voice textures. This is usually the desired behavior. However, here we want the voices to all align vertically, so we'll add an \override to the first voice to tell LilyPond to ignore the note collisions. Also, in the “glissando” voices, add the \hideNotes command before the notes. And there you have it.

Wednesday, November 11, 2009

OpenOffice.org And The OOoLilyPond Extension – Part Two



Note: this is part two of a two-part post on using OpenOffice.org with the OOoLilyPond extension for documents used in a Music Education setting. Please see part one for information on downloading and installing OpenOffice.org, LilyPond and the OOoLilyPond extension.

Throughout this installment, click on images to view them at higher resolution.


The previous post gave some background information on two common methods of mixing text with music examples in documents intended for the music education setting: using graphics exported by commercial score writing programs in a word processing document; and using the text utilities of score writing programs to place text around and between music examples. Both methods have drawbacks. They're both inordinately time consuming. Depending on which method, you can end up with music excerpts of a poor graphic quality or text that is poorly formatted. In the first case, the need to handle multiple graphic files in a single word processing document can lead to frustratingly poor system performance, resulting in hangs or crashes in the worst cases. The previous post concluded with information on how and where to obtain two open-source applications—the OpenOffice.org office suite and the LilyPond music engraving program—and an extension for OpenOffice.org called OOoLilyPond. To proceed with this tutorial, you need to have all three components installed on your system. Part one of this post can be found here. Assuming you have these three pieces of the puzzle up and running, let's get started putting them to use.

For this project, we'll be making up a short quiz – “Music Theory Quiz 3.” Let's start by opening a fresh OpenOffice.org Writer (the word processor) document. In the upper left-hand corner of your window, you should see a button called “OLy.” That's your OOoLilyPond extension and we'll be using that shortly. Right away, let's make sure any work we do is saved by saving the file and giving it a name. From the menu bar, choose 'File=>Save As...' or press Ctrl+Shift+S. In the resulting dialog, give it the name 'mt_quiz3' and save it to a convenient location such as your desktop. Let's add the quiz title and type a space for students to write their names. You can do this whichever way you're used to. Now we're ready to start making up the quiz.
Now, when I make a worksheet or lesson, I like for text and graphic elements to be aligned and laid out in a uniform way. I've found that using tables is a great way to achieve this. Using tables requires some planning, so let's plan. This quiz will have 8 multiple-choice questions, with each question referring to a short music example. I think the best arrangement for this will be to have two columns, with four questions in each column. Let's allow each music example and each question to have its own cell, so that one excerpt and question combo would require two cells. For 8 questions in two columns, this means we need to insert a 2 x 8 table into our document. Locate the 'table' button on the toolbar and click on the down-arrow to the right. Drag the mouse down and to the right until you've highlighted a selection of 2 x 8. Now we have a 2 x 8 table inserted into our document. Those grid lines are a distraction, so let's get rid of them. Select the whole table by pressing Ctrl+A. The table should now be shaded. On the floating 'Table' toolbar, click the 'Borders' button, then click the first button in the drop-down, the one that shows a square with no black lines around it. The table boundaries are still visible, but now they're not bordered with black lines and will not print. Insert the quiz instructions above the table, and now we're ready to start adding music examples and questions.

Click inside the first cell. This is where our first question's music example will go. Go ahead and number it by typing “1.” followed by a space. Now, click on the 'OLy' button we highlighted earlier. Here's where it gets cool. The OOoLilyPond extension opens the “OOoLilyPond Editor,” a simple text-editor with some options for LilyPond. All of the default options are fine for now, so let's tap out our first music example in LilyPond code. (For information on getting started with LilyPond code, see here.) Click inside the text editor and press Ctrl+A to select all of the default code, and then press the Backspace or Delete key to get rid of it. Now, type your code, and press the 'LilyPond' button in the bottom right of the window to call LilyPond and compile your music example. The OOoLilyPond extension will do its thing and after a few seconds, you'll have a partial measure of music right there in your document. Now, click inside the second cell in the first column and compose your question. To get the lettering format I used, click the 'Numbering On/Off' button on the main toolbar, and then click the 'Bullets and Numbering' button on the resulting, floating toolbar. In the 'Bullets and Numbering' dialog, click the 'Numbering type' tab and select the matching option and click 'OK.'
This is the time to admire our handiwork a little. Using the 'PDF Export' feature of Writer, we can make a high-quality PDF file for viewing and printing. The 'Export Directly as PDF' button is located on the main toolbar in Writer, so go ahead and click it. Give your file a name in the resulting dialog, choose a location and click 'Save.' Now, open the PDF in Adobe Reader and zoom way in. That's pretty good, but the graphic looks a little fuzzy (click the image for a closer look). Fortunately, we can fix this in the OOoLilyPond editor window. In Writer, click on the music example to select it, then click the 'OLy' button again to reopen the editor. Then, click the 'Config' button to open the Configuration dialog. On the right, there's a box for setting the resolution for LilyPond's graphic output. The default is 300 which is a little low. You can adjust it to suit your own sensibilities. The maximum is 2400, so I'll type that in and click 'OK' to return to the OOoLilyPond editor. In the editor, I'll click the 'LilyPond' button to recompile the music example at the new resolution. After that, export your file to PDF again. If Writer asks you whether you want to overwrite the existing file, choose 'Yes.' Go back to Adobe Reader and check the result. As you can see, the graphic is much sharper. Now that we have things the way we want, it's time to get back to work.

At this point, it's a good idea to copy and paste what you've already done into the remaining table cells and then edit each individual example and quiz item from the clones of the first one. That will save you time in formatting additional cells, since the formatting is copied along with the text. All you'll have left to do then is to modify the existing LilyPond code and text. Once you're finished, keep a copy of the document as a template for future quizzes. Once you get proficient with the small amount of LilyPond code you'll need, you can whip up a quiz or worksheet of this length in about 20 minutes.

As you can see, high-quality, professionally crafted lesson materials are well within reach with the right tools. When linked together by the OOoLilyPond extension, OpenOffice.org and LilyPond provide the perfect one-two combination for quickly and easily forging top-rate worksheets and quizzes. By having access to the powerful and flexible LilyPond engraving program right inside OpenOffice.org Writer, we can eliminate the need to deal with two programs separately. Because we're using two distinct, specialized tools for the purposes they're intended for, we don't need to force any application to do a task it's not well suited to. We can have the best of both, with the drawbacks of neither.
You can download a copy of the full quiz made for this post by clicking these links: *.odt (OpenOffice.org) *.pdf (Adobe PDF)


Text and images Copyright © 2009 David B. Stocker

Monday, November 9, 2009

OpenOffice.org And The OOoLilyPond Extension – Part One


Note – this is part one of a two-part post on using OpenOffice.org with the OOoLilyPond extension for documents used in a Music Education setting.


In the past, mixing music and text in a word-processing document was complicated and time consuming. We were forced to choose between two less than optimal methods: exporting music examples one-at-a-time from a score writer into a text document, or typing text into a score writer between and around the music examples. The first choice required importing multiple graphic files, generated by the score writer, and placing them in the text document. Dealing with multiple files was inconvenient and could be a time drain. In addition, if the graphic excerpts were to be of fair quality, the file sizes could quickly become unmanageable and dealing with several of them in a single document often resulted in reduced performance of score writing and word processing programs on machines with modest specifications. This scenario usually ended in a compromise on the quality of the music examples, leading to worksheets and test papers that looked unprofessional (click images to enlarge). The second option produced better-looking output all the way 'round, but even the most expensive score writers did not handle text well. Paragraphs, bulleted or numbered lists, and text layout had to be faked by using spaces since the score writers' text utilities didn't handle common word processing tasks natively. Also, measures, staves and systems all needed heavy manual formatting in order to fit most worksheet or exam styles. With the second method, the results were definitely superior. However, it was even more time consuming than the first method. No matter which choice you made, the results were always mixed at best, forcing a tradeoff between quality and (relative) ease. But now there's a third choice: use a scoring program to make your music examples right inside your word processor by using a native plug-in.


Using two freely available software applications, music educators can print worksheets, exams, quizzes, custom lessons or any other document that uses printed music examples alongside text instructions. OpenOffice.org, the full featured, open-source office suite and LilyPond, the flagship open-source music engraver are both top-notch, free programs. In the past few years, LilyPond has matured into a real force in music engraving software. It produces beautiful music engravings that are the envy of expensive commercial programs. OpenOffice.org, with its support of open standards for document file formats has become a mainstay of Governments and Higher Learning and, more recently, schools and businesses.


OpenOffice.org is every bit as functional as Microsoft Office and has a familiar interface common to many office software suites. Since it's available for Windows, Mac OS and GNU/Linux platforms, it's an option for virtually anyone who uses a computer. What's more, with its impressive selection of available plug-ins, it's functionality is customizable for a staggering array of tasks and working environments. One of these plug-ins is the OOoLilyPond extension. With OOoLilyPond for OpenOffice.org Writer and Impress, you can use LilyPond right inside your text document or slide presentation. This method involves learning some LilyPond code (LilyPond uses a text-based markup syntax rather than a point-and-click graphic interface), but the minimal code required to use the OOoLilyPond extension is well-worth learning for the time and trouble it will save you.


For the next installment, we'll create a short, multiple choice music theory quiz using OpenOffice.org with the OOoLilyPond extension. Unless you already have all three required components for this project (OpenOffice.org, LilyPond and the OOoLilyPond extension), you'll need to do some preparation. Here's your homework:


  1. Download and install the latest OpenOffice.org suite from the OpenOffice.org website – http://www.openoffice.org/


  2. Download and install LilyPond from the LilyPond website – http://lilypond.org/web/install/ LilyPond is developing rapidly, so if you like bleeding edge software, be brave and get the latest 'development branch' (currently 2.13.7-1). The development branch is typically very stable.


  3. Grab the OOoLilyPond extension from Sourceforge - http://ooolilypond.sourceforge.net/ The download, installation instructions and other information are all on the same page.


  4. Read up on some LilyPond syntax in the online documentation – the Tutorial section of the Learning Manual is an excellent place to start.

Text and Images Copyright © 2009 David B. Stocker

Next post - Using OpenOffice.org and LilyPond to make worksheets, tests and quizzes.

Sunday, October 25, 2009

Interview


Transcribing popular music is largely a behind-the-scenes affair. While not completely anonymous—I usually get a byline—the artists whose intellectual property I render into sheet music receive the praise and credit for their art and really, that's the way it should be and I'm fine with that. Occasionally, however, I do receive correspondence from a reader or musician whom I don't know, and I'm always humbled when it happens.


Last week, I was surprised to receive an email from Ben Frankis, a student at the Academy of Contemporary Music in England. He's finishing up his studies in Guitar there and is writing a thesis on transcribing, a pursuit he's entertaining as a source of income. As part of his research, he asked if I would answer some questions about transcribing and how I go about it. His questions are, I feel, good ones for anyone who is seriously considering doing work as a professional transcriber; so I asked for his permission to post the questions and answers here and he consented. Here are his questions and my answers:


Ben Frankis: Have you received formal music training, if so what?


David Stocker: The first formal training I received was in a Classical Guitar class I took in 7th Grade. After I moved to Central Virginia with my family in '89, I was mostly self-taught. By 'self taught', I mean that I spent hours upon hours in my room learning by ear (I didn't realize it at the time, but these would prove to be my formative years—learning by rote the songs and techniques of my favorite guitarists). In my Senior Year at High School, I took a Music Theory class (the only formal music class I took between Middle School and College). Throughout High School and College, I played in bands in the Richmond area.


After High School, I began studies at Virginia Commonwealth University's School of Music, where I eventually earned a Bachelor of Music degree in Classical Guitar Performance. In that time, I also studied Piano, Jazz Guitar, Music Theory and Music History (as well as Philosophy and Religion). I graduated in 1998.


After VCU, I spent about 18 mo. at Arizona State University studying Music Education. Ultimately, I settled on music publishing and discontinued my studies.


BF: How did you start to transcribe professionally?


DS: In the Spring of 2001, while I was teaching private guitar lessons, I started emailing editors of guitar magazines, inquiring about working as a freelance transcriber. I had always been able to learn recorded music by careful listening and experimentation, and so was confident in my ability to do it for work. After sending in samples of transcriptions and getting some feedback from editors, I began to receive assignments from publishers.


BF: Do you use any software or tools to help you work out a piece of music and/or to notate it, if so what?

DS: I use a program called Transcribe! to assist in the work of transcribing. The program allows you to slow down recordings, isolate right or left channels, loop sections of the recording and has a number of other useful features. Most of my transcriptions are hand-written. When I do engravings, I use Finale, Sibelius or LilyPond depending on the client. I recommend LilyPond to clients, especially for Classical music engravings because of the high quality output it produces.


BF: Do you have a set process when transcribing?


DS: When I start on a transcription, the first thing I do is load the sound file in Transcribe! Then, I listen to the entire track 2 times through. On the third pass, I start adding markers and text blocks to the transcription file. The markers help me to navigate through different sections of the song quickly. I use the text blocks to label sections and add details about what is happening with the music, like what instruments are playing and when they come in, their orientation in the stereo image, etc.


BF: To what extent should a guitarist be stylistically and technically proficient if they want to work as a professional transcriber?


DS: It's important to know the range of the guitar and be familiar with the various tunings modern guitarists are using. I'd estimate that about 1/2 to 2/3 of all the music I transcribe is in some derivative of standard tuning. The rest is in something else, mostly Drop D, but there are several others that pop up now and then—open tunings, DADGAD or what have you. Open tunings are especially prominent in styles where there is a lot of slide playing like in Blues or American Country music.


A working knowledge of various guitar techniques—picking styles, harmonics, fingerstyle, capo usage, etc.—is essential. It's also good to have experience with the various effects and signal processors in wide usage today. A good grasp of Music Theory is also important. Most of the music I transcribe is in traditional "guitar keys" like A, E and D minor or C, G, A, D or E major. Occasionally you get something less common like B major or G minor, so it's good to be flexible and to be able to think in all keys. Having some knowledge of modern studio recording techniques is a plus.


As for styles, the most important thing is to approach new music with the mind of a beginner and not to assume too much from the outset. It's critical that you can identify and reproduce the sounds you hear on a recording. Usually, the technical aspects of a given style are readily apparent, but that's not always the case. Nailing down techniques in a style that you're unfamiliar with often means doing some research, which usually means watching video of live performances.


BF: What do you consider to be the most important skills required in transcribing?


DS: Being able to cut through effects and draw out the notes. Listening for tone differences and being able to identify by sound what kind of instrument someone is playing and what kinds of effects they're using. Fluency with music notation and terminology. And of course, technical proficiency on the instrument you're transcribing for.


BF: What advice do you have for someone pursuing a career as a professional transcriber?


DS: Learn to play a lot of music by listening to it. Strive to emulate your favorite players and styles, but also, don't be afraid of trying something new now and then. Become a proficient sight-reader.


BF: Why do think you have been able to have a successful career transcribing?


DS: I've been successful because I don't let go of a transcription until I know I've done everything I can to make it the best that I possibly can. My process is under a continual process of refinement. I like to try new things and I've learned to keep what works and shed what doesn't. I also have a policy of total honesty with my clients with regard to deadlines and my own capabilities. Potential employers appreciate when you're honest with them, even when sometimes you just want to tell them what they want to hear in order to get the job. In a real work environment, where there are real deadlines, it's important to be realistic about work quality and time frames, so that the ones who are depending on you can in turn be depended upon.