473,320 Members | 1,744 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Some guidance please: A Python multitrack recorder?

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()
Jul 18 '05 #1
2 3100
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: eb******@rol.ru [ru eo en]

Jul 18 '05 #2
"Dfenestr8" wrote 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/v...i/ProctoLogic/
- http://www.stetson.edu/departments/m...ents/research/
cs/cs498/2001/danny_clinton/final.pdf

- http://seqdublin.sourceforge.net/

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

Have fun,

Sandy
Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Robert Brewer | last post by:
WARNING: The following is NOT all Pythonic. However, it is Python. This is just fun--nothing I'm going to put into production. I don't have any questions or problems--just thought I'd share. ...
13
by: Grant Edwards | last post by:
A few months back I wrote a sort of a strip-chart recorder program that talks DeviceNet to a measurement widget and plots the received data in more-or-less real time using the Gnuplot module. It...
9
by: Baza | last post by:
I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no'
2
by: Mad Scientist Jr | last post by:
Can someone convert this code to vb.net? it is a voice recorder for pocket pc. many thanks ! source: http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=62 the code: using System;
3
by: zxo102 | last post by:
Hi there, I need your help for python <--> excel. I want to paste selected cells (range) to different location on the same sheet in Excel through python. I have tried it for a while but could not...
1
by: Mad Scientist Jr | last post by:
hi can someone possibly convert this to vb.net ? it is c# code that lets the pocket pc access the voice recorder... many thanks... source: wapboy...
0
by: Alex | last post by:
I would like to control the Windows Sound Recorder from Access VBA code. I have found the sample code from the Microsoft website for the default recorder (see below), but I could not find a way to...
14
by: Byung-Hee HWANG | last post by:
Hi there, What is different between Ruby and Python? I am wondering what language is really mine for work. Somebody tell me Ruby is clean or Python is really easy! Anyway I will really make...
3
markmcgookin
by: markmcgookin | last post by:
Hi Folks, I was hoping to get a little help here. I have recently foun the following code (here: http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=160) public class VoiceRecorder { ...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.