Re: [linux-audio-dev] soft synth as a plugin

2002-10-28 Thread Tommi Ilmonen
Hi. On 17 Oct 2002, nick wrote: Hi IMO running each synth in its own thread with many synths going is definitely _not_ the way forward. The host should definitely be the only process, much how VST, DXi, pro tools et. al. work. No, there is no real instrument or synth plugin API. but since

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Josh Green
On Fri, 2002-10-18 at 11:16, Paul Davis wrote: but personally i find it much more desirable that the plugin provides effectively a widget which can be added to a container (provided by the host) rather than the plugin creating its own window. its just much neater.. this makes no difference

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Steve Harris
On Fri, Oct 18, 2002 at 11:37:46 -0700, Josh Green wrote: Please enlighten me, what was the problem then with multiple GUI toolkits? IIRC it had to do with not being able to integrate multiple applications together very well (at least as far as the user interface). Its to do with the X event

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Steve Harris
On Fri, Oct 18, 2002 at 08:34:20 +0100, nick wrote: indeed, for a plugin soft-synth, it would only ever make sense to write it in c/c++ or assembler really, a question of speed. Are there really people who seriously want to write a synth in aynthing else? Of course, plenty of MacOS audio

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Steve Harris
On Fri, Oct 18, 2002 at 06:47:15 +, Stefan Nitschke wrote: -O3 with C is broken, i got an endless loop! What gcc version? What flags did you use with C? The test I did had the C code using a struct, and I used the . syntax for c++ method calls FWIW. I'l dig out the code in a min. I think

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Stefan Nitschke
On Fri, Oct 18, 2002 at 06:47:15 +, Stefan Nitschke wrote: -O3 with C is broken, i got an endless loop! What gcc version? What flags did you use with C? I used gcc 3.2 that comes with SuSE 8.1. Today i changed the initial values to a=0.5; b=0.001; x=0.1; and now -O3 works!?? Here are

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread nick
On Sat, 2002-10-19 at 00:49, Jack O'Quin wrote: The main drawback to using C++ subroutine linkage in today's Linux environment is the unstable ABI. This has caused many problems when trying to call binary libraries built using different compilers or sometimes even different compiler options.

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Stefan Nitschke
are different versions of gcc3 ABI - compatible? AFAIK all versions of gcc3 except version 3.0 which had a bug are compatible. - Stefan _ Surf the Web without missing calls! Get MSN Broadband.

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Steve Harris
On Sat, Oct 19, 2002 at 09:45:32 +, Stefan Nitschke wrote: The test I did had the C code using a struct, and I used the . syntax for c++ method calls FWIW. I'l dig out the code in a min. I think it was loop unrolling that was crappy in c++. That would be a bad thing. But by the look

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread David Gerard Matthews
Steve Harris wrote: On Fri, Oct 18, 2002 at 08:34:20 +0100, nick wrote: indeed, for a plugin soft-synth, it would only ever make sense to write it in c/c++ or assembler really, a question of speed. Are there really people who seriously want to write a synth in aynthing else? Of course,

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Steve Harris
On Sat, Oct 19, 2002 at 11:55:09 -0400, David Gerard Matthews wrote: Of course, plenty of MacOS audio software is written in Max/MSP (a relative of pd). There is also some Windows software written in Sync - both are graphical languages. Although all the actual DSP objects themselves in MSP

Re: [linux-audio-dev] soft synth as a plugin

2002-10-19 Thread Likai Liu
STEFFL, ERIK (SBCSI) wrote: erm, sorry, but why not use pointers it's dangerous... null pointers, memory leaks etc. tendency is not to use pointers unless absolutely neccessary... References in C++ are just pointers in a sugared form. Actually they are the same thing in a slightly

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Steve Harris
On Thu, Oct 17, 2002 at 09:49:53 +0100, nick wrote: No, there is no real instrument or synth plugin API. but since my original post I have been brewing something up. its quite vst-like in some ways, but ive been wanting to make it more elegant before announcing it. It does, however, work, and

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Steve Harris
On Thu, Oct 17, 2002 at 05:00:39 -0400, Paul Davis wrote: i think you need to scan back a year or 18 months in the archives to where we measured this. the context switch under linux can be extremely quick - on the order of 20-50 usecs on a PII-450, and is not Do we know if this is getting

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Stefan Nitschke
From: Steve Harris [EMAIL PROTECTED] Hmmm... My experiments with c++, dsp code and gcc (recent 2.96) did not turn out very well. For some reason the optimiser totaly chokes on c++ code. I only tried one routine, and I'm no c++ expert, so its possible I screwed something up, but it did not

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Steve Harris
On Fri, Oct 18, 2002 at 12:44:56 +, Stefan Nitschke wrote: Hmmm... My experiments with c++, dsp code and gcc (recent 2.96) did not turn out very well. For some reason the optimiser totaly chokes on c++ code. I only tried one routine, and I'm no c++ expert, so its possible I screwed

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Tim Goetze
Steve Harris wrote: Hmmm... My experiments with c++, dsp code and gcc (recent 2.96) did not turn out very well. For some reason the optimiser totaly chokes on c++ code. I only tried one routine, and I'm no c++ expert, so its possible I screwed something up, but it did not look encouraging. I will

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Steve Harris
On Fri, Oct 18, 2002 at 01:39:13 +0200, Tim Goetze wrote: Hmmm... My experiments with c++, dsp code and gcc (recent 2.96) did not turn out very well. For some reason the optimiser totaly chokes on c++ code. I only tried one routine, and I'm no c++ expert, so its possible I screwed something

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread nick
I think gcc is in general not the best choice when you want to have highly optimized code. I had no problems with C++ so far. You should avoid to use pointers when ever possible and use references instead. RTSynth is written in C++ and it performs quite well i think... - Stefan erm,

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread nick
Until we have such instrument plugin API, what is the right way to implement the the system (30 softsynths working together) with what we have I mean a bunch of software synths /dev/midi - /dev/dsp Can I use these together right now? oh yeah, you need to use ALSA though i think youll

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread nick
This discussion is open! the discussion is several years old :) and it doesnt look set to end anytime soon ;-) you managed to touch upon the central problem in your penultimate sentence, apparently without realizing the depth of the problem. if a synth comes with a GUI, then the issue

RE: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread STEFFL, ERIK (SBCSI)
-Original Message- From: nick [mailto:nixx;nixx.org.uk] I think gcc is in general not the best choice when you want to have highly optimized code. I had no problems with C++ so far. You should avoid to use pointers when ever possible and use references instead. RTSynth is

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Paul Davis
but personally i find it much more desirable that the plugin provides effectively a widget which can be added to a container (provided by the host) rather than the plugin creating its own window. its just much neater.. this makes no difference to the problem. whether the plugin creates a widget

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Stefan Nitschke
erm, sorry, but why not use pointers? Just out of couriosity i made a benchmark test between C and C++ with gcc3. I dont have a clue abour x86 assembler so i made a measurement. Here is the C code (not realy useful as real code would have a need for a struct and a pointer operation to call

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread nick
On Thu, 2002-10-17 at 22:00, Paul Davis wrote: thus guaranteeing that no instruments can be written in other languages. for all the mistakes the GTK+ crew made, their design to use C as the base language so as to allow for other languages to provide wrappers was a far-sighted and wise choice.

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Tim Goetze
Stefan Nitschke wrote: erm, sorry, but why not use pointers? Just out of couriosity i made a benchmark test between C and C++ with gcc3. I dont have a clue abour x86 assembler so i made a measurement. Here is the C code (not realy useful as real code would have a need for a struct and a

Re: [linux-audio-dev] soft synth as a plugin

2002-10-18 Thread Jack O'Quin
On Thu, 2002-10-17 at 22:00, Paul Davis wrote: thus guaranteeing that no instruments can be written in other languages. for all the mistakes the GTK+ crew made, their design to use C as the base language so as to allow for other languages to provide wrappers was a far-sighted and wise

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread nikodimka
Guys, This answer appeared just after I decided to ask the very same question. Is it true that there is no _common_ instrument or synth plugin API on linux? Is it true that there is no the same kind of media for out-of-process instruments? I see that there are some kinds of possible plugin

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread nick
Hi IMO running each synth in its own thread with many synths going is definitely _not_ the way forward. The host should definitely be the only process, much how VST, DXi, pro tools et. al. work. No, there is no real instrument or synth plugin API. but since my original post I have been brewing

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread Paul Davis
IMO running each synth in its own thread with many synths going is definitely _not_ the way forward. The host should definitely be the only process, much how VST, DXi, pro tools et. al. work. i think you need to scan back a year or 18 months in the archives to where we measured this. the context

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread John Lazzaro
Paul Davis [EMAIL PROTECTED] writes switching between contexts is massively more expensive under windows and macos (at least pre-X), As a data point, I ran two different sa.c files (the audio engines sfront produces) set up as softsynths using different patches under OS X (using CoreAudio +

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread Peter L Jones
On Thursday 17 Oct 2002 21:49, nick wrote: Hi IMO running each synth in its own thread with many synths going is definitely _not_ the way forward. The host should definitely be the only process, much how VST, DXi, pro tools et. al. work. No, there is no real instrument or synth plugin API.

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread nikodimka
--- Paul Davis wrote: IMO running each synth in its own thread with many synths going is definitely _not_ the way forward. The host should definitely be the only process, much how VST, DXi, pro tools et. al. work. i think you need to scan back a year or 18 months in the archives to where we

Re: [linux-audio-dev] soft synth as a plugin

2002-10-17 Thread nikodimka
Oh yeah I forgot! And there's another question I _realy_ want to know the answer for: Until we have such instrument plugin API, what is the right way to implement the the system (30 softsynths working together) with what we have I mean a bunch of software synths /dev/midi - /dev/dsp Can I

Re: [linux-audio-dev] soft synth as a plugin

2002-07-04 Thread Tim Goetze
nick wrote: Now somebody please put me straight here - as far as I can see, there's LADSPA and JACK. (and MuSE's own plugins?). Now, I'm under the impression that these only deal with the audio data - only half what I need for a synth. Or can LADSPA deal with MIDI? [...] I just want to get

[linux-audio-dev] soft synth as a plugin

2002-07-03 Thread nick
Hi all I've been scratching my head for a while now, planning out how im going to write amSynthe (aka amSynth2) Ideally i don't want to be touching low-level stuff again, and it makes sense to write it as a plugin for some host. Obviously in the Win/Mac world theres VST/DXi/whatever - but that

Re: [linux-audio-dev] soft synth as a plugin

2002-07-03 Thread Paul Davis
Now somebody please put me straight here - as far as I can see, there's LADSPA and JACK. (and MuSE's own plugins?). Now, I'm under the impression that these only deal with the audio data - only half what I need for a synth. Or can LADSPA deal with MIDI? So how should I go about it? Is it

Re: [linux-audio-dev] soft synth as a plugin

2002-07-03 Thread Bob Ham
On Thu, 2002-07-04 at 00:06, Paul Davis wrote: You handle MIDI I/O in its own thread. You use a lock-free buffer/fifo/queue between this thread and the one that executes process() (or LADSPA's run()) callback. The queue should contain an abstract description of recent MIDI events, preferably