Recently I asked about scripting FruityLoops or Reason from Python, which didn't turn up much.
Today I found LMMS, a free-software FruityLoops clone. So, similarly. Has anyone tried scripting this from Python (or similar)? Is there an API or wrapper for accessing its resources from outside?
If not, what would be the right approach to try writing one?
It seems you can write plugins for LMMS using C++. By embedding Python in the C++ plugin you can effectively script the program in Python.
Look at http://www.csounds.com/ for an approach to scripting music synth programs in Python.
You can connect pretty much everything in LMMS to a MIDI input. Try that?
Related
I have a python script/app which is running on RPi in .py file. Now I need to share this app, but I want to protect the code.
On windows I always export it to .exe and share it in order to make it executable and protect the code (mostly using python auto-py-to-exepython auto-py-to-exe). What about Raspbian? Any suggestions?
Regards
The theoretical aspects if you can obfuscate python sourcecorde are already widely discussed for example in this stackoverflow question.
If you just want to make it a little bit harder for someone to read your code compiling it as .pyc could be a solution or maybe your .exe export even runs with WINE on raspbian.
Python, being a byte-code-compiled interpreted language, is very difficult to lock down.
So you have to apply ordinary commercial methods.
Licenses or any other something like that.
Offer web based service like PaaS, SaaS
I want to add scripting capabilities to my application and I just came across python4delphi http://code.google.com/p/python4delphi/, which seems to be stable.
At first sight it looks very easy to use on the developers side, but I couldn't find a way to debug a script. Would be great if I could embed the IDLE IDE in my application, I just have no idea how to do it.
Is there a easy way to add debugging capabilities with python4delphi? Should I use other script engines like pascalScript (seems to have been discontinued)?
Edit: After having a look at PySctipt and pdb I realized that what I am looking is more like a visual editor with embedded debugging and the capability to read python4delphi custom modules (the ones where I export my delphi objects. Being a python noob I have no idea how p4d does this). I am probably asking too much, but would be great to find an implementation of that and not having to code it all from scratch.
Python is really a great language.
But if you need to embed script, with debug, in a Delphi application you should considere Pascal scripting, which is more available in Delphi.
I use the excellent PascalScipt, in the exemples you will see editor, debugger and a lot of other functions.
Is there a way to get the cvblobslib python interface working on windows? I have the opencv interface working after a lot of hassles. Any help would be appreciated.
Well, you can use pyblob. It is swig generated python wrapper for cvbloblib. Check below link:
code.google.com/p/pyblobs/
There is another library, cvBlob. It is also similar to cvbloblib.
code.google.com/p/cvblob/
It also has got a python wrapper.
https://github.com/oostendo/cvblob-python
Try whichever best suit you.
hi folks i am very new to python, i just intall it and configure it in netbeans but did't get from where to start and how to write my first program in python using netbean.
Any one recommend me some help, forume or any other resource.
Any kind of help will be greatly appreciated......
Try Zed Shaw's "Learning Python The Hard Way". Or S. Lott's "Building Python Skills".
UPDATE: I should have thought of the official tutorial first.
If you'd be willing to consider books, I've gotten a great deal out of Wesley Chun's "Core Python Programming".
I would recommend avoiding use of an IDE like NetBeans until you know how to use Python a bit more without it. I'd play around in the interactive terminal, accessible by typing python into a command prompt (or on windows, finding and running the python.exe file). As far as resources, there are a million easily available on Google. One you might want to use is "Learn Python the Hard Way"
I'm currently looking at python because I really like the text parsing capabilities and the nltk library, but traditionally I am a .Net/C# programmer. I don't think IronPython is an integration point for me because I am using NLTK and presumably would need a port of that library to the CLR. I've looked a little at Python for .NET and was wondering if this was a good place to start. Is there a way to marshal a python class into C#? Also, is this solution still being used? Better yet, has anyone done this? One thing I am considering is just using a persistence medium as a go-between (parse in Python, store in MongoDB, and run site in .NET).
NLTK is pure-python and thus can be made to run on IronPython easily. A search turned up this ticket - all one has to do is install a couple of extra Python libraries that don't come by default with IronPython.
This is probably the easiest way for you to integrate. Otherwise, you'll have to either run Python as a subprocess, which sounds complex, or run Python as a server that answers your requests. This is probably the most scalable, though complex, approach. If you go this way, consider Twisted to simplify the server code.
But do try IronPython first...
I don't know why you have a problem with IronPython. you can still use any and all nltk calls there.
To answer your question about porting a Python class into C#: try compiling your python code into an EXE. This creates a DLL with all your python classes in it. This is something that has been around for a while and it has worked like a charm for me in the past
Just an Idea
How about running Python behind as a server, and connect it from .NET with socket?
Since NLTK loading take time and better load it in advance anyway.