Build project to git repo
This commit is contained in:
parent
55d5c2d31e
commit
e44c3e83a8
|
@ -0,0 +1,13 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER">
|
||||
<attributes>
|
||||
<attribute name="module" value="true"/>
|
||||
</attributes>
|
||||
</classpathentry>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="lib" path="library/SoundtrackOptical.jar"/>
|
||||
<classpathentry kind="lib" path="/Applications/Processing.app/Contents/Java/core.jar"/>
|
||||
<classpathentry kind="lib" path="/Users/matthewmcwilliams9/Documents/Processing/libraries/sound/library/sound.jar"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
|
@ -0,0 +1,17 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>SoundtrackOptical</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.jdt.core.javabuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.jdt.core.javanature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
|
@ -14,7 +14,7 @@ public class SoundtrackOptical {
|
|||
|
||||
float IN = (float) 25.4; //mm/in
|
||||
float FRAME_H = (float) 7.62; //mm
|
||||
float FRAME_W = (float) (12.52 - 10.26);; //mm
|
||||
float FRAME_W = (float) (12.52 - 10.26); //mm
|
||||
|
||||
float DPMM = (float) (DPI / IN);
|
||||
int FRAME_H_PIXELS = (int) Math.round(DPMM * FRAME_H);
|
||||
|
@ -53,13 +53,18 @@ public class SoundtrackOptical {
|
|||
DEPTH = (int) Math.floor(DPMM * FRAME_W);
|
||||
|
||||
soundfile = new SoundFile(parent, FILEPATH);
|
||||
|
||||
parent.println("OLD SAMPLE_RATE: " + soundfile.sampleRate());
|
||||
|
||||
soundfile.rate(SAMPLE_RATE);
|
||||
|
||||
FRAMES = (int) Math.ceil(soundfile.frames() / FRAME_H_PIXELS);
|
||||
|
||||
parent.println(FRAMES);
|
||||
parent.println(DEPTH);
|
||||
parent.println(FRAME_H_PIXELS);
|
||||
|
||||
parent.println("SAMPLE_RATE: " + SAMPLE_RATE);
|
||||
parent.println("FRAMES: " + FRAMES);
|
||||
parent.println("WIDTH: " + DEPTH);
|
||||
parent.println("HEIGHT: " + FRAME_H_PIXELS);
|
||||
|
||||
for (int x = 0; x < soundfile.frames(); x++) {
|
||||
compare = soundfile.read(x);
|
||||
|
|
Loading…
Reference in New Issue