KXStudio - Carla

What other apps and distros do you use to round out your studio?

Moderators: MattKingUSA, khz

User avatar
spm_gl
Established Member
Posts: 358
Joined: Wed Apr 22, 2009 7:58 am
Location: Spreewald, Germany
Contact:

Re: KXStudio - Carla

Post by spm_gl »

falkTX wrote:Can Carla at least find some LADSPAs?
Nope, none at all. There are 132 objects in /usr/lib/ladspa, and other software finds them.
--- Spreemusik ---
Jan Fuchsmann, Audio Engineer
Check our blog at http://www.spreemusik.com/blog
User avatar
GMaq
Established Member
Posts: 2774
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 520 times
Been thanked: 555 times

Re: KXStudio - Carla

Post by GMaq »

Hi falkTX,

Can Carla be built without Ubuntu specific dependencies? I'd like to have a look but if it's going to be a PITA with pure Debian I'll wait and see...Also generally speaking what are the dependencies?

This is looking amazing so far...Kudos to you and your hard work.
User avatar
GMaq
Established Member
Posts: 2774
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 520 times
Been thanked: 555 times

Re: KXStudio - Carla

Post by GMaq »

falkTX wrote:
GMaq wrote:Hi falkTX,

Can Carla be built without Ubuntu specific dependencies? I'd like to have a look but if it's going to be a PITA with pure Debian I'll wait and see...Also generally speaking what are the dependencies?

This is looking amazing so far...Kudos to you and your hard work.
Just take a look at INSTALL (updated).
All you need is:

Code: Select all

sudo apt-get install qt4-dev-tools python-qt4-dev pyqt4-dev-tools liblo-dev libjack-dev
AFAIK, these are present in Debian.

This is pre-alpha software, so use with care.
I already have debian sources for these, so your work here is minimal.
falkTX :) :)

Very nice, have it up and running and built no problem, obviously it is written for KXStudio so some things don't work with AV Linux (ie no JACK2, Dbus, no Ladish in AV Linux) so the Cadence JACK setup doesn't work nor did I expect it to. It also doesn't see our 2.6.39.1 Kernel as being -rt although it IS running with rtirq-init, you will probably need to look at that whenever KXStudio has a 2.6.39+ Kernel. Carla seems to work very well and looks fantastic.

I think users of other distros might be interested in having Carla as a standalone app, but of course that's up to you, I would guess you have enough work coding for KXStudio let alone tweaking for others! An excellent suite of tools...Well Done!!
User avatar
funkmuscle
Established Member
Posts: 2801
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 129 times
Been thanked: 31 times

Re: KXStudio - Carla

Post by funkmuscle »

falkTX wrote:
spm_gl wrote:
falkTX wrote:Can Carla at least find some LADSPAs?
Nope, none at all. There are 132 objects in /usr/lib/ladspa, and other software finds them.
I just installed Arch, I'll look into this in a few hours.
cool, because I'm pulling my hair out on my Arch box..
User avatar
funkmuscle
Established Member
Posts: 2801
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 129 times
Been thanked: 31 times

Re: KXStudio - Carla

Post by funkmuscle »

falkTX wrote:@spm_gl

Plugin check fixed.
It was a typo in the auto PATH variables setting (when *_PATHs are not set).

I just tested with Arch, LV2 Plugins are scanned, listed and working.
(Remember: Needs python-rdflib, or just 'rdflib' as Arch PKGBUILD)
so do I need to recompile after the rdflib installation?
User avatar
funkmuscle
Established Member
Posts: 2801
Joined: Mon Jun 02, 2008 2:30 pm
Has thanked: 129 times
Been thanked: 31 times

Re: KXStudio - Carla

Post by funkmuscle »

I'm still getting this:

$ carla
File "/usr/local/share/cadence/src/carla.py", line 240
print "plugin %s is blacklisted, skip it" % (ladspa_binaries)
^
SyntaxError: invalid syntax
User avatar
GMaq
Established Member
Posts: 2774
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 520 times
Been thanked: 555 times

Re: KXStudio - Carla

Post by GMaq »

Last edited by GMaq on Sat Jul 16, 2011 5:37 pm, edited 1 time in total.
User avatar
GMaq
Established Member
Posts: 2774
Joined: Fri Sep 25, 2009 1:42 pm
Has thanked: 520 times
Been thanked: 555 times

Re: KXStudio - Carla

Post by GMaq »

falkTX wrote:
GMaq wrote:Editor Screenshot - Default AV Linux Theme
http://bandshed.net/images/screenshots/ ... efault.png
Looks cool! 8)
I was afraid some stuff would look bad on bigger fonts or white themes, seems like it's not the case.

What do you think of the progress-bar/combo-box parameters?
(Note how Calf Reverb LADSPA uses a combo-box for room size)
I think the combo-boxes/progress bars for LADSPAs look great, certainly better than most hosts (ie Ardour), since most users will likely gravitate toward UI Plugins I don't think you need to pretty-up the combo-boxes any more than they are.

A few comments in response to your earlier post:

AV Linux is based on Squeeze so there are no Debian pkg-multimedia ladish and related packages available through the official Squeeze repos and I haven't built any custom ones yet. I certainly have no problem with JACK2 or ladish but to be honest there has not been even one request for either on the AV Linux forums, I provide JACK1 Session support via Qjackctl and I personally do much prefer JACK1 and find it is a bit more reliable at low latencies especially with FireWire interfaces. I think most people know by now that if they want a good ladish environment with JACK2 then KXStudio is the ticket and I am 100% cool with that. :wink:

An option to build Carla, JACK Render, and the Virtual XY Controller as standalones would be awesome IMHO since they are most JACK2/ladish Independent but that is just in my selfish opinion, I don't know how difficult that is on your end. I would probably prefer to call it from make (ie 'make carla') that way the built files are all in order before the install phase which would make custom packaging them individually a bit easier. On the other hand if the sources were already 'Debianized' then as you said before most of the work is already done to create binaries with 'dpkg-buildpackage'.

Anyway this is all just thinking out loud, certainly there is no need to break them up individually unless you think that would also be beneficial for you in some way. I'm just stating an opinion. Regardless you should be very proud of your accomplishments so far both with KXStudio and Cadence.
User avatar
spm_gl
Established Member
Posts: 358
Joined: Wed Apr 22, 2009 7:58 am
Location: Spreewald, Germany
Contact:

Re: KXStudio - Carla

Post by spm_gl »

Wow, looks I slept too long, so many new posts to read.
Anyway, Carla now finds all my plugins. Spits out a lot of LV2 related errors on the way, but I assume that is still very much WIP.

I love the simple midi controller configuration, but could you perhaps make the font colour red, when the controller is already assigned somewhere else? Or put a little bullet next to the name in the list?

Regarding the python choice on Arch (I have python, python2 and python3 installed), you could have the PKGBUILD automatically patch the bash script.
falkTX wrote:Will users be mad if I switch to Arch?
Here's one user who'd rejoice.
falkTX wrote:In fact, I wish to do a MIDI sequencer myself someday, someday...
Don't get me too excited. I'm longing for the ultimate poly-rhythmic midi step sequencer.
--- Spreemusik ---
Jan Fuchsmann, Audio Engineer
Check our blog at http://www.spreemusik.com/blog
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: KXStudio - Carla

Post by thorgal »

falkTX wrote: The kernel check is simply a parse of 'uname -a'. Sometimes it works, sometimes it doesn't. Kernel versions are displayed differently between distros, making my job harder...
if you simply want to check the kernel version, use

Code: Select all

uname -r
No need to parse all the noise that comes with -a.

Another thing: if you compile some C++ or C code, you can always retrieve the linux version by including

Code: Select all

#include <linux/version.h>
The linux version is coded in a constant define called LINUX_VERSION_CODE
You can compare this value with any kernel version by using the macro KERNEL_VERSION(a,b,c), for example:

Code: Select all

if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33) )
{ 
     blablabla;
}
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: KXStudio - Carla

Post by thorgal »

falkTX wrote: Your assumptions are wrong here, sorry.
Cadence is written in python, so "uname -a" is actually "os.uname()", which splits into 4 strings for me. The 3rd string is the kernel number, which I use and parse.
ah, you are doing this from python ... how about using the "platform" class ?

http://docs.python.org/library/platform.html

and then use platform.uname() ?

from the python website:
platform.uname()

Fairly portable uname interface. Returns a tuple of strings (system, node, release, version, machine, processor) identifying the underlying platform.

Note that unlike the os.uname() function this also returns possible processor information as additional tuple entry.
User avatar
spm_gl
Established Member
Posts: 358
Joined: Wed Apr 22, 2009 7:58 am
Location: Spreewald, Germany
Contact:

Re: KXStudio - Carla

Post by spm_gl »

falkTX wrote:That would require someone to do a PKGBUILD first...
I'm sure there are a lot of people here more capable than me of doing this, but if for some reason no-one shouts "Here!", I guess I'll dig into it.
falkTX wrote:Is ladish on Arch already..?
Yes, it's in the AUR: http://aur.archlinux.org/packages.php?ID=34456
falkTX wrote:The errors printed to terminal are useful reminders to me of features not yet done.
If you post here those errors, I'll appreciate.
This is without any debug or verbose flags:

Code: Select all

LV2_RDF - URI Type 'http://foltman.com/ns/MIDIPlugin' not handled (uri: http://calf.sourceforge.net/small_plugins/ccfilter_m)
LV2_RDF - Got an unknown port type ERROR - EventPort without EventType!
LV2_RDF - Got an unknown port type ERROR - EventPort without EventType!
LV2_RDF - Got an unknown port type ERROR - EventPort without EventType!
LV2_RDF - URI Type 'http://foltman.com/ns/IntegerPlugin' not handled (uri: http://calf.sourceforge.net/small_plugins/bit_xor_c)
LV2_RDF - URI Type 'http://foltman.com/ns/IntegerPlugin' not handled (uri: http://calf.sourceforge.net/small_plugins/bit_or_c)
LV2_RDF - URI Type 'http://foltman.com/ns/MIDIPlugin' not handled (uri: http://calf.sourceforge.net/small_plugins/setchannel_m)
--- Spreemusik ---
Jan Fuchsmann, Audio Engineer
Check our blog at http://www.spreemusik.com/blog
User avatar
schivmeister
Established Member
Posts: 95
Joined: Sat Apr 12, 2008 9:28 am
Location: Singapore
Contact:

Re: KXStudio - Carla

Post by schivmeister »

falkTX wrote:it's the same thing:

Code: Select all

>>> platform.uname()[2]
'2.6.32-32-generic-pae'
>>> os.uname()[2]
'2.6.32-32-generic-pae
I'll still have to do string parsing anyway...
Since you're using Linux-specific commands anyway in your scripts, you can simply get this one done by using Bash's regexp conditional (since v3 [1]):

Code: Select all

min_kernver = '2.6.33'
if os.system('[[ `uname -r` =~ ' + min_kernver + ' ]]'):
    print "You do not have the minimum kernel required"
To fully do it with Python you just compare regexps, that's it :)
falkTX wrote:Can someone tell me a way to confirm 100% when a system is Arch?

Code: Select all

test -f /etc/arch-release
It's an empty file (used to contain ISO snapshot names), but it's currently the most KISS and only concrete way to determine if the system is Arch Linux. I was told Debian has debian-release.

Otherwise, just leave it up to the packagers to fix the shebangs for python v2.

[1] http://tldp.org/LDP/abs/html/bashver3.html
Professor: Music is not a science, my son. It's an art.
Student: But art is science.
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: KXStudio - Carla

Post by thorgal »

an alternative could be to parse the /boot/config-`uname -r` file if it exists (and it is quite standard in all linux distros). The thing about the kernel config is that it should have the same set of option defines (on or off depending) across linux installs.
thorgal
Established Member
Posts: 739
Joined: Mon Apr 07, 2008 6:04 pm

Re: KXStudio - Carla

Post by thorgal »

there's also /proc/config.gz which is a compressed config file of the running kernel.
But as far as I know, the kernel needs to be compiled with the option to have a gz config in /proc ON.
Post Reply