Plug-ins, Hosts, Apps,
Hardware, Soundware
Developers
(Brands)
Videos Groups
Whats's in?
Banks & Patches
Download & Upload
Music Search
KVR
   
KVR Forum » DSP and Plug-in Development
Thread Read
intense method call in setParameter
trushmore
KVRer
- profile
- pm
PostPosted: Tue Aug 21, 2012 1:18 pm reply with quote
Hi KVR,

I am trying to make a call to a third-party library in order to change a parameter value using setParameter. The library's "change parameter" method however is quite intensive which I cannot change. I am getting sporadic crashes when changing the vst parameters using the default sliders in Ableton, however, when automating the parameter from a Live clip is is working perfectly and results in full use of the default slider.

I understand setParameter can be called by the audio thread, so is it that the library method maybe take too long to complete? In which case, would setting up some locks help? Considering automation of this parameter is fully working, can I assume that Ableton is not calling setParameter itself but perhaps setParameterNotifyingHost? If this is the case, am I able to make the calls to setParamNotif.... myself for use with the default parameter sliders?

Many thanks!
^ Joined: 28 Aug 2011  Member: #263594  
trushmore
KVRer
- profile
- pm
PostPosted: Tue Aug 21, 2012 1:48 pm reply with quote
I have just noticed, as long as the Live is playing, the sliders work perfectly with no delays or crashes. The crashes only occur when the sequencer is not running which is rather bizarre. Perhaps I could just put in some control to stop parameter changes when it has stopped?
^ Joined: 28 Aug 2011  Member: #263594  
thevinn
KVRian
- profile
- pm
- www
PostPosted: Tue Aug 21, 2012 2:19 pm reply with quote
Deja-vu
^ Joined: 30 Nov 2008  Member: #194779  
cprime
KVRer
- profile
- pm
PostPosted: Tue Aug 21, 2012 10:34 pm reply with quote
> I am trying to make a call to a third-party library...
Maybe you should not use "a third-party library".
Are you sure that there are no errors in the library?
^ Joined: 20 Feb 2012  Member: #275460  
trushmore
KVRer
- profile
- pm
PostPosted: Wed Aug 22, 2012 4:21 pm reply with quote
thevinn wrote:
Deja-vu


yeah I was not entirely sure whether this could be juce related. turns out it is not
^ Joined: 28 Aug 2011  Member: #263594  
All times are GMT - 8 Hours

Printable version
Page 1 of 1
Display posts from previous:   
ReplyNew TopicPrevious TopicNext Topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Username: Password:  
KVR Developer Challenge 2012