New Java Api - how to use it
-
- KVRer
- 10 posts since 14 Jan, 2017
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.
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.
- KVRAF
- 4898 posts since 13 May, 2004
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).
There type: mvn install
For developing in Eclipse you need the Maven plugin (m2e).
-
- KVRist
- 209 posts since 31 Oct, 2016 from Wrocław, Poland
-
- KVRer
- Topic Starter
- 10 posts since 14 Jan, 2017
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 foundmoss 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).
Code: Select all
<dependencies>
<dependency>
<groupId>com.bitwig</groupId>
<artifactId>extension-api</artifactId>
<version>4</version>
</dependency>
</dependencies>- KVRian
- 1372 posts since 28 Dec, 2012 from Meredith NH
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.
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
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
- KVRAF
- 4805 posts since 21 Jan, 2008 from oO
Not too sure, but i think java provides better debugging.Netsu wrote:Is there any advantage to using Java over Javascript?
JamWide - a cross-platform Ninjam client for DAWs
-
- KVRAF
- 7540 posts since 7 Aug, 2003 from San Francisco Bay Area
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.
- KVRAF
- 4805 posts since 21 Jan, 2008 from oO
There is no Audio DSP involved, just the API and MIDI / SysEX.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?
JamWide - a cross-platform Ninjam client for DAWs
- KVRian
- 1372 posts since 28 Dec, 2012 from Meredith NH
Yes, setting breakpoints when Bitwig is running and debugging with full variable, scope and stepping is one reason I am rehashing my Maschine scripts..maki wrote:Not too sure, but i think java provides better debugging.Netsu wrote:Is there any advantage to using Java over Javascript?
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
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
- KVRian
- 1372 posts since 28 Dec, 2012 from Meredith NH
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.deastman wrote:Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
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
http://www.teotigraphix.com
Surfing on sine waves
Maschine4Bitwig - Studio, MK2, MikroMK2, MK1
http://www.teotigraphix.com/bitwig/maschine
-
- KVRer
- 10 posts since 8 Oct, 2017
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.
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.
-
- KVRAF
- 7540 posts since 7 Aug, 2003 from San Francisco Bay Area
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.TeotiGraphix wrote: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.deastman wrote:Thanks for the pointers to help getting the samples to compile. Has anyone had luck compiling it in Eclipse yet?
For me, Java is 100% more concrete and compile time checking saved 100's of hours, that is not even with the debugger.
Incomplete list of my gear: 1/8" audio input jack.
