Hi!
I want to record sounds from a live playing band.
Then I want to make some effects with using a programming language.
After this i want to play this sounds also live.
Which programming language would be useful?
Can I use python?
EDIT:
I want to play them simultaneously (in sync). The sound effects take the recorded music as input.
...
I have a python class/object as follows.
class Hello:
def __init__(self):
self.x = None
self.y = None
self.z = None
h = Hello()
h.x = 10
h.y = 20
# h.z is not set
I need to check if all the member variables are set (not None). How can I do that automatically?
for value in ??memeber variables in h??:
...
Looks like I am having a real tough day with python imports.I am using Flask and am trying to organise my app structure.I am using it on GAE and thus have to put python packages in my app itself. It looks something like this below:-
-MyFolder
-flask
-werkzeug
-Myapp
- __init__.py
-templates
-static
-views.py
-bli...
Could someone tell me how I can extract and remove all the <script> tags in a HTML document and add them to the end of the document, right before the </body></html>? I'd like to try and avoid using lxml please.
Thanks.
...
Say you want to schedule recurring tasks, such as:
Send email every wednesday at 10am
Create summary on the first day of every month
And you want to do this for a reasonable number of users in a web app - ie. 100k users each user can decide what they want scheduled when.
And you want to ensure that the scheduled items run, even if t...
Hello,
I'm building a web site from the old one and i need to show a lot of .pdf files.
I need users to get authenficated before the can't see any of my .pdf but i don't know how (and i can't put my pdf in my database).
I'm using Pylons with Python.
Thank for you help.
If you have any question, ask me! :)
...
Suppose I type line = line.decode('gb18030;) and get the error
UnicodeDecodeError: 'gb18030' codec can't decode bytes in position 142-143: illegal multibyte sequence
Is there a nice way to automatically get the error bytes? That is, is there a way to get 142 & 143 or line[142:144] from a built-in command or module? Since I'm fairly co...
I am running Ubuntu 10.04 Lucid and am developing a application in QT using Python. Today I tried to create a database binding to a SQLite database via QtSQL.QAddDatabase and got the following error:
QSqlDatabase: QSQLITE driver not loaded
QSqlDatabase: available drivers: QMYSQL3 QMYSQL
So obviously I don't have the SQLite driver...ho...
Attached are screenshots (right click: View Image to see in full size):
The intellisense doesn't recognize the module. Am I missing a step? Thank you for the help.
...
I have a Django application, and I'm using a shared server hosting, so I cannot change apache's config files. The only thing that I can change is the .htaccess file in my application. I also have a standard django.wsgi python file, as an entry point.
In dev environment, I'm using Django to serve the static files, but it is discouraged i...
Well i want to input a python function as an input in run time and execute that part of code 'n' no of times. For example using tkinter i create a textbox where the user writes the function and submits it , also mentioning how many times it wants to be executed. My program should be able to run that function as many times as mentioned b...
Hello,
I implemented some ImageFields in my model and installed PIL (not the cleanest install). Things seem to work as I get an upload button in the admin and when I call the .url property in the view I get the string with the filename + its upload property.
The problem is that the file is not there, apparently it doesnt get uploaded onc...
I have been searching through the website looking for the best language for beginner game development. Many people say a C based language, others suggest Python.
Normally I would just pick one, but this is my dilemma. I am not sure if this is correct, but I read from programmers on here that C is much faster at 3d render, whereas Python...
I'm trying to do profiling of my application in python. I'm using the cProfile library. I need to profile the onFrame function of my application, but this is called by an outside application. I've tried loads of things, but at the moment I have the following in my onFrame method:
runProfiler(self)
and then outside of my class I have t...
My python script is working now, but I'm having a little trouble:
Here is the output:
from BeautifulSoup import BeautifulSoup
import urllib
langCode={
"arabic":"ar", "bulgarian":"bg", "chinese":"zh-CN",
"croatian":"hr", "czech":"cs", "danish":"da", "dutch":"nl",
"english":"en", "finnish":"fi", "french":"fr", "german":"de",...
I need to retrieve the most recent item added to a collection. Here is how I'm doing it:
class Box(db.Model):
ID = db.IntegerProperty()
class Item(db.Model):
box = db.ReferenceProperty(Action, collection_name='items')
date = db.DateTimeProperty(auto_now_add=True)
#get most recent item
lastItem = box.items.order('-date')[0]...
I'm working on a Python program that plays music. One feature will be a slider that the user can drag up or down to change the pitch of the music as it plays.
For example, if the pitch is set to 2, then the music will sound one octave higher, it will play twice as fast, and it will last half as long. All I'm really changing is the playb...
Which is the best: create the modules and put them in a separate file and import them or put them all together in the same file?
Is there any significant difference?
...
I want to add suffix to names of my files, for example uuid. How can i extract files using zipfile and pass custom names?
...
I have python extensions implemented on c++ classes. I dont have a c++ target to run valgrind with. I want to use valgrind for memory check. Can I use valgrind with python?
...