> You need
>
> MyPlugin *mp = calloc(sizeof(MyPlugin), 1);
>
> mp->sampleRate = sampleRate;
>
> return mp;
Steve, thanks sooo much, this works ;-)
A.
> You have to initialise the value in MyPlugin when you
> create that struct inside instantiate().
Thanks, Fons!
I have:
LADSPA_Handle instantiateMyPlugin(const LADSPA_Descriptor *
Descriptor, unsigned long SampleRate) {
return malloc(sizeof(MyPlugin));
}
...
What to add her
> Youre passed it as a paramter when your instantiated, just stash it
> in the struct.
Thanks for your help!
But... I have added:
typedef struct {
unsigned long SampleRate;
...
} MyPlugin;
and then in runMyPlugin:
...
unsigned long fSampleRate
...
fSampleRate = psMyPlugin->Samp
Hello all!
I am wondering, in my runMyPlugin() function, how do I get the sample
rate value?
Thanks!
Artemiy.
Hello all!
Okay, I now understand the situation but I really think there should
be some development in this area. Interpolation is fine but only for
linear modulation as you guess, and knob/slider tweaks are never
linear, and what about complex-form LFOs?
To Fons:
Thanks a lot, yes, this is
Hello all!
I am here to ask you one thing. If I want sample-precise realtime
control for the plugin, should I be getting all the parameters inside
the cycle which travels through the buffer contents?
E.g., should the code that looks like this:
fParameter = *(psMyPlugin->m_pfSomeParameter);
pf
Hello all!
I am happy to tell you that I've finished my very first plugins. I
would like to thank all those who helped me over here to get started
and to Tim who kindly provided free plugin IDs.
There are four plugins, each with mono and stereo variant:
- Clipping Booster - boosts/clips the s
Steve:
Thanks for the info. But maybe if Richard is that busy (which is
something I understand of course) would it be more convenient if
several trustworthy people involved in LADSPA would take care of a
common available IDs range stored in a file on some FTP site
accessible only by them?
Tim
Hello all!
I am writing to ask if Richard Furse is in vacation and if there is an
alternative method of getting unique IDs for my plugins. I sent a
mail to [EMAIL PROTECTED] about 3-4 days ago, but haven't got
any reply yet.
I already created four plugins, each with mono and stereo variants, s
Hello, Fons, and thank you for answering.
> Just combine the two _init() functions into one, and the same
> for _fini(). Or change their names and add _init() and _fini()
> that call both.
In both cases, you mean I need to create a separate .c file with
global _init() and _fini() functions that
Hello all!
I have a question regarding linking multiple plugins into a single
library.
if I do:
$ ld -shared -o plugins.so plugins/*.o
- then ld complains that g_psStereoDescriptor and g_psMonoDescriptor
as well as _init and _fini functions are duplicate and does nothing.
If I try:
$ ld -shar
Dear friends,
thanks again for your help with my ports definition yesterday - with
it, I created a clipping booster plugin with three control ports and
it works perfectly.
However, today I added the fourth port, following all rules I learnt,
but I get the same segfaults as yesterday. If you co
Thank you s much Lars and Fons!!!
Yes, I realised my mistake with defining the port numbers, and once I
fixed everything started working like charm!
I really appreciate your help, guys. Thanks a lot!
With kindest regards,
Artemiy,
Hello all!
I have a problem with creating a plugin with more than one control
port. In the attachment you'll find "booster-simple.c" which has one
"Gain" port and my attempt to add a second port in "booster.c". For
some reason the latter cannot be used - the sources seem to be
correct, it comp
14 matches
Mail list logo