473,786 Members | 2,399 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.initial izeSnack(root)

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

class TrackFrame(Fram e):
#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(Fr ame):
#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(Fra me):
#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.mainlo op()
Jul 18 '05 #1
2 3120
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
1778
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. BACKGROUND: I've been playing around for a couple of days with parsing and
13
3010
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 was written on Linux system with absolutely no thought given to portability. It's nothing big (about 650 lines of code). Today, just for fun, I decide to try to run it under Win32. After installing the Numeric and Gnuplot modules, I only had...
9
1865
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
1882
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
28559
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 figure it out. Here is my sample code: import win32com.client xl=win32com.client.Dispatch("Excel.Application") xl.Visible=1 wb = xl.Workbooks.Add( )
1
3874
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 http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=62
0
1586
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 control the recording features from VBA. Are there any Verbs, OLE connections, or SendKey commands that can do the trick? Alex astidis@aol.com ---------
14
1833
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 decision today what I have to study from now on. What I make the decision is more difficult than to know why I have to learn English. Yeah I do not like to learn English because it is just very painful.. Can you please give me some advice?
3
4120
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 { #region API prototypes private unsafe static extern IntPtr VoiceRecorder_Create(CM_VOICE_RECORDER* voicerec);
0
9647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9492
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10360
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10163
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10108
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7510
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5397
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.