Permalink
Browse files

updated to latest processing build script, added more generic classpa…

…th, updated Doc
  • Loading branch information...
1 parent a11f302 commit 370fc73cb886501b1facc16e75e44804647d6dc5 Tobias Bielohlawek committed Aug 25, 2011
Showing with 642 additions and 455 deletions.
  1. +6 −6 .classpath
  2. +3 −0 .gitignore
  3. +119 −0 README.md
  4. +0 −101 README.rdoc
  5. 0 data/.keepme
  6. +1 −0 lib/README.md
  7. +121 −0 resources/build.properties
  8. +333 −298 resources/build.xml
  9. +5 −0 resources/install_instructions.txt
  10. +12 −8 update-webpage.sh
  11. +42 −42 web/index.html
View
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
- <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.6"/>
- <classpathentry kind="lib" path="/Users/ted/Sites/java/libs/core.jar"/>
- <classpathentry kind="lib" path="/Users/ted/Sites/java/libs/themidibus.jar"/>
- <classpathentry kind="lib" path="/Users/ted/Sites/java/libs/monomic.jar"/>
- <classpathentry kind="output" path="bin"/>
-</classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+ <classpathentry kind="lib" path="/Applications/Processing.app/Contents/Resources/Java/core.jar"/>
+ <classpathentry kind="lib" path="./lib/library/themidibus.jar"/>
+ <classpathentry kind="lib" path="./lib/library/monomic.jar"/>
+ <classpathentry kind="output" path="resources/code"/>
+</classpath>
View
@@ -2,3 +2,6 @@ distribution
bin
.DS_Store
reference
+lib/monomic
+lib/themidibus
+*.class
View
119 README.md
@@ -0,0 +1,119 @@
+# Launchpad - Processing Library to control Novation Launchpad
+
+This library provides an interface to access [novation's launchpad](http://www.novationmusic.com/products/launchpad) programmatically.
+It's based on Thomas Jachmanns [ruby launchpad gem](http://github.com/thomasjachmann/launchpad). LEDs can be lighted and button presses can be listened to. In addition, it includes a wrapper for the [Monomic Library](http://jkriss.github.com/monomic) as well.
+
+
+## Requirements
+
+ * Severin Smiths [themidibus library](http://smallbutdigital.com/themidibus.php)
+ * On Mac OS X < Java Update 6 you need Humatics [mmj library](http://www.humatic.de/htools/mmj.htm) as well. Yes, go and spend those 3.5 - it's worth it!
+ * obviously a Novation Launchpad ;-)
+
+## Installation
+
+Download, unzip and put the extracted launchpad folder into the libraries folder of your processing sketches. Reference and examples are included in the launchpad folder.
+If needed (only Mac OS X with java Update < 6), install *mmj* library as described in their documentation.
+
+
+## Usage
+
+Basically, create an instance of the Launchpad class and your're ready to go. This is a simple example that switches on all LEDs (for testing), resets the launchpad again and then lights the grid button at position 4/4 (from top left).
+
+ import themidibus.*;
+ import com.rngtng.launchpad.*;
+
+ Launchpad device;
+
+ void setup() {
+ device = new Launchpad(this);
+ noLoop();
+ }
+
+ void draw() {
+ device.testLeds();
+ delay(1000);
+ device.reset();
+ delay(1000);
+ device.changeGrid( 4, 4, LColor.RED_HIGH + LColor.GREEN_LOW);
+ }
+
+For Interaction, make sure to include Pressed/Released Listener for grid, the button on the top and scene buttons on the right. This is an interaction example lighting all grid buttons in red when pressed and keeping them lit.
+
+ import themidibus.*;
+ import com.rngtng.launchpad.*;
+
+ Launchpad device;
+
+ void setup() {
+ device = new Launchpad(this);
+ noLoop();
+ }
+
+ void draw() {
+ }
+
+ void launchpadGridPressed(int x, int y) {
+ device.changeGrid( x, y, LColor.RED_HIGH);
+ }
+
+ void launchpadButtonPressed(int buttonCode) {
+ if(buttonCode == LButton.MIXER) exit();
+ }
+
+
+For more details, see the examples. Most examples are ported from the ruby and monomic library
+
+## Near future plans
+
+ * add proper Exception/Warning handling
+ * use entities instead of Consts??
+ * add test (how to do this with processing??)
+
+
+## Contributors
+
+ * [AspeteRakete](https://github.com/aspeteRakete): [Pullrequest #1](https://github.com/rngtng/launchpad/pull/1)
+
+Big Thank you!
+
+## Changelog
+
+### v0.3
+
+ * Merged [Pullrequest #1](https://github.com/rngtng/launchpad/pull/1), to bee up to date with external libs
+ * Included external libs
+ * Updated build file & Website
+
+### v0.2.2
+
+ * bugfixes
+ * added connected() method
+
+
+### v0.2.0
+
+ * interaction fully working, accepts PApplet or custom Listeners
+ * first stable version, API is nearly fixed now
+ * nice color handling using the LColor class
+ * monomic wrapper class
+ * lots of new examples
+ * proper buffer & flashing support
+
+### v0.1.0
+
+ * first version, supporting output only
+
+
+
+
+## Copyright
+The MIT License
+
+Copyright © 2011 RngTng, Tobias Bielohlawek
+
+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.
View
@@ -1,101 +0,0 @@
-= launchpad
-
-This library provides an interface to access {novation's launchpad}[http://www.novationmusic.com/products/launchpad] programmatically. It's based on Thomas Jachmanns {ruby launchpad gem}[http://github.com/thomasjachmann/launchpad]. LEDs can be lighted and button presses can be listened to. In addition, it includes a wrapper for the {Monomic Library}[http://jkriss.github.com/monomic/] as well.
-
-
-== Requirements
-
-* Severin Smiths {themidibus library}[http://smallbutdigital.com/themidibus.php]
-* On Mac OS X < Java Update 6 you need Humatics {mmj library}[http://www.humatic.de/htools/mmj.htm] as well. Yes, go and spend those 3.5 - it's worth it!
-* obviously a Novation Launchpad ;-)
-
-== Installation
-
-Download, unzip and put the extracted launchpad folder into the libraries folder of your processing sketches. Reference and examples are included in the launchpad folder. Do the same with *themidibus* and *monomic* library. If needed (only Mac OS X with java Update < 6), install *mmj* library as described in their documentation.
-
-
-== Usage
-
-Basically, create an instance of the Launchpad class and your're ready to go. This is a simple example that switches on all LEDs (for testing), resets the launchpad again and then lights the grid button at position 4/4 (from top left).
-
- import themidibus.*;
- import com.rngtng.launchpad.*;
-
- Launchpad device;
-
- void setup() {
- device = new Launchpad(this);
- noLoop();
- }
-
- void draw() {
- device.testLeds();
- delay(1000);
- device.reset();
- delay(1000);
- device.changeGrid( 4, 4, LColor.RED_HIGH + LColor.GREEN_LOW);
- }
-
-For Interaction, make sure to include Pressed/Released Listener for grid, the button on the top and scene buttons on the right. This is an interaction example lighting all grid buttons in red when pressed and keeping them lit.
-
- import themidibus.*;
- import com.rngtng.launchpad.*;
-
- Launchpad device;
-
- void setup() {
- device = new Launchpad(this);
- noLoop();
- }
-
- void draw() {
- }
-
- void launchpadGridPressed(int x, int y) {
- device.changeGrid( x, y, LColor.RED_HIGH);
- }
-
- void launchpadButtonPressed(int buttonCode) {
- if(buttonCode == LButton.MIXER) exit();
- }
-
-
-For more details, see the examples. Most examples are ported from the ruby and monomic library
-
-== Near future plans
- * add proper Exception/Warning handling
- * use entities instead of Consts??
- * add test (how to do this with processing??)
-
-
-== Changelog
-
-=== v0.2.2
-* bugfixes
-* added connected() method
-
-
-=== v0.2.0
-
-* interaction fully working, accepts PApplet or custom Listeners
-* first stable version, API is nearly fixed now
-* nice color handling using the LColor class
-* monomic wrapper class
-* lots of new examples
-* proper buffer & flashing support
-
-=== v0.1.0
-
-* first version, supporting output only
-
-
-== Copyright
-The MIT License
-
-Copyright © 2009 RngTng, Tobias Bielohlawek
-
-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.
View
No changes.
View
@@ -0,0 +1 @@
+Libs taken from [themidibus](http://smallbutdigital.com/themidibus.php) and [monomic](http://jkriss.github.com/monomic/) libraries here
View
@@ -0,0 +1,121 @@
+# Create libraries for the open source programming language
+# and environment processing (http://www.processing.org)
+#
+# Customize the build properties to make the ant-build-process
+# work for your environment. How? Please read the comments below.
+#
+# The default properties are set for OSX, for Windows-settings
+# please refer to comments made under (1) and (2).
+
+
+
+# (1)
+# Where is your processing sketchbook located?
+# If you are not sure, check the sketchbook location in your
+# processing application preferences.
+# ${user.home} points the compiler to your home directory
+# For windows the default path to your sketchbook would be
+# ${user.home}/My Documents/Processing (make adjustments below).
+
+sketchbook.location=${user.home}/Sites/processing
+
+
+
+# (2)
+# Where are the jar files located that are required for compiling
+# your library such as e.g. core.jar?
+# by default the local classpath location points to folder libs
+# inside eclipse's workspace (by default found in your home directory).
+# For Windows the default path would be ${user.home}/workspace/libs
+# (make adjustments below)
+
+#classpath.local.location=${user.home}/Documents/workspace/libs
+
+
+
+# For OSX users.
+# The following path will direct you into processing's
+# application source code folder in case you put processing inside your
+# Applications folder. Uncommenting the line below will overwrite the
+# classpath.local.location from above.
+
+classpath.local.location=/Applications/Processing.app/Contents/Resources/Java/
+
+
+# Add all jar files that are required for compiling your project
+# to the local and project classpath, use a comma as delimiter.
+# These jar files must be inside your classpath.local.location folder.
+
+classpath.local.include=core.jar
+
+
+# Add processing's libraries folder to the classpath.
+# If you don't need to include the libraries folder to your classpath,
+# comment out the following line.
+
+classpath.libraries.location=${sketchbook.location}/libraries
+
+
+
+# (3) set the java version that should be used to compile your library.
+
+java.target.version=1.5
+
+
+# set the description of the ant build.xml file
+
+ant.description=launchpad
+
+
+
+# (4)
+# project details.
+# Give your library a name and title
+
+project.name=launchpad
+project.title=Launchpad - Processing Library to control Novation Launchpad
+
+# use normal or fast as value for project.compile
+# (fast will only compile the project into your sketchbook,
+# using normal as property will compile the distribution including the
+# javadoc-reference and all web-files - the compile process here
+# takes longer)
+
+project.compile=normal
+
+# all files compiled with project.compile=normal are stored
+# in folder distribution
+
+
+
+# (5)
+# the following items are properties that will be used to
+# make changes to the html document template. values of properties
+# will be implemented ito the document automatically.
+
+# set the current version of your project.
+
+project.version=0.3
+project.copyright=(c) 2011
+project.dependencies=themidibus, monomic (examples only)
+project.keywords=midi,launchpad,controller,novation,wrapper
+
+author.name=rngtng - Tobias Bielohlawek
+author.url=http://www.rngtng.com
+
+tested.platform=osx,windows
+tested.processingversion=1.5.1
+
+# recommendations for storing your source code online are: code.google or github.
+
+source.host=github
+source.url=http://rngtng.github.com/launchpad
+source.repository=http://github.com/rngtng/launchpad
+
+
+# include javadoc references into your project's javadoc
+
+javadoc.java.href=
+#http://java.sun.com/javase/6/docs/api/
+javadoc.processing.href=
+#http://dev.processing.org/reference/everything/javadoc/
Oops, something went wrong.

0 comments on commit 370fc73

Please sign in to comment.