Kyma Forum
  Kyma Support
  AV/C Beta CPU usage

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   AV/C Beta CPU usage
tuscland
Member
posted 02 January 2006 17:18         Edit/Delete Message   Reply w/Quote
Hi,

I just noticed that when the Flame interface was plugged in the computer, the process kernel_task automatically started to use about 16% of CPU activity, even when no CoreAudio-related application is launched.

Do others noticed this behaviour ?
Is this a thing that is going to be fixed or is it inherent to the Flame?

Best wishes,
Camille

IP: Logged

SSC
Administrator
posted 02 January 2006 20:12         Edit/Delete Message   Reply w/Quote
This is the overhead associated with Apple's AV/C code. (Nothing to do with the Flame code)

IP: Logged

tuscland
Member
posted 03 January 2006 01:23         Edit/Delete Message   Reply w/Quote
quote:
Originally posted by SSC:
This is the overhead associated with Apple's AV/C code. (Nothing to do with the Flame code)

I hope they will do improvements in that area! Because on my PowerBook, it is impossible to use Logic and Kyma together, unfortunately. I've tried hard many times but in the end I lack processing power.

Oh, by the way, in Logic 7, there is a handy plugin called I/O which is perfectly fitted for using the Capybara for effect processing. You use the plugin on the track you want to process, choose the input/output (actually virtual send/return with Kyma), and that's it.
I've tried and it shows it can work (well, sort of). When the AV/C driver will be more streamlined, I guess it will work better.


Thank you.
Camille

IP: Logged

JackRosete
Member
posted 03 January 2006 07:14         Edit/Delete Message   Reply w/Quote
Thanks for the Logic tip Camille, I hadn't thought of using the I/O object...

I was actually wondering whether the final version of the AVC driver will allow us to use AU/VST plugins within Kyma?

IP: Logged

tuscland
Member
posted 03 January 2006 07:24         Edit/Delete Message   Reply w/Quote
Hi Jack,

To answer your question, I think it is fairly easy if you have a DAW that supports AU plugins. In Logic 7 for example, you can use an AUX track with inputs from and outputs to the Kyma. Instead of an AUX track you can also merely use an AUDIO track, but you'll have to record enable the track.

You can use a stereo track to process a stereo signal or as may mono tracks as you may need. I don't know if Logic 7 support 5.1 tracks, though.

This is the inverse logic of the I/O plugin which allow to use Kyma effect in a Logic track.

A last thing : there are plugin latency issues to consider when using host based plugins. I have not tested anything here, but I guess that running parallel input/outputs in different AUX tracks may not be without problems ... or perhaps the CoreAudio subsystem manages all that and keep in sync both Logic and Kyma?

Cam

IP: Logged

JackRosete
Member
posted 03 January 2006 08:37         Edit/Delete Message   Reply w/Quote
Yes, that would be a great way to route say an AU reverb into Kyma (latency wouldn't be so much of an issue there). I wonder what sort of latency the SamplesTo/FromExternalSource sounds introduce? Logic's not too bad if you reduce the buffer size.

Just had an idea. If you activate Logic's full PDC (plugin delay compensation) and send the Kyma sounds you want to process to say aux 1, and you send any parallel Kyma sounds (that you don't want to process) to aux 2, I'm pretty sure they would return to Kyma with the same PDC applied as the processed sounds, so they would return perfectly in sync right? I'll have to test it out... : )

[This message has been edited by JackRosete (edited 03 January 2006).]

IP: Logged

keph
Member
posted 03 January 2006 08:43         Edit/Delete Message   Reply w/Quote

if using with the IO plugin, you'll want to pair it will this plug to correct for latency:
http://www.collective.co.uk/expertsleepers/latencyfixer.html

IP: Logged

tuscland
Member
posted 03 January 2006 09:08         Edit/Delete Message   Reply w/Quote
Cool ...
Now we just have to know exactly much is the latency caused by a roundtrip via Kyma.

I guess that most of the algorithms can use the same value whereas FFT based calculations must take in account the window size, isn't it?

I would be great to share those values!

IP: Logged

KX
Member
posted 03 January 2006 12:44         Edit/Delete Message   Reply w/Quote
I measured a fixed 1.5ms latency a the converter stage so no matter the
prototype, you'll get a least 1.5ms... there are so many variables that influence latency (such as fft size among other) that I'm still asking
for an automatic latency calculator (wich should be very easy to implement as a tool for someone who have the skill).

IP: Logged

keph
Member
posted 03 January 2006 22:41         Edit/Delete Message   Reply w/Quote

I did some test awhile ago, and round trip via the coreaudio and it was substantial.

Using the the IO plugin, I take audio from a channel send it to Kyma, do a basic invert process (multiple by negative one) and send it back. I have the same audio running on a parallel track and try to get the sounds to cancel out.

The problem is the IO plugin stops becoming sample accurate after a buffer of 2048 samples and then moves to a hundredth of a second, anyhow, roundtrip latency was somewhere around 2000 milliseconds (I don't have Logic front of me but it was somewhere near that). It was stable from instance to instance.

My system is a powerbook 1.25, 1G ram, Logic Audio Pro 7.1.1 at 512 buffers.

I'll test again and report back, but I would love to hear other user's experiences and testing.

IP: Logged

tuscland
Member
posted 04 January 2006 03:10         Edit/Delete Message   Reply w/Quote
keph,

I did some (rough) testing yesterday, and I can tell the roundtrip latency via the I/O plugin is really not that bad. However my tests where cluttered as my computer was very slow, because of all the FireWire streams, Logic and Kyma running together ...
I will try 3 configurations (audio track latency, I/O plugin latency and aux track latency) and measure them all. I'll keep everyone informed. Obviouly, it is good to share our results in the Tweaky.

By the way :
I finally managed to use both the Capybara with my (creepy) FireWire 410 !!!
Until yesterday, it was absolutely impossible to me to do fancy thing with the AV/C because I could only use the Capybara alone in Logic. CoreAudio's Aggregate Device feature was not working at all. Then I saw a post on MacMusic (or something) where someone said that the clok issues where very important. If you want to aggregate audio interfaces, they need to agree on a good clock.
My FW-410 was actually set in external sync via its SPDIF input, and now I understand M-Audio drivers where confused to know which sync source they should keep : Capybara or SPDIF input?
Finally everything was working, but unfortunately the whole thing is not very usable as processing a mono track sent to Kyma, back in stereo in another logic track took 100% cpu time (about 35% kernel, 20% logic, 25% Kyma, 5% TabletDriver, and the other leftovers ...). I guess I'll have to switch to a Powermac G5 quad :-)

IP: Logged

SSC
Administrator
posted 04 January 2006 12:01         Edit/Delete Message   Reply w/Quote

DelayTest.zip

 
Using a Kyma Sound and the Rax application, we measured a 33.4 millisecond delay thru CoreAudio and Rax.

The Kyma Sound sends a signal out external out 1 and compares it to a signal coming back in on external in 1. The signal is delayed inside Kyma by the amount given by the !Delay fader and that delayed signal is displayed along with the external input signal in 2 oscilloscope displays.

Rax had its buffer size set to 64 samples. We found that the delay through Rax is three times the buffer size: changing the Rax buffer size from 64 samples to 256 samples increased the delay to 46.5 milliseconds (an increase of 13.1 milliseconds or 576 samples).

I have attached a Zip archive with the Rax configuration and the Kyma Sound used to do the measurement.

IP: Logged

photonal
Member
posted 11 January 2006 16:54         Edit/Delete Message   Reply w/Quote
Thanks Camille for the tip about the IO Plugin in LogicPro - it works a treat! The aggregate device was a bit tricky to master but the problems I had were due to clocking issues.

I also have a rise in Kernel Tasks CPU usage up from 10% to :

19% When running Kyma
17% running Ableton Live
21% running Logic Pro

I had the idea yesterday of building an Instrument in Reaktor which I intend to use to automate Kyma from within LogicPro... Not sure if it will work - but will try it

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c