| I should add, typically in CsoundVST ksmps is 15 or 20 frames, but the
VST buffer seems to be about 5 or 10 times that big, though of
variable size (I think some hosts start a new buffer whenever a new
control event occurs).
Regards,
Mike
On Fri, Feb 26, 2010 at 6:07 PM, Michael Gogins
wrote:
> It may be quite feasible to use thread locks without any intermediate
> buffering. I did this in an earlier version of CsoundVST and it worked
> fine. Basically, the CsoundVST process callback simply copied data out
> of Csound into the host buffer, then released a lock to permit another
> thread to use Csound to compute the next buffer. After computing that
> one buffer, the Csound thread just waited to be unlocked by the
> callback again. The locking was so efficient that the overhead was not
> perceptible, and the thread switching did not seem to cause any more
> dropouts than running Csound inside the callback. I changed the code
> just because it was simpler to call performKsmps as required to refill
> the buffer in the callback. Now that I think about it, the thread
> switching version might be better because it would be more flexible
> with respect to buffer sizes, balancing the load on the CPU or CPUs,
> and so on.
>
> It also should be possible to modify Csound to run in a callback mode
> if necessary.
>
> Regards,
> Mike
>
> On Fri, Feb 26, 2010 at 5:14 PM, Victor Lazzarini
> wrote:
>> Because as it is it cannot be guaranteed to run in sync with the Jack
>> callback. This is my impression when looking at the code, but I may be
>> wrong. I think a freewheel-capable client should not have the kind of
>> intermediary buffering with thread locks we have in Csound. The way to
>> do this would be to have a client that calls PerformKsmps() or
>> PerformBuffer() from inside the jack callback. Again, this is my
>> impression, I might be wrong; Fons can correct me if I am.
>>
>> Victor
>> On 26 Feb 2010, at 22:05, Michael Gogins wrote:
>>
>>> Why not?
>>>
>>> Regards,
>>> Mike
>>>
>>> On Fri, Feb 26, 2010 at 5:03 PM, Victor Lazzarini
>>> wrote:
>>>> As far as I know, Csound's Jack Module cannot use freewheel.
>>>>
>>>> Victor
>>>>
>>>> On 26 Feb 2010, at 21:42, Michael Gogins wrote:
>>>>
>>>>> Thanks for the information. This tells me what I needed to know.
>>>>>
>>>>> The freewheeling mode is exactly what I want.
>>>>>
>>>>> I will see if Csound can work this way; and if not, I will see if I
>>>>> can change Csound so that it does work.
>>>>>
>>>>> Regards,
>>>>> Mike
>>>>>
>>>>> On Fri, Feb 26, 2010 at 4:22 PM, wrote:
>>>>>> On Fri, Feb 26, 2010 at 03:08:31PM -0500, Michael Gogins wrote:
>>>>>>
>>>>>>> Is it possible to render Jack output to a soundfile?
>>>>>>
>>>>>> The question suggests that you may have the wrong idea of
>>>>>> what Jack is. Jack connects audio apps to each other and
>>>>>> to the soundcard. That's all it does. It does not by itself
>>>>>> read or write files. There are applications that can record
>>>>>> any input they get from Jack, and play it back to Jack later.
>>>>>>
>>>>>>> Or is possible to just hook up Aeolus to Csound and run
>>>>>>> Jack out of real time and have Csound write the soundfile?
>>>>>>
>>>>>> Jack can run out of real time, that is the so-called
>>>>>> 'freewheeling' mode. In this mode Jack will disconnect
>>>>>> from the sound card and run the clients 'as fast as they
>>>>>> can'. It requires that processing in a client is done
>>>>>> strictly in sync with Jack's callback, and that is not
>>>>>> the case in Csound AFAIK. So I don't think it will work.
>>>>>>
>>>>>> Ciao,
>>>>>>
>>>>>> --
>>>>>> FA
>>>>>>
>>>>>> O tu, che porte, correndo si ?
>>>>>> E guerra e morte !
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Download Intel® Parallel Studio Eval
>>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>>> proactively, and fine-tune applications for parallel performance.
>>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>>> _______________________________________________
>>>>>> Csound-devel mailing list
>>>>>> Csound-devel@lists.sourceforge.net
>>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Michael Gogins
>>>>> Irreducible Productions
>>>>> http://www.michael-gogins.com
>>>>> Michael dot Gogins at gmail dot com
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Download Intel® Parallel Studio Eval
>>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>>> proactively, and fine-tune applications for parallel performance.
>>>>> See why Intel Parallel Studio got high marks during beta.
>>>>> http://p.sf.net/sfu/intel-sw-dev
>>>>> _______________________________________________
>>>>> Csound-devel mailing list
>>>>> Csound-devel@lists.sourceforge.net
>>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download Intel® Parallel Studio Eval
>>>> Try the new software tools for yourself. Speed compiling, find bugs
>>>> proactively, and fine-tune applications for parallel performance.
>>>> See why Intel Parallel Studio got high marks during beta.
>>>> http://p.sf.net/sfu/intel-sw-dev
>>>> _______________________________________________
>>>> Csound-devel mailing list
>>>> Csound-devel@lists.sourceforge.net
>>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>>>
>>>
>>>
>>>
>>> --
>>> Michael Gogins
>>> Irreducible Productions
>>> http://www.michael-gogins.com
>>> Michael dot Gogins at gmail dot com
>>>
>>> ------------------------------------------------------------------------------
>>> Download Intel® Parallel Studio Eval
>>> Try the new software tools for yourself. Speed compiling, find bugs
>>> proactively, and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Csound-devel mailing list
>>> Csound-devel@lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Download Intel® Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Csound-devel mailing list
>> Csound-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/csound-devel
>>
>
>
>
> --
> Michael Gogins
> Irreducible Productions
> http://www.michael-gogins.com
> Michael dot Gogins at gmail dot com
>
--
Michael Gogins
Irreducible Productions
http://www.michael-gogins.com
Michael dot Gogins at gmail dot com
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net |