[Clam-devel] Ladspa+Clam problem
Natanael Olaiz
nolaiz at gmail.com
Tue Oct 13 03:14:05 PDT 2009
Here is the modified code to compile in SVN version of CLAM, using
SendFloatToInControl(), plus a SConstruct...
Best regards,
Natanael.
El 10/13/2009 12:02 PM, Pau Arumí escribió:
> El dt 13 de 10 de 2009 a les 10:52 +0200, en/na Eugenio Rustico va
> escriure:
>
>>> Please note I'm using verison 1.2 (on Hardy). However, I had
>>> occasionally the same problem on my laptop, where 1.3 is installed
>>>
>> (on
>>
>>> Jaunty)
>>>
>
> I see that your code uses GetInControl("...").DoControl(...) which means
> that you use a clam version prior to the TypedControls refactoring (I
> don't remember if that made into 1.3 or not).
>
> Since we are trying to fix a bug I recommend you to use the last
> subversion revision (we keep try to keep it stable)
>
> Just use this helper function in Processing.hxx
>
> /**
> * Tries to send a float to an inaccessible InControl, this is kept for
> compatibility
> * This function uses the InControl's name to identify it.
> * @pre The type of the control is Float
> */
> void SendFloatToInControl(Processing & receiver, const std::string &
> inControlName, float value);
>
>
> We have just reproduced your results here! and i'm very surprised of
> that, because NE only adds a user interface to the jack process, nothing
> else. We'll investigate further and get back to you.
>
> Thanks for your feedback
>
> P
>
> ps: Yes the clam ml is down, to be fixed (and moved to another hosting).
> However clam-devel is the relevant list.
>
>
>
>
> _______________________________________________
> Clam-devel mailing list
> Clam-devel at llistes.projectes.lafarga.org
> https://llistes.projectes.lafarga.org/cgi-bin/mailman/listinfo/clam-devel
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: main.cxx
Type: text/x-c++src
Size: 3144 bytes
Desc: not available
URL: <http://lists.clam-project.org/pipermail/clam-devel-clam-project.org/attachments/20091013/a908f5ea/attachment-0005.cxx>
-------------- next part --------------
import os, glob, sys
options = Options('options.cache', ARGUMENTS)
options.Add(PathOption('clam_prefix', 'The prefix where CLAM was installed', ''))
env = Environment(ENV=os.environ, options=options)
options.Save('options.cache', env)
Help(options.GenerateHelpText(env))
env.SConsignFile() # Single signature file
CLAMInstallDir = env['clam_prefix']
clam_sconstoolspath = os.path.join(CLAMInstallDir,'share','clam','sconstools')
env.Tool('clam', toolpath=[clam_sconstoolspath])
env.EnableClamModules([
'clam_core',
'clam_audioio',
'clam_processing',
] , CLAMInstallDir)
mainSources = {
'MyProgram' :'./main.cxx',
}
if sys.platform=='win32' :
env.Append(CPPFLAGS=['-D_USE_MATH_DEFINES']) # to have M_PI defined
if sys.platform=='linux2' :
env.Append( CCFLAGS=['-g','-O3','-Wall'] )
programs = [ env.Program(target=program, source = [main] )
for program, main in mainSources.items()]
env.Default(programs)
More information about the clam-devel
mailing list