Author Topic: Laser Agent Code Development  (Read 61666 times)

0 Members and 2 Guests are viewing this topic.

Agent C

  • Guest
Laser Agent Code Development
« on: October 09, 2009, 02:46:49 pm »
These are the files.  You'll need the Processing IDE or whatever from processing.org.  After you unarchive the files, open lasershow4.pde

You will also need several libraries.  Please see the library post further down in this thread.

The code is currently very messy.  Maybe having people looking at it will give me an incentive to clean it up - kind of like my basement.

Let's keep specific code changes and what-not in this thread.

« Last Edit: October 10, 2009, 02:26:58 pm by Agent C »

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #1 on: October 09, 2009, 03:30:16 pm »
d-loading now

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #2 on: October 09, 2009, 03:38:26 pm »
Note that release 1.0, libraries must be installed in a folder named 'libraries' inside the 'sketchbook' folder.


tried to get jama-1.0.2.jar and put it in the lib folder, the libraries/jama folder
in the sketchbook folder under both the processing folder and the lasershow4 folder.. none worked.. how to i install Jama library corectly?

Agent C

  • Guest
Re: Laser Agent Code Development
« Reply #3 on: October 09, 2009, 04:22:04 pm »
Oh yeah, good point.  ;D I should package or at least list the needed libraries.  I will check when I get home.  The Jsyn sound library is one of the most important for good multichannel sound out in java.

If I recall, I had to install Jsyn as a library in the system Java lib folder.  Again, I'll check when I get home as I've installed it on mac and pc.

PS>  I don't know if it's worse to reply to my own post or edit an old post like James, but I'll follow convention of the site.

There is a DLL associated with JSyn that talks to the hardware for better performance.  This needs to be in the java libs folder if I'm not mistaken.  That's why this library needs to be installed for java, which processing relies on.

I have not finished the sound engine to work in windows.  It would be nice if it automagically worked but it doesn't because windows does not report the c-media sound card as one interface with 6 channels.  Instead it reports something like 3 stereo interfaces and I haven't invested the time to write a platform specific adaptation layer.  J-syn is not a high level enough library to do this on its own and there has been discussion about it in the forum.  I also think that this may change under windows vista or 7 as the underlying sound architecture has changed.  Professional mutli-channel cards on windows can use ASIO drivers I'm told, and there is an ASIO version of Jsyn for windows but it isn't free to download.  I'll burn that bridge when I get to it.
« Last Edit: October 09, 2009, 04:44:13 pm by Agent C »

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #4 on: October 09, 2009, 04:40:12 pm »
kool thnx..

Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Laser Agent Code Development
« Reply #5 on: October 09, 2009, 08:42:35 pm »
Quote
PS>  I don't know if it's worse to reply to my own post or edit an old post like James

That cracks me up!  ;D

You're pretty much screwed either way!  %)

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #6 on: October 09, 2009, 09:28:12 pm »
its better to reply to your own post FYI..

that way someone that read the post but did not reply, will see that a new post has been entered on the front page.


Offline Fanny Pack

  • Hero Member
  • *****
  • Posts: 645
  • Milliwatts: -20
  • Gender: Male
    • View Profile
Re: Laser Agent Code Development
« Reply #7 on: October 09, 2009, 10:17:24 pm »
If a post has been editted I see a new post indicator but I can't tell which item was editted.  9 out of 10 times I won't bother to search for it.  So, if you want to edit a post that is fine with me but don't expect me to read it.  If you add a new reply I will always read it, though.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #8 on: October 09, 2009, 10:57:19 pm »
i rest my case :)

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #9 on: October 10, 2009, 01:29:41 am »
ok so thats all well and good..

lets get back to Jama...

Agent C

  • Guest
Re: Laser Agent Code Development
« Reply #10 on: October 10, 2009, 02:26:14 pm »
There are two kinds of libraries, processing libraries and java libraries.  Processing being java with icing can take advantage of both.

General Java Libraries you will need:

Jama - The Java Matrix Package, useful for rotations and transforms, supposedly highly optimized math routines
JSyn V144 - A low level soft synth package that can talk to multichannel hardware

Processing Libraries you will need

Promidi - Talk to midi controllers
DXF - To load dxf files, this might be included in processing now

How I installed them:
Everything went into the libraries folder of processing, which on a windows system lives in My Documents by default. This includes the general java libraries contrary to what I said in an earlier post.

For example, on my windows box:
C:\Documents and Settings\Administrator\My Documents\Processing\libraries
contains the folders

jama, jsyn, objloader, promidi

and in each one of those folders there is another folder called library, and inside that folder there is the .jar for the library
C:\Documents and Settings\Administrator\My Documents\Processing\libraries\jama\library\jama.jar


For Jsyn, which has a platform specific library (dll, lib, so, etc), you have to copy the platform specific library to the appropriate place described in the docs (eg C:\Windows\system32).

I have edited the first post to direct people to look at this post.

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #11 on: October 10, 2009, 06:32:17 pm »
bleh.. so confusing... got any links to the libraries?



Agent C

  • Guest
Re: Laser Agent Code Development
« Reply #12 on: October 11, 2009, 11:12:23 am »

Offline BlinkenLights

  • he's just this guy, ya know?
  • Administrator
  • Hero Member
  • *****
  • Posts: 730
  • Milliwatts: 4
  • Gender: Male
  • 'The Messenger' by Will Cascio
    • View Profile
Re: Laser Agent Code Development
« Reply #13 on: October 14, 2009, 09:45:55 am »
great.. but your instructions are lacking..

i would be glad to play with it but i cant even get it to compile..


Offline James

  • Administrator
  • Hero Member
  • *****
  • Posts: 2132
  • Milliwatts: 47
  • Gender: Male
    • View Profile
    • LaserBoy !!!
Re: Laser Agent Code Development
« Reply #14 on: October 14, 2009, 01:42:59 pm »
"instructions" ? ???

What?

I thought you were a laserists!

We don't need no stinkin' instructions!  8)

James.  :)
LaserBoy is Sofa King Cool!
But it will never be Alpha King Done!

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.7 © 2008-2024, SimplePortal