Hi All,
I sent a mail similar to this a while ago but to no response. so I will try again.. I know this is sort of off topic but I am attempting to write audio synthesis programs with the intention of linking them to pd. I am very interested in tips on how to optomise code to allow for the cpu to spend its time working on the audio generation/processing rather than irrelevent operations.. I work on the windows platform mainly and use c/c++. Does anyone have any pointers that could help me e.t.c. Thinkgs like c or c++ (which is better for audio apps) How to deal with audio output (frame by frame at the sampling rate with interrupts or in chunks?). Anyway any advice/sites/lists would be great...
thanks in advance. /0
http://www.nullpointer.co.uk http://www.dividebyzero.org ________________________________________________________ C:\AUTOEXEC.BAT C:\REM [Header] C:> C:>PATH=C:\PERL\BIN;C:\WINDOWS\COMMAND;\C:jdk1.2.2\bin ________________________________________________________
(all suffixes enabled)
-----Original Message----- From: Linium intent@club-internet.fr To: pd-list@iem.kug.ac.at pd-list@iem.kug.ac.at Date: 16 July 2001 12:58 Subject: Re: [PD] midi files
Le Sun, 15 Jul 2001, Joseph A. Sarlo a icrit :
I worked on a midi-to-qlist converter app that sort of worked. I never got the tempo to convert very well though. I can send you the source if you want.
Hello,
As far as I am concerned, I use "mididump" which is a command line rendering a midifile into a text. Then I wrote an "awk" script to transform again the textfile so that it can be played by the "textfile" object.
"mididump" comes from timidity-tools a GPL package to play soundfonts.
So there are at least 2 starting points (with Joseph converter) for someone to write an external ;)
Linium
nullpointer wrote:
Hi All,
I sent a mail similar to this a while ago but to no response. so I will try again.. I know this is sort of off topic but I am attempting to write audio synthesis programs with the intention of linking them to pd. I am very interested in tips on how to optomise code to allow for the cpu to spend its time working on the audio generation/processing rather than irrelevent operations..
Remove the code that deals with converting between farenheit and centigrade temperatures. Sorry, couldn't resist :-)
I work on the windows platform mainly and use c/c++. Does anyone have any pointers that could help me e.t.c. Thinkgs like c or c++ (which is better for audio apps)
The distinction performance-wise between C and C++ is irrelevant (they are both compiled, non garbage-collected languages)- it is mainly OS issues, algorithms, and how to interface to the hardware that is important.
How to deal with audio output (frame by frame at the sampling rate with interrupts or in chunks?). Anyway any advice/sites/lists would be great...
Well I can give you a list - try the music-dsp list. Pefect for non-application-specific questions like this. ]
Larry
Before you go to far with this, why are you not writing an external? Dealing with audio hardware and the like is a big pain - PD provides a very nice framework for the creation and testing of algorithms that is a great way to start.
Karl
On Mon, 16 Jul 2001, Larry Troxler wrote:
nullpointer wrote:
Hi All,
I sent a mail similar to this a while ago but to no response. so I will try again.. I know this is sort of off topic but I am attempting to write audio synthesis programs with the intention of linking them to pd. I am very interested in tips on how to optomise code to allow for the cpu to spend its time working on the audio generation/processing rather than irrelevent operations..
Remove the code that deals with converting between farenheit and centigrade temperatures. Sorry, couldn't resist :-)
I work on the windows platform mainly and use c/c++. Does anyone have any pointers that could help me e.t.c. Thinkgs like c or c++ (which is better for audio apps)
The distinction performance-wise between C and C++ is irrelevant (they are both compiled, non garbage-collected languages)- it is mainly OS issues, algorithms, and how to interface to the hardware that is important.
How to deal with audio output (frame by frame at the sampling rate with interrupts or in chunks?). Anyway any advice/sites/lists would be great...
Well I can give you a list - try the music-dsp list. Pefect for non-application-specific questions like this. ]
Larry
| Karl W. MacMillan | | Computer Music Department | | Peabody Institute of the Johns Hopkins University | | karlmac@peabody.jhu.edu | | mambo.peabody.jhu.edu/~karlmac |