Permalink
Browse files

Moved to maven

  • Loading branch information...
1 parent 5410b64 commit b971486131d4d00e560c63fb514ce763e868a331 @zk committed Jan 20, 2009
Showing with 1,033 additions and 153 deletions.
  1. BIN .DS_Store
  2. +2 −9 .classpath
  3. +2 −0 .gitignore
  4. +6 −0 .project
  5. +4 −4 .settings/org.eclipse.jdt.core.prefs
  6. +3 −3 .settings/org.maven.ide.eclipse.prefs
  7. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_close_closure3.class
  8. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_close_closure4.class
  9. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_getSamples_closure6.class
  10. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_pause_closure2.class
  11. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_play_closure1.class
  12. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_setGain_closure3.class
  13. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_setMute_closure4.class
  14. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_setMute_closure5.class
  15. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_setMuted_closure4.class
  16. BIN bin-groovy/napplelabs/dbssim/SignalContainer$_setVolume_closure3.class
  17. BIN bin-groovy/napplelabs/dbssim/SignalContainer.class
  18. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_closure1.class
  19. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_closure2.class
  20. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createMasterControls_closure1.class
  21. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createMasterControls_closure2.class
  22. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure1.class
  23. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure2.class
  24. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3.class
  25. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3_closure7.class
  26. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3_closure8.class
  27. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure4.class
  28. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure5.class
  29. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure3.class
  30. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure4.class
  31. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure5.class
  32. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure6.class
  33. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure7.class
  34. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_main_closure5.class
  35. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_main_closure6.class
  36. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_main_closure7.class
  37. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud$_main_closure8.class
  38. BIN bin-groovy/napplelabs/dbssim/ui/ControlHud.class
  39. BIN bin-groovy/napplelabs/dbssim/ui/MacFrame.class
  40. BIN bin-groovy/napplelabs/dbssim/ui/SimUI$_closure1.class
  41. BIN bin-groovy/napplelabs/dbssim/ui/SimUI$_closure2.class
  42. BIN bin-groovy/napplelabs/dbssim/ui/SimUI$_closure2_closure4.class
  43. BIN bin-groovy/napplelabs/dbssim/ui/SimUI$_closure3.class
  44. BIN bin-groovy/napplelabs/dbssim/ui/SimUI$_closure3_closure5.class
  45. BIN bin-groovy/napplelabs/dbssim/ui/SimUI.class
  46. BIN lib/aopalliance.jar
  47. BIN lib/guice-1.0.jar
  48. BIN lib/jl1.0.jar
  49. BIN lib/{miglayout-3.6.2-swing.jar → miglayout-3.6.2.jar}
  50. BIN lib/mp3spi1.9.4.jar
  51. +148 −16 pom.xml
  52. BIN src/.DS_Store
  53. BIN src/main/.DS_Store
  54. +20 −5 src/main/{java → groovy}/napplelabs/dbssim/NeuronPlayer.java
  55. +10 −1 src/main/{java → groovy}/napplelabs/dbssim/NeuronSignal.java
  56. +116 −0 src/main/groovy/napplelabs/dbssim/SignalContainer.groovy
  57. +13 −30 src/main/{java → groovy}/napplelabs/dbssim/TracePanel.java
  58. +3 −3 src/main/{java → groovy}/napplelabs/dbssim/example/ExampleNeuronSignal.java
  59. +12 −0 src/main/groovy/napplelabs/dbssim/example/RobotTest.java
  60. +149 −0 src/main/groovy/napplelabs/dbssim/ui/ControlHud.groovy
  61. 0 src/main/{java → groovy}/napplelabs/dbssim/ui/MacFrame.groovy
  62. +24 −14 src/main/{java → groovy}/napplelabs/dbssim/ui/SimUI.groovy
  63. BIN src/main/{java → groovy}/napplelabs/resources/dotmac.png
  64. BIN src/main/{java → groovy}/napplelabs/resources/sourceViewNormal.png
  65. BIN src/main/{java → groovy}/napplelabs/resources/sourceViewNormalSelected.png
  66. +0 −51 src/main/java/napplelabs/dbssim/ui/ControlHud.groovy
  67. BIN src/main/resources/1-ET-thalamus-tremor.wav
  68. BIN src/main/resources/1-PD-gpe-pauser.wav
  69. BIN src/main/resources/1-dystonia-gpe.wav
  70. BIN src/main/resources/10-PD-STN.wav
  71. BIN src/main/resources/11-PD-STN-2unit.wav
  72. BIN src/main/resources/12-PD-STN.wav
  73. BIN src/main/resources/13-PD-STN.wav
  74. BIN src/main/resources/14-PD-STN.wav
  75. BIN src/main/resources/15-PD-SNr.wav
  76. BIN src/main/resources/2-PD-GPe-burster.wav
  77. BIN src/main/resources/2-dystonia-gpe.wav
  78. BIN src/main/resources/3-dystonia-gpi.wav
  79. BIN src/main/resources/4-PD-border.wav
  80. BIN src/main/resources/4-dystonia-gpi.wav
  81. BIN src/main/resources/5-PD-gpi.wav
  82. BIN src/main/resources/5-dystonia-gpi.wav
  83. BIN src/main/resources/6-PD-gpi.wav
  84. BIN src/main/resources/7-PD-gpi.wav
  85. BIN src/main/resources/8-PD-gpi-tremor.wav
  86. BIN src/main/resources/9-PD-optictract-multipleaxons.wav
  87. +0 −13 src/test/java/napplelabs/dbssim/TestNeuronSignal.java
  88. BIN target/classes/1-ET-thalamus-tremor.wav
  89. BIN target/classes/1-PD-gpe-pauser.wav
  90. BIN target/classes/1-dystonia-gpe.wav
  91. BIN target/classes/10-PD-STN.wav
  92. BIN target/classes/11-PD-STN-2unit.wav
  93. BIN target/classes/12-PD-STN.wav
  94. BIN target/classes/13-PD-STN.wav
  95. BIN target/classes/14-PD-STN.wav
  96. BIN target/classes/15-PD-SNr.wav
  97. BIN target/classes/2-PD-GPe-burster.wav
  98. BIN target/classes/2-dystonia-gpe.wav
  99. BIN target/classes/3-dystonia-gpi.wav
  100. BIN target/classes/4-PD-border.wav
  101. BIN target/classes/4-dystonia-gpi.wav
  102. BIN target/classes/5-PD-gpi.wav
  103. BIN target/classes/5-dystonia-gpi.wav
  104. BIN target/classes/6-PD-gpi.wav
  105. BIN target/classes/7-PD-gpi.wav
  106. BIN target/classes/8-PD-gpi-tremor.wav
  107. BIN target/classes/9-PD-optictract-multipleaxons.wav
  108. BIN target/classes/napplelabs/dbssim/NeuronPlayer.class
  109. BIN target/classes/napplelabs/dbssim/NeuronSignal.class
  110. BIN target/classes/napplelabs/dbssim/SignalContainer$_close_closure4.class
  111. BIN target/classes/napplelabs/dbssim/SignalContainer$_getSamples_closure6.class
  112. BIN target/classes/napplelabs/dbssim/SignalContainer$_pause_closure2.class
  113. BIN target/classes/napplelabs/dbssim/SignalContainer$_play_closure1.class
  114. BIN target/classes/napplelabs/dbssim/SignalContainer$_setGain_closure3.class
  115. BIN target/classes/napplelabs/dbssim/SignalContainer$_setMute_closure5.class
  116. BIN target/classes/napplelabs/dbssim/SignalContainer.class
  117. BIN target/classes/napplelabs/dbssim/TracePanel$1.class
  118. BIN target/classes/napplelabs/dbssim/TracePanel$2.class
  119. BIN target/classes/napplelabs/dbssim/TracePanel.class
  120. BIN target/classes/napplelabs/dbssim/example/ExampleNeuronSignal.class
  121. BIN target/classes/napplelabs/dbssim/example/RobotTest.class
  122. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createMasterControls_closure1.class
  123. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createMasterControls_closure2.class
  124. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3.class
  125. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3_closure7.class
  126. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createNeuronControls_closure3_closure8.class
  127. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure4.class
  128. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_createPinkNoiseControls_closure5.class
  129. BIN target/classes/napplelabs/dbssim/ui/ControlHud$_main_closure6.class
  130. BIN target/classes/napplelabs/dbssim/ui/ControlHud.class
  131. BIN target/classes/napplelabs/dbssim/ui/MacFrame$_addToolbarButton_closure1.class
  132. BIN target/classes/napplelabs/dbssim/ui/MacFrame.class
  133. BIN target/classes/napplelabs/dbssim/ui/SimUI$_closure1.class
  134. BIN target/classes/napplelabs/dbssim/ui/SimUI.class
  135. BIN target/classes/napplelabs/resources/dotmac.png
  136. BIN target/classes/napplelabs/resources/sourceViewNormal.png
  137. BIN target/classes/napplelabs/resources/sourceViewNormalSelected.png
  138. +124 −0 target/generated-sources/groovy-stubs/main/napplelabs/dbssim/SignalContainer.java
  139. +153 −0 target/generated-sources/groovy-stubs/main/napplelabs/dbssim/ui/ControlHud.java
  140. +145 −0 target/generated-sources/groovy-stubs/main/napplelabs/dbssim/ui/MacFrame.java
  141. +99 −0 target/generated-sources/groovy-stubs/main/napplelabs/dbssim/ui/SimUI.java
  142. +0 −4 target/mvn-eclipse-cache.properties
  143. BIN target/test-classes/napplelabs/dbssim/TestNeuronSignal.class
View
BIN .DS_Store
Binary file not shown.
View
@@ -1,18 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" output="target/classes" path="src/main/java"/>
+ <classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
<classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
- <classpathentry kind="lib" path="lib/minim.jar"/>
- <classpathentry kind="lib" path="lib/core.jar"/>
- <classpathentry kind="lib" path="lib/minim-spi.jar"/>
- <classpathentry kind="lib" path="lib/jsminim.jar"/>
- <classpathentry kind="lib" path="lib/tritonus_aos.jar"/>
- <classpathentry kind="lib" path="lib/tritonus_share.jar"/>
- <classpathentry kind="lib" path="lib/forms-1.2.1.jar"/>
- <classpathentry kind="lib" path="lib/miglayout-3.6.2-swing.jar"/>
<classpathentry exported="true" kind="con" path="GROOVY_SUPPORT"/>
- <classpathentry combineaccessrules="false" kind="src" path="/macwidgets"/>
+ <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER"/>
<classpathentry kind="output" path="target/classes"/>
</classpath>
View
@@ -0,0 +1,2 @@
+*.class
+*.jar
View
@@ -15,8 +15,14 @@
<arguments>
</arguments>
</buildCommand>
+ <buildCommand>
+ <name>org.maven.ide.eclipse.maven2Builder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
</buildSpec>
<natures>
+ <nature>org.maven.ide.eclipse.maven2Nature</nature>
<nature>org.eclipse.jdt.core.javanature</nature>
<nature>org.codehaus.groovy.eclipse.groovyNature</nature>
</natures>
@@ -1,13 +1,13 @@
-#Wed Jan 14 20:14:49 MST 2009
+#Tue Jan 20 00:59:57 MST 2009
eclipse.preferences.version=1
org.eclipse.jdt.core.builder.resourceCopyExclusionFilter=*.launch,*.groovy
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.2
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.compliance=1.4
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
org.eclipse.jdt.core.compiler.debug.localVariable=generate
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.source=1.3
@@ -1,8 +1,8 @@
-#Wed Jan 14 00:14:16 MST 2009
+#Tue Jan 20 00:59:57 MST 2009
activeProfiles=
eclipse.preferences.version=1
fullBuildGoals=process-test-resources
-includeModules=true
-resolveWorkspaceProjects=false
+includeModules=false
+resolveWorkspaceProjects=true
resourceFilterGoals=process-resources resources\:testResources
version=1
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
File renamed without changes.
View
Binary file not shown.
View
164 pom.xml
@@ -1,18 +1,150 @@
+<?xml version="1.0" encoding="UTF-8"?>
+ <!--
+ Generated from archetype; please customize.
+-->
+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
- <modelVersion>4.0.0</modelVersion>
- <groupId>napplelabs</groupId>
- <artifactId>dbssim</artifactId>
- <packaging>jar</packaging>
- <version>0.1-SNAPSHOT</version>
- <name>dbssim</name>
- <url>http://maven.apache.org</url>
- <dependencies>
- <dependency>
- <groupId>junit</groupId>
- <artifactId>junit</artifactId>
- <version>4.5</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>napplelabs</groupId>
+ <artifactId>dbssim</artifactId>
+ <name>DBS Simulator</name>
+ <version>1.0-SNAPSHOT</version>
+
+ <repositories>
+ <repository>
+ <id>napplelabs_public</id>
+ <url>http://173.45.240.216:11081/nexus/content/groups/public/</url>
+
+ </repository>
+ </repositories>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.codehaus.groovy.maven.runtime</groupId>
+ <artifactId>gmaven-runtime-default</artifactId>
+ <version>1.0-rc-3</version>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>com.explodingpixels</groupId>
+ <artifactId>forms</artifactId>
+ <version>1.2.1</version>
+ </dependency>
+
+ <dependency>
+ <groupId>com.google.code.guice</groupId>
+ <artifactId>guice</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>jl</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>jsminim</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>minim-spi</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>minim</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>mp3spi</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>tritonus_aos</artifactId>
+ <version>1.0</version>
+ </dependency>
+
+ <dependency>
+ <groupId>minim</groupId>
+ <artifactId>tritonus_share</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>processing</groupId>
+ <artifactId>core</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>com.explodingpixels</groupId>
+ <artifactId>macwidgets</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>miglayout</groupId>
+ <artifactId>miglayout</artifactId>
+ <version>3.6.2</version>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <version>2.0.2</version>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.groovy.maven</groupId>
+ <artifactId>gmaven-plugin</artifactId>
+ <version>1.0-rc-3</version>
+ <executions>
+ <execution>
+ <goals>
+ <goal>generateStubs</goal>
+ <goal>compile</goal>
+ <goal>generateTestStubs</goal>
+ <goal>testCompile</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <distributionManagement>
+ <repository>
+ <id>napplelabs_release</id>
+ <name>Napplelabs Release</name>
+ <url>sftp://173.45.240.216/home/nexus/repo/releases</url>
+ </repository>
+ <snapshotRepository>
+ <id>napplelabs_snapshot</id>
+ <name>Napplelabs Snapshot</name>
+ <url>sftp://173.45.240.216/home/nexus/repo/snapshots</url>
+ </snapshotRepository>
+ </distributionManagement>
+
</project>
View
Binary file not shown.
View
Binary file not shown.
@@ -3,6 +3,7 @@
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
+import java.io.File;
import javax.sound.sampled.AudioFormat;
import javax.sound.sampled.AudioSystem;
@@ -14,7 +15,10 @@
import javax.swing.JPanel;
import javax.swing.SwingUtilities;
+import processing.core.PApplet;
+
import ddf.minim.AudioOutput;
+import ddf.minim.AudioPlayer;
import ddf.minim.Minim;
import ddf.minim.signals.PinkNoise;
import ddf.minim.signals.SineWave;
@@ -31,18 +35,29 @@ public NeuronPlayer() throws LineUnavailableException, InterruptedException {
frame.setSize(500, 300);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
- Minim minim = new Minim(null);
+ Minim minim = new Minim(new PApplet());
out = minim.getLineOut(Minim.MONO);
pink = new PinkNoise(0.2f);
- out.addSignal(pink);
+ //out.addSignal(pink);
+
+
+
+
+ File file = new File("/Users/zkim/Desktop/Rage Against The Machine - rage against the machine - 06 - Know Your Enemy.mp3");
+ System.out.println("Exists: " + file.exists());
+ AudioPlayer player = minim.loadFile(file.getAbsolutePath());
+
+ player.play();
+
+
- TracePanel panel = new TracePanel(out);
- frame.setContentPane(panel);
+ //TracePanel panel = new TracePanel(out);
+ //frame.setContentPane(panel);
frame.setVisible(true);
- new Thread(panel).start();
+ //new Thread(panel).start();
}
public static void main(String[] args) throws LineUnavailableException, InterruptedException {
@@ -38,6 +38,7 @@
private int space_cnt = 0;
private float minRate = 1;
private float maxRate = 10;
+ private boolean enabled = true;
public NeuronSignal(float[] spike, float minRate, float maxRate) {
this.spike = spike;
@@ -55,7 +56,7 @@ public float getNextValue() {
float next = 0;
//If counter is within spike range, output next spike value
- if(counter < spike.length) {
+ if(counter < spike.length && isEnabled()) {
next = spike[counter];
}
@@ -79,4 +80,12 @@ public void generate(float[] left, float[] right) {
}
+ public void setEnabled(boolean enabled) {
+ this.enabled = enabled;
+ }
+
+ public boolean isEnabled() {
+ return enabled;
+ }
+
}
Oops, something went wrong.

0 comments on commit b971486

Please sign in to comment.