New Java Api - how to use it

Post Reply New Topic
RELATED
PRODUCTS

Post

I have generated a new Java Project from within bitwig and opened the Project in Eclipse.
However of course I need to include some resources from bitwig otherwise it cannot resolve the imports. Has anyone done this before?
It is nowhere mentioned how to set up a proper project - am I missing something? Apperently this is all assumed to be obvious.

Post

To build Java projects Bitwig uses Maven. First install Maven and test if you can build the generated project without an IDE. Open a console in the directory of the test project which contains the pom.xml.
There type: mvn install
For developing in Eclipse you need the Maven plugin (m2e).

Post

Is there any advantage to using Java over Javascript?

Post

moss wrote:To build Java projects Bitwig uses Maven. First install Maven and test if you can build the generated project without an IDE. Open a console in the directory of the test project which contains the pom.xml.
There type: mvn install
For developing in Eclipse you need the Maven plugin (m2e).
This is actually very helpful thanks. I'm under Fedora Linux and the DrivenByMoss extension built fine. When creating a new project from within bitwig it wouldn't compile - I checked the pom.xml and found

Code: Select all

	<dependencies>
		<dependency>
			<groupId>com.bitwig</groupId>
			<artifactId>extension-api</artifactId>
			<version>4</version>
		</dependency>
	</dependencies>
changing <version>4</version> to <version>2</version> helped and it built without error. Maybe this helps someone trying this. I will continue this approach and maybe post some instructions if successful.

Post

I'm pretty sure this is due to the fact 4 is 2.2 and that is still in beta.

When 2.2 is released, you need version 4 to access the new methods.
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves

Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine

Post

Netsu wrote:Is there any advantage to using Java over Javascript?
Not too sure, but i think java provides better debugging.
JamWide - a cross-platform Ninjam client for DAWs

Post

I hadn't noticed that BWS now supports Java development! I have no experience with audio DSP, but tons of Java experience. I'll have to dig into this and see what it can do. Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
Incomplete list of my gear: 1/8" audio input jack.

Post

deastman wrote:I hadn't noticed that BWS now supports Java development! I have no experience with audio DSP, but tons of Java experience. I'll have to dig into this and see what it can do. Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
There is no Audio DSP involved, just the API and MIDI / SysEX.
JamWide - a cross-platform Ninjam client for DAWs

Post

.maki wrote:
Netsu wrote:Is there any advantage to using Java over Javascript?
Not too sure, but i think java provides better debugging.
Yes, setting breakpoints when Bitwig is running and debugging with full variable, scope and stepping is one reason I am rehashing my Maschine scripts.

It's unbelievably nice.
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves

Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine

Post

deastman wrote:Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
As said, this is the Controller API for managing the client surface of the DAW. Compiling is creating a jar that is turned into a .bwextension(renamed). This "jar" is them loaded by Bitwig as a controller extension.

For me, Java is 100% more concrete and compile time checking saved 100's of hours, that is not even with the debugger.
Michael Schmalle
http://www.teotigraphix.com
Surfing on sine waves

Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine

Post

Hey everyone! I'm attempting to create an extension for bitwig, but when I compile my project and place the jar (changed to .bwextension) in the extensions folder it is not detected by bitwig. Did anyone else have this problem?

EDIT: I don't know if this makes a difference, but the DrivenByMoss.bwextension has an executable icon on osx while mine has a generic document icon.

Post

TeotiGraphix wrote:
deastman wrote:Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
As said, this is the Controller API for managing the client surface of the DAW. Compiling is creating a jar that is turned into a .bwextension(renamed). This "jar" is them loaded by Bitwig as a controller extension.

For me, Java is 100% more concrete and compile time checking saved 100's of hours, that is not even with the debugger.
Got it. Considering that Push 2 already has great support, there probably isn't a lot I can add. Unless someone desperately needs a custom interface for a Peavey PC-1600. :wink:
Incomplete list of my gear: 1/8" audio input jack.

Post Reply

Return to “Controller Scripting”