Some guidance please: A Python multitrack recorder?

D

Dfenestr8

Hi.

I'm no coder. I'm just a working guy who likes to tinker with computers in
my spare time.

That's my hobby. My passion is: playing instruments. Combining the two,
I've made a couple of event driven, GUI controlled progs in Python and
tKinter before. I made an abc/midi player, using the timidity, and
abc2midi packages. I also did a metronome, using the Snack sound toolkit.

My next project is to make my own sound recorder, using Tkinter and the
Snack Sound toolkit. I have an idea, that using multiple threads for each
recording track, I could eventually develop it into a multitrack recorder.
I could use linux SOX to add effects to each track.

Does this sound like a stupidly complicated idea for a newby?

Also, is the Python interpreter fast enough for this sort of work?
Especially on a pII 450Mhz with only 256 meg?

Would I be better off just sticking with a single track recorder, until
the day I get around to seriously studying a compiler language like C++?

Here's the skeleton of the code I'm writing......

#! /usr/bin/python

from Tkinter import *
from os import popen, popen2
import threading
import tkSnack

root = Tk()
tkSnack.initializeSnack(root)

class RecThread(threading.Thread):
#this thread accesses the Snack toolkit
#and actually does the recording
def __init__ (self, master = None):
threading.Thread.__init__(self, master)

class TrackFrame(Frame):
#this frame will contain the controls for running RecThead
#including Rec, Play, and Mute Radiobutton contols.
def __init__ (self, master = None):
Frame.__init__(self, master)

class ControlFrame(Frame):
#this contains all the arrow keys for controlling TrackFrame
#it will have Start, Stop, and Pause buttons
def __init__ (self, master = None):
Frame.__init__(self, master)

class Application(Frame):
#this is the layout for all of the above
def __init__ (self, master = None):
Frame.__init__(self, master)

if __name__ == '__main__':

root.App = Application()
root.App.master.title("Un Recorder")
root.App.mainloop()
 
E

Egor Bolonev

Hello, Dfenestr8!
You wrote on Fri, 04 Jul 2003 16:15:11 +0900:

D> I'm no coder. I'm just a working guy who likes to tinker with computers
D> in my spare time.

[Snipped]

D> Also, is the Python interpreter fast enough for this sort of work?
D> Especially on a pII 450Mhz with only 256 meg?

The developers build such modules as tkSnack with C/C++, so they work fast.

D> Would I be better off just sticking with a single track recorder, until
D> the day I get around to seriously studying a compiler language like C++?

Python is a kind of serious language. If you can find all low-level modules
your programm need, then you have not to use C++.

[Snipped]


With best regards, Egor Bolonev. E-mail: (e-mail address removed) [ru eo en]
 
S

Sandy Norton

in message:
I'm no coder. I'm just a working guy who likes to tinker with computers in
my spare time.

That's my hobby. My passion is: playing instruments. Combining the two,
I've made a couple of event driven, GUI controlled progs in Python and
tKinter before. I made an abc/midi player, using the timidity, and
abc2midi packages. I also did a metronome, using the Snack sound toolkit.

If you like python and music you may be interested in these links:

- http://csounds.com/
- http://www.csounds.com/stevenyi/blue/

- http://cnmat.cnmat.berkeley.edu/OSC/
- http://galatea.stetson.edu/cgi-bin/viewcvs.cgi/ProctoLogic/
- www.stetson.edu/departments/mathcs/students/research/
cs/cs498/2001/danny_clinton/final.pdf

- http://seqdublin.sourceforge.net/

- http://lennart.regebro.nu/music/python-midi/

Have fun,

Sandy
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top