Harry Partch Ratio Representation Project


by Brian Harlan and Arun Chidambaram




IV. Implementation

The Implementation of this Project was done in JAVA and MATLAB. We have three versions of this Project

Version 1. Polyphonic Visualization of Partch's works developed in JAVA

   A program was written in JAVA that allows the listener to visualize polyphonic notes from Partch's works. It takes polyphonic notes as input with any number of notes per line on a notepad file .The output is a figure which shows the polyphonic ratios being plotted on it corresponding to the ratios

Version 2 .Monophonic Visualization and Listening of Partch's work in JAVA (needs internet to run)

     A program was written in JAVA that allows the listener to visualize melodic relationships while hearing an audio output. It takes monophonic input with one note per line on a notepad file .The output is a figure which shows the monophonic ratios being plotted on it and at the same time sound plays through the speaker corresponding to the note.

Version 3  Polyphonic Sound creation of Partch's works developed in MATLAB

                 A second program was written in MatLab to create a  machine-readable representation for ratio notation .This program creates sound  according to Partch's ratios and saves as a wav file on the Desktop for future analysis

Download Source Code -JAVA- version1, version 2MATLAB , Image file (needed to run the program)

Creating Input files:

For Version 1 -Takes polyphonic inputs

1.) Open a notepad file

2.) Type in the ratios -line by line Example

       1/1 32/21 4/3

       2/3

        4/7

3.)Save the file as ratios.txt

Example for Version 1-Input

For Version 2 -

1.) Open a notepad file-Takes only monophonic inputs

2.) Type in the ratios -line by line  Example

       1/1

     32/21 

       2/3

        4/7

3.)Save the file as ratios.txt

Example for Version2-Input

For Version 3-

1.) Open the musmat1.m file in notepad

2.) Type in the ratios in vector task  Example for 1/1-type a0101, for 16/11 type-a1611, for 160/81 -a16081, for 11/6-a1106 2/1 -a0202

3.) Ratios can be added for complex sounds Example a1611+a0101

3.)Save the file as ratios.txt

Example for version 3-Input

 

How to Run-Java

1.) Install Java on your machine

2.) Go to command prompt -Press start on Windows .Click run. Type cmd on run and click ok

3.) Go to the folders where you have all our source files

4.) Set path to Java bin Ex: set path=C:\Documents and Settings\'username'\desktop\Jbuilder\jdk1.4\bin 'username' is your login name on your local machine and Jbuilder is the folder where the java files are stored and link to bin

5.) Set class path  Ex: set classpath=C:\Documents and Settings\'username'\Desktop\sounds  .'username' is your login name on your local machine

6.)Type in the ratios and save it in ratios.txt

6.)Compile the file  Ex: javac prog.java   for Polyphonic Visualization of Partch's works

                                   javac progsound.java for Monophonic Visualization and Listening of Partch's work

7.) Execute the file Ex: java prog two.jpg for Polyphonic Visualization of Partch's works .two.jpg is the output image file

                                   java progsound  two.jpg for Polyphonic Visualization of Partch's works .two.jpg is the output image file

8.) Enjoy the Output.

 

How to run- MatLab

1.) Start MatLab

2.) open musmat1.m in notepad, type in the desired ratios in the vector task, save the file and close it

3.) type musmat in the command line on MatLab and press enter

4.)type musmat1 on command line on MatLab and press enter

5.) Put on your headphones and Enjoy.

 

___________________________________________________________________

Introduction  2 3 4  | Ratio Notation  |  Partch’s Theory of" Monophony”  |  Implementation  | Examples

 

 

The University of Southern California does not screen or control the content on this website and thus does not guarantee the accuracy, integrity, or quality of such content. All content on this website is provided by and is the sole responsibility of the person from which such content originated, and such content does not necessarily reflect the opinions of the University administration or the Board of Trustees