473,386 Members | 1,715 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,386 software developers and data experts.

scheduling accuracy for audio

Dear all,

I have created a large Python-based GUI project and I'd like to use it
as a GUI interface for real time audio sequencing (using the
SuperCollider -SC- synthesis server).
Python (the client) and SC (the server) can communicate via OSC
protocol (there are available implementations). SC will generate events
responding to Python messages.

In order to have sequencing I have to send at precise timing messages
from Python to SC. Obviously, being a musical application, I need
millisecond time accuracy, with less latency as possible or at least a
fixed (short) latency. More, I need to have multithreading, with many
processes sending messages from Python to SC.

I know that I can create a similar architecture in Python with sched
and time modules, using scheduler class and .sleep method. But I was
wondering: how precise will be timing?
Is .sleep suitable for audio/music.
Any hints?

Thanks a lot

Best

-a-

Andrea Valle
DAMS - Facoltą di Scienze della Formazione
Universitą degli Studi di Torino
http://www.semiotiche.it/andrea
an**********@unito.it

Jul 9 '06 #1
2 1582
andrea valle <an**********@unito.itwrites:
In order to have sequencing I have to send at precise timing messages
from Python to SC. Obviously, being a musical application, I need
millisecond time accuracy, with less latency as possible or at least a
fixed (short) latency. More, I need to have multithreading, with many
processes sending messages from Python to SC.
You really can't get that kind of accuracy with a non-realtime OS.
The way this is handled in actual audio applications the sound board
has a fair amount of buffering, so you send the right number of
samples and precise scheduling isn't so important.
Jul 9 '06 #2
Thanks Paul,
that's what I suspected.

-a-

On 9 Jul 2006, at 19:22, Paul Rubin wrote:
andrea valle <an**********@unito.itwrites:
>In order to have sequencing I have to send at precise timing messages
from Python to SC. Obviously, being a musical application, I need
millisecond time accuracy, with less latency as possible or at least a
fixed (short) latency. More, I need to have multithreading, with many
processes sending messages from Python to SC.

You really can't get that kind of accuracy with a non-realtime OS.
The way this is handled in actual audio applications the sound board
has a fair amount of buffering, so you send the right number of
samples and precise scheduling isn't so important.
--
http://mail.python.org/mailman/listinfo/python-list

Andrea Valle
DAMS - Facoltą di Scienze della Formazione
Universitą degli Studi di Torino
http://www.semiotiche.it/andrea
an**********@unito.it

Jul 9 '06 #3

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

Similar topics

6
by: Tony Proctor | last post by:
Hi everyone We're experiencing some serious anomalies with the scheduling of ASP threads. I'd be interested to hear if anyone knows what algorithm is used (e.g. simple round-robin, or something...
3
by: Alphonse Giambrone | last post by:
Can anyone point me toward a good example of an asp.net scheduling app? Preferrably in vb.net. TIA -- Alphonse Giambrone Email: a-giam at customdatasolutions dot us
4
by: Dinsdale | last post by:
I'm looking at adding scheduling features to an application and I wanted to ask the community about any experience with scheduling components, either open source like from code project or from a...
2
Ritchie
by: Ritchie | last post by:
Please can anyone help me with d programs in C for CPU scheduling: WAP to show FCFS scheduling algorithm. WAP to show SJF scheduling algorithm. WAP to show Priority scheduling algorithm. WAP...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...

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.