Difference between revisions of "PLOrk2009/TheodorPopovFinalProject"

From CSWiki
Jump to: navigation, search
 
(The Theremin Harmonizer)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Rebecca's Final Project ==
+
== The Theremin Harmonizer ==
Please don't edit my page, but you can click "edit" above and copy and paste the source for this page into your own page to help you out.
+
For my final project I built several variations of a harmonizing instrument that takes a pitch input and creates harmonies around it. It is designed to work particularly well with a [http://www.soundslikeburns.com/New_Items/deluxe.html B3 Deluxe Theremin]. However, you can try it at home by whistling with similar results.
  
=== This is a subsection ===
+
=== Why Theremin? ===
  
With some text.
+
Patented in the early 1900s by a Russian genius, the [http://en.wikipedia.org/wiki/Theremin theremin] is the first electronic instrument. Its invention stimulated creativity and developments that revolutionized the way we look at music: practically everything is possible for a composer nowadays.
  
* And some bullet points
+
The theremin, however, fell into relative oblivion – few know of its existence today and even fewer work actively towards its development as a musical instrument. One major lack, for instance, is the inability of the player to produce more than one pitch at the same time. True, it is a melodic instrument, but unlike most other melodic instruments it is not capable of “cheats” to create harmony (arpeggios are very difficult to do and notes can not be sustained after they have been played).
* Here's another
 
  
=== This is another subsection ===
+
One solution to these issues can be found in the just released by Moog Music model: the [http://www.moogmusic.com/theremin/ Etherwave Plus] which gives the player unmatched before freedom of modification of the sound the instrument produces. Another one is offered by my final project.
  
[http://www.google.com with a link off the wiki]
+
=== The Harmonizer ===
  
[[PLOrk_spring2009 | and a link on the wiki]]
+
I used [http://chuck.cs.princeton.edu/ ChucK] and the [http://audicle.cs.princeton.edu/ MiniAudicle] to create code that analyzes the sound input and determines the fundamental of the pitch by looking at the peak of the spectrum. Then it creates musical intervals around that pitch and plays back different harmonies. The code is easy to work with and allows for freedom of modification because one can just comment(uncomment) the undesired(desired) intervals.
  
=== What to include on your project page ===
+
There are several versions of the code that you can download [http://www.princeton.edu/~tpopov/Theo_Popov-Codes.zip here]. The basic one builds a diminished seventh cord over the input pitch. There are also variations for a major and minor triads. Finally, the “Rule of the Octave” harmonizes the chromatic scale from C4 to C5 with suitable chords within a C major context.
* A description of your project
+
 
* Your code
+
=== Disclaimer ===
** If it's short, you can make a new page for it like [http://wiki.cs.princeton.edu/index.php/Poly_demo.ck this one]
+
 
** Or, if there's a lot of it, put it in a .zip file so that people can upload it.
+
The Harmonizer works well for clear-pitched instruments such as the B3 Theremin. However, it doesn’t do a very good job of determining the fundamental of rich timbre instruments because it is not always the highest peak in the spectrum. For example if you tried playing the piano, it would not harmonize the tones you think it should.
*** We suggest: put it in your public_html directory on your network drive, then make a link, e.g. to http://www.princeton.edu/~yourname/yourfile.zip. Let us know if you need any help!
+
 
* Instructions on how to run your code
+
=== The Results ===
* A sound or video recording of your piece. Going lo-fi and using built-in webcam from another laptop (e.g. PLOrk machine in studio B) is fine. But for audio, if you're using chuck, best to use rec.ck for writing chuck's output directly to a file.
+
The following short clips show the results of this harmonizing experiment. Here are three conclusions that can be reached:
** See directions above on putting it on your network drive and linking to it
+
 
 +
* 1) The "Rule of the Octave" does a fairly good job of harmonizing a [http://www.princeton.edu/~tpopov/ascending_octave.AVI.zip glissando ascending octave] (although some leading tones don't resolve properly).
 +
 
 +
* 2) The diminished chords version is good for creating [http://www.princeton.edu/~tpopov/Spooky_sounds.AVI.zip spooky sounds] reminiscent of 60s horror movies.
 +
 
 +
* 3) [http://www.princeton.edu/~tpopov/Twinkle_Twinkle.AVI.zip "Twinkle Twinkle"] and [http://www.princeton.edu/~tpopov/In_The_Jungle.AVI.zip "In the Jungle"], however, should never be played on a harmonized theremin.
 +
 
 +
Overall, this harmonizing instrument is far from perfect but it is a good foundation to build on.
 +
 
 +
=== Acknowledgments ===
 +
Thank you, Rebecca, for answering my many (and sometimes not so intelligent) questions. And thank you everyone else in PLOrk - this has been one of the most fun classes I have taken so far.
 +
 
 +
=== The Honor Code ===
 +
 
 +
This project represents my own work in accordance with University regulations.
 +
Theodor Popov'11

Latest revision as of 13:35, 12 May 2009

The Theremin Harmonizer

For my final project I built several variations of a harmonizing instrument that takes a pitch input and creates harmonies around it. It is designed to work particularly well with a B3 Deluxe Theremin. However, you can try it at home by whistling with similar results.

Why Theremin?

Patented in the early 1900s by a Russian genius, the theremin is the first electronic instrument. Its invention stimulated creativity and developments that revolutionized the way we look at music: practically everything is possible for a composer nowadays.

The theremin, however, fell into relative oblivion – few know of its existence today and even fewer work actively towards its development as a musical instrument. One major lack, for instance, is the inability of the player to produce more than one pitch at the same time. True, it is a melodic instrument, but unlike most other melodic instruments it is not capable of “cheats” to create harmony (arpeggios are very difficult to do and notes can not be sustained after they have been played).

One solution to these issues can be found in the just released by Moog Music model: the Etherwave Plus which gives the player unmatched before freedom of modification of the sound the instrument produces. Another one is offered by my final project.

The Harmonizer

I used ChucK and the MiniAudicle to create code that analyzes the sound input and determines the fundamental of the pitch by looking at the peak of the spectrum. Then it creates musical intervals around that pitch and plays back different harmonies. The code is easy to work with and allows for freedom of modification because one can just comment(uncomment) the undesired(desired) intervals.

There are several versions of the code that you can download here. The basic one builds a diminished seventh cord over the input pitch. There are also variations for a major and minor triads. Finally, the “Rule of the Octave” harmonizes the chromatic scale from C4 to C5 with suitable chords within a C major context.

Disclaimer

The Harmonizer works well for clear-pitched instruments such as the B3 Theremin. However, it doesn’t do a very good job of determining the fundamental of rich timbre instruments because it is not always the highest peak in the spectrum. For example if you tried playing the piano, it would not harmonize the tones you think it should.

The Results

The following short clips show the results of this harmonizing experiment. Here are three conclusions that can be reached:

  • 1) The "Rule of the Octave" does a fairly good job of harmonizing a glissando ascending octave (although some leading tones don't resolve properly).
  • 2) The diminished chords version is good for creating spooky sounds reminiscent of 60s horror movies.

Overall, this harmonizing instrument is far from perfect but it is a good foundation to build on.

Acknowledgments

Thank you, Rebecca, for answering my many (and sometimes not so intelligent) questions. And thank you everyone else in PLOrk - this has been one of the most fun classes I have taken so far.

The Honor Code

This project represents my own work in accordance with University regulations. Theodor Popov'11