Permalink
Browse files

added all other files from SVN rev 75. original repo: http://svn2.ass…

  • Loading branch information...
1 parent 012ea68 commit 514f8b7c608db8e948bd6feae7b335deae065db0 @odbol committed Aug 27, 2011
Showing with 7,407 additions and 0 deletions.
  1. +10 −0 android/AndrOscDemo/.classpath
  2. +33 −0 android/AndrOscDemo/.project
  3. +21 −0 android/AndrOscDemo/AndroidManifest.xml
  4. +13 −0 android/AndrOscDemo/default.properties
  5. BIN android/AndrOscDemo/lib/mina-core-2.0.0-RC1.jar
  6. BIN android/AndrOscDemo/lib/slf4j-android-1.5.8.jar
  7. BIN android/AndrOscDemo/res/drawable/icon.png
  8. +17 −0 android/AndrOscDemo/res/layout/main.xml
  9. +7 −0 android/AndrOscDemo/res/values/strings.xml
  10. +90 −0 android/AndrOscDemo/src/com/relivethefuture/android/osc/AndrOscDemo.java
  11. +16 −0 as3/.actionScriptProperties
  12. +16 −0 as3/.flexLibProperties
  13. +18 −0 as3/.project
  14. +3 −0 as3/.settings/com.adobe.flexbuilder.project.prefs
  15. BIN as3/libs/spicelib-flash-2.3.M3.swc
  16. +31 −0 as3/src/com/relivethefuture/osc/core/IMessageListener.as
  17. +31 −0 as3/src/com/relivethefuture/osc/core/IOscListener.as
  18. +158 −0 as3/src/com/relivethefuture/osc/core/OscBundle.as
  19. +209 −0 as3/src/com/relivethefuture/osc/core/OscClient.as
  20. +276 −0 as3/src/com/relivethefuture/osc/core/OscDecoder.as
  21. +145 −0 as3/src/com/relivethefuture/osc/core/OscDispatcher.as
  22. +184 −0 as3/src/com/relivethefuture/osc/core/OscEncoder.as
  23. +221 −0 as3/src/com/relivethefuture/osc/core/OscMessage.as
  24. +48 −0 as3/src/com/relivethefuture/osc/core/OscPacket.as
  25. +17 −0 as3_tests/.actionScriptProperties
  26. +2 −0 as3_tests/.flexProperties
  27. +18 −0 as3_tests/.project
  28. +3 −0 as3_tests/.settings/org.eclipse.core.resources.prefs
  29. BIN as3_tests/libs/fluint_v1.swc
  30. +27 −0 as3_tests/src/OscLibTestRunner.mxml
  31. +51 −0 as3_tests/src/com/relivethefuture/osc/EncoderTests.as
  32. +35 −0 as3_tests/src/com/relivethefuture/osc/OscTestSuite.as
  33. +10 −0 java/.classpath
  34. +17 −0 java/.project
  35. +12 −0 java/.settings/org.eclipse.jdt.core.prefs
  36. +11 −0 java/bin/log4j.properties
  37. BIN java/lib/log4j-1.2.15.jar
  38. BIN java/lib/mina-core-2.0.0-M3.jar
  39. BIN java/lib/slf4j-api-1.5.0.jar
  40. BIN java/lib/slf4j-log4j12-1.5.0.jar
  41. +32 −0 java/src/com/relivethefuture/osc/data/BasicOscFactory.java
  42. +50 −0 java/src/com/relivethefuture/osc/data/BasicOscListener.java
  43. +28 −0 java/src/com/relivethefuture/osc/data/OscListener.java
  44. +186 −0 java/src/com/relivethefuture/osc/data/OscMessage.java
  45. +36 −0 java/src/com/relivethefuture/osc/data/OscPacket.java
  46. +28 −0 java/src/com/relivethefuture/osc/data/OscPacketFactory.java
  47. +48 −0 java/src/com/relivethefuture/osc/transport/OscCodecFactory.java
  48. +330 −0 java/src/com/relivethefuture/osc/transport/OscDataDecoder.java
  49. +231 −0 java/src/com/relivethefuture/osc/transport/OscDataEncoder.java
  50. +118 −0 java/src/com/relivethefuture/osc/transport/OscServer.java
  51. +90 −0 java/src/com/relivethefuture/osc/transport/OscServerIoHandler.java
  52. +28 −0 java/src/com/relivethefuture/osc/transport/PacketNotValidException.java
  53. +28 −0 java/src/com/relivethefuture/osc/transport/TypeNotRecognisedException.java
  54. +11 −0 java/src/log4j.properties
  55. +8 −0 max/.classpath
  56. +17 −0 max/.project
  57. +12 −0 max/.settings/org.eclipse.jdt.core.prefs
  58. +49 −0 max/src/com/relivethefuture/osc/MaxMessageFactory.java
  59. +76 −0 max/src/com/relivethefuture/osc/MaxOscListener.java
  60. +81 −0 max/src/com/relivethefuture/osc/MaxOscMessage.java
  61. +66 −0 max/src/com/relivethefuture/osc/OSCHTTP.java
  62. +64 −0 max/src/com/relivethefuture/osc/OSCUDP.java
  63. +9 −0 max/src/log4j.properties
  64. +38 −0 oscbox/.actionScriptProperties
  65. +29 −0 oscbox/.project
  66. +3 −0 oscbox/.settings/org.eclipse.core.resources.prefs
  67. +137 −0 oscbox/src/Application.as
  68. +102 −0 oscbox/src/OSCProtocolTest.as
  69. +149 −0 oscbox/src/SuperColliderTest.as
  70. +98 −0 oscbox/src/com/relivethefuture/oscbox/CycleMessage.as
  71. +121 −0 oscbox/src/com/relivethefuture/oscbox/NodeMessage.as
  72. +93 −0 oscbox/src/com/relivethefuture/oscbox/OscCycleControl.as
  73. +92 −0 oscbox/src/com/relivethefuture/oscbox/OscNodeControl.as
  74. +53 −0 oscbox/src/com/relivethefuture/oscbox/OscNodeManager.as
  75. +69 −0 oscbox/src/com/relivethefuture/oscbox/PathBoxNodeManager.as
  76. +50 −0 oscbox/src/com/relivethefuture/oscbox/SocketFlowController.as
  77. +77 −0 oscbox/src/com/relivethefuture/oscbox/Toolbar.as
  78. +383 −0 oscbox/src/com/relivethefuture/oscbox/WorkArea.as
  79. +43 −0 oscbox/src/com/relivethefuture/oscbox/events/NodeControlEvent.as
  80. +57 −0 oscbox/src/com/relivethefuture/sc/ui/ServerStatusView.as
  81. +17 −0 supercollider/.actionScriptProperties
  82. +20 −0 supercollider/.flexLibProperties
  83. +18 −0 supercollider/.project
  84. +3 −0 supercollider/.settings/org.eclipse.core.resources.prefs
  85. BIN supercollider/libs/spicelib-1.1.0.swc
  86. +173 −0 supercollider/src/com/relivethefuture/supercollider/Server.as
  87. +40 −0 supercollider/src/com/relivethefuture/supercollider/control/AddActions.as
  88. +34 −0 supercollider/src/com/relivethefuture/supercollider/data/Group.as
  89. +100 −0 supercollider/src/com/relivethefuture/supercollider/data/GroupTree.as
  90. +53 −0 supercollider/src/com/relivethefuture/supercollider/data/Node.as
  91. +95 −0 supercollider/src/com/relivethefuture/supercollider/data/ServerStatus.as
  92. +32 −0 supercollider/src/com/relivethefuture/supercollider/data/Synth.as
  93. +47 −0 supercollider/src/com/relivethefuture/supercollider/data/UGen.as
  94. +71 −0 supercollider/src/com/relivethefuture/supercollider/data/UGenLibrary.as
  95. +39 −0 supercollider/src/com/relivethefuture/supercollider/events/SCEvent.as
  96. +57 −0 supercollider/src/com/relivethefuture/supercollider/examples/SuperColliderServerCheck.as
  97. +1,475 −0 supercollider/src/ugens.xml
  98. +18 −0 supercollider_tests/.actionScriptProperties
  99. +2 −0 supercollider_tests/.flexProperties
  100. +25 −0 supercollider_tests/.project
  101. +3 −0 supercollider_tests/.settings/org.eclipse.core.resources.prefs
  102. BIN supercollider_tests/libs/fluint_v1.swc
  103. BIN supercollider_tests/libs/spicelib-1.1.0.swc
  104. +28 −0 supercollider_tests/src/SuperColliderTestRunner.mxml
  105. +36 −0 supercollider_tests/src/com/relivethefuture/sc/SuperColliderTestSuite.as
  106. +51 −0 supercollider_tests/src/com/relivethefuture/sc/UGenTests.as
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
+ <classpathentry combineaccessrules="false" kind="src" path="/OSCLib"/>
+ <classpathentry kind="lib" path="lib/mina-core-2.0.0-RC1.jar"/>
+ <classpathentry kind="lib" path="lib/slf4j-android-1.5.8.jar"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="src" path="gen"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>AndrOscDemo</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ResourceManagerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.PreCompilerBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>com.android.ide.eclipse.adt.ApkBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.android.ide.eclipse.adt.AndroidNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.relivethefuture.android.osc"
+ android:versionCode="1"
+ android:versionName="1.0">
+ <application android:icon="@drawable/icon" android:label="@string/app_name">
+ <activity android:name=".AndrOscDemo"
+ android:label="@string/app_name">
+ <intent-filter>
+ <action android:name="android.intent.action.MAIN" />
+ <category android:name="android.intent.category.LAUNCHER" />
+ </intent-filter>
+ </activity>
+
+ </application>
+ <uses-sdk android:minSdkVersion="3" />
+
+<uses-permission android:name="android.permission.INTERNET"></uses-permission>
+
+
+</manifest>
@@ -0,0 +1,13 @@
+# This file is automatically generated by Android Tools.
+# Do not modify this file -- YOUR CHANGES WILL BE ERASED!
+#
+# This file must be checked in Version Control Systems.
+#
+# To customize properties used by the Ant build system use,
+# "build.properties", and override values to adapt the script to your
+# project structure.
+
+# Indicates whether an apk should be generated for each density.
+split.density=false
+# Project target.
+target=android-7
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="utf-8"?>
+<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+ android:orientation="vertical"
+ android:layout_width="fill_parent"
+ android:layout_height="fill_parent"
+ >
+<Button android:id="@+id/play"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:text="@string/play" />
+ <Button android:id="@+id/stop"
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_alignParentBottom="true"
+ android:text="@string/stop" />
+</LinearLayout>
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="utf-8"?>
+<resources>
+ <string name="hello">Hello World, AndrOscDemo!</string>
+ <string name="app_name">Android OSC Demo</string>
+ <string name="play">Play</string>
+ <string name="stop">Stop</string>
+</resources>
@@ -0,0 +1,90 @@
+package com.relivethefuture.android.osc;
+
+import java.io.IOException;
+import java.net.InetSocketAddress;
+
+import android.app.Activity;
+import android.content.Context;
+import android.os.Bundle;
+import android.util.Log;
+import android.view.View;
+import android.view.View.OnClickListener;
+import android.widget.Button;
+import android.widget.Toast;
+
+import com.relivethefuture.osc.data.BasicOscListener;
+import com.relivethefuture.osc.data.OscMessage;
+import com.relivethefuture.osc.transport.OscClient;
+import com.relivethefuture.osc.transport.OscServer;
+
+public class AndrOscDemo extends Activity implements OnClickListener {
+ private static final String TAG = "AndrOscDemo";
+ private OscClient sender;
+ private Button playButton;
+ private Button stopButton;
+
+ private OscServer server;
+
+ public class LooperListener extends BasicOscListener {
+ public Context c;
+
+ @Override
+ public void handleMessage(OscMessage msg) {
+ System.out.println("Message " + msg.getAddress());
+ System.out.println("Type Tags " + msg.getTypeTags());
+
+ Toast.makeText(AndrOscDemo.this, "OSCmessage: " + msg.toString(), Toast.LENGTH_LONG);
+
+ }
+ }
+
+
+
+ /** Called when the activity is first created. */
+ @Override
+ public void onCreate(Bundle savedInstanceState) {
+ super.onCreate(savedInstanceState);
+ setContentView(R.layout.main);
+
+ sender = new OscClient(true);
+ String destination = "10.0.2.2";
+ int destPort = 10000;
+ InetSocketAddress addr = new InetSocketAddress(destination, destPort);
+ sender.connect(addr);
+
+ playButton = (Button) this.findViewById(R.id.play);
+ playButton.setOnClickListener(this);
+ stopButton = (Button) this.findViewById(R.id.stop);
+ stopButton.setOnClickListener(this);
+
+ try {
+ server = new OscServer(7999);
+ server.start();
+ }
+ catch (IOException e) {
+ Toast.makeText(this, "Failed to start OSC server: " + e.getMessage(), Toast.LENGTH_LONG);
+ }
+ server.addOscListener(new LooperListener());
+
+ }
+
+ @Override
+ public void onClick(View v) {
+ OscMessage msg = null;
+
+ if (v == playButton) {
+ msg = new OscMessage("/play");
+
+ } else if (v == stopButton) {
+ msg = new OscMessage("/stop");
+ }
+
+ if (msg != null) {
+ try {
+ sender.sendPacket(msg);
+ } catch (Exception e) {
+ e.printStackTrace();
+ }
+ }
+ }
+}
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<actionScriptProperties mainApplicationPath="OSCLib.as" projectUUID="045e9ae5-e53b-42cb-8de3-931e8c4b2463" version="6">
+ <compiler additionalCompilerArguments="" autoRSLOrdering="true" copyDependentFiles="false" fteInMXComponents="false" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="false" htmlPlayerVersionCheck="true" includeNetmonSwc="true" outputFolderPath="bin" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
+ <compilerSourcePath/>
+ <libraryPath defaultLinkType="1">
+ <libraryPathEntry kind="4" path=""/>
+ <libraryPathEntry kind="1" linkType="1" path="libs"/>
+ </libraryPath>
+ <sourceAttachmentPath/>
+ </compiler>
+ <applications>
+ <application path="OSCLib.as"/>
+ </applications>
+ <modules/>
+ <buildCSSFiles/>
+</actionScriptProperties>
View
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<flexLibProperties includeAllClasses="false" version="1">
+ <includeClasses>
+ <classEntry path="com.relivethefuture.osc.core.IMessageListener"/>
+ <classEntry path="com.relivethefuture.osc.core.IOscListener"/>
+ <classEntry path="com.relivethefuture.osc.core.OscBundle"/>
+ <classEntry path="com.relivethefuture.osc.core.OscClient"/>
+ <classEntry path="com.relivethefuture.osc.core.OscDecoder"/>
+ <classEntry path="com.relivethefuture.osc.core.OscDispatcher"/>
+ <classEntry path="com.relivethefuture.osc.core.OscEncoder"/>
+ <classEntry path="com.relivethefuture.osc.core.OscMessage"/>
+ <classEntry path="com.relivethefuture.osc.core.OscPacket"/>
+ </includeClasses>
+ <includeResources/>
+ <namespaceManifests/>
+</flexLibProperties>
View
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>AS3-OSCLib</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.adobe.flexbuilder.project.flexbuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.adobe.flexbuilder.project.flexlibnature</nature>
+ <nature>com.adobe.flexbuilder.project.actionscriptnature</nature>
+ </natures>
+</projectDescription>
@@ -0,0 +1,3 @@
+#Tue Jul 27 17:54:24 CEST 2010
+eclipse.preferences.version=1
+upgradeSDK/fb4=
Binary file not shown.
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2008 Martin Wood-Mitrovski
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+package com.relivethefuture.osc.core
+{
+ /**
+ * Listener interface for OSC Message handlers.
+ */
+ public interface IMessageListener
+ {
+ function handleMessage(message:OscMessage):void;
+ }
+}
@@ -0,0 +1,31 @@
+/**
+ * Copyright (c) 2008 Martin Wood-Mitrovski
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ */
+package com.relivethefuture.osc.core
+{
+ /**
+ * Listener interface for clients how can handle both OSC messages and OSC bundles.
+ */
+ public interface IOscListener extends IMessageListener
+ {
+ function handleBundle(bundle:OscBundle):void;
+ }
+}
Oops, something went wrong.

0 comments on commit 514f8b7

Please sign in to comment.