Csound Csound-dev Csound-tekno Search About

[Csnd-dev] csladspa

Date2015-11-27 09:56
FromAnders Genell
Subject[Csnd-dev] csladspa
Dear list (and perhaps especially Victor and Rory) !
I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.

I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.

When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message

attempting to load plugin index: 0
PLUGIN NOT LOADED: probably missing csLADSPA section
no more csLADSPA plugins

Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?

Regards,
Anders

Date2015-11-27 10:31
FromVictor Lazzarini
SubjectRe: [Csnd-dev] csladspa
Not quite sure. The gain plugin loads here on OSX with Audacity. This the
code

 
Name=Gain Plugin
Maker=John Doe
UniqueID=1049
Copyright=None
ControlPort=Gain|gain
Range=0|2





sr = 44100
ksmps = 10
nchnls = 1

instr 1

kGain   chnget "gain"

ain 	in
	
        out	ain*kGain 
endin




	
i1 0 3600


	


========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 27 Nov 2015, at 09:56, Anders Genell  wrote:
> 
> Dear list (and perhaps especially Victor and Rory) !
> I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
> 
> I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
> 
> When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
> 
> attempting to load plugin index: 0
> PLUGIN NOT LOADED: probably missing csLADSPA section
> no more csLADSPA plugins
> 
> Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
> 
> Regards,

Date2015-11-27 10:35
FromRory Walsh
SubjectRe: [Csnd-dev] csladspa
I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure.

On 27 November 2015 at 10:31, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Not quite sure. The gain plugin loads here on OSX with Audacity. This the
code

 <csLADSPA>
Name=Gain Plugin
Maker=John Doe
UniqueID=1049
Copyright=None
ControlPort=Gain|gain
Range=0|2
</csLADSPA>

<CsoundSynthesizer>

<CsInstruments>
sr = 44100
ksmps = 10
nchnls = 1

instr 1

kGain   chnget "gain"

ain     in

        out     ain*kGain
endin

</CsInstruments>

<CsScore>

i1 0 3600

</CsScore>

</CsoundSynthesizer>

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 27 Nov 2015, at 09:56, Anders Genell <anders.genell@gmail.com> wrote:
>
> Dear list (and perhaps especially Victor and Rory) !
> I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
>
> I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
>
> When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
>
> attempting to load plugin index: 0
> PLUGIN NOT LOADED: probably missing csLADSPA section
> no more csLADSPA plugins
>
> Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
>
> Regards,
> Anders


Date2015-11-27 11:58
FromAnders Genell
SubjectRe: [Csnd-dev] csladspa
It seems to be working now - I had set the LADSPA_PATH to /usr/lib/ladspa where all the plugs - including csladspa and corresponding csd-file - reside, but that didnät work.
When I tried from a fresh terminal without the path set, it worked.
However, when I try to change the unique id number in the csladspa tag it is not reflected when running analyseplugin again, almost as if something is cached somewhere...
I'll mess with it some more...

Thanks!

Regards,
Anders


On Fri, Nov 27, 2015 at 11:35 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure.

On 27 November 2015 at 10:31, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Not quite sure. The gain plugin loads here on OSX with Audacity. This the
code

 <csLADSPA>
Name=Gain Plugin
Maker=John Doe
UniqueID=1049
Copyright=None
ControlPort=Gain|gain
Range=0|2
</csLADSPA>

<CsoundSynthesizer>

<CsInstruments>
sr = 44100
ksmps = 10
nchnls = 1

instr 1

kGain   chnget "gain"

ain     in

        out     ain*kGain
endin

</CsInstruments>

<CsScore>

i1 0 3600

</CsScore>

</CsoundSynthesizer>

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 27 Nov 2015, at 09:56, Anders Genell <anders.genell@gmail.com> wrote:
>
> Dear list (and perhaps especially Victor and Rory) !
> I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
>
> I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
>
> When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
>
> attempting to load plugin index: 0
> PLUGIN NOT LOADED: probably missing csLADSPA section
> no more csLADSPA plugins
>
> Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
>
> Regards,
> Anders



Date2015-11-27 12:11
FromAnders Genell
SubjectRe: [Csnd-dev] csladspa
Ok, found it:
The user owning the process opening the csladspa plugin (in the case me running analyseplugin) must have not only read access but also write access to the corresponding csd files, otherwise the plugin fails to load.

Regards,
Anders


On Fri, Nov 27, 2015 at 12:58 PM, Anders Genell <anders.genell@gmail.com> wrote:
It seems to be working now - I had set the LADSPA_PATH to /usr/lib/ladspa where all the plugs - including csladspa and corresponding csd-file - reside, but that didnät work.
When I tried from a fresh terminal without the path set, it worked.
However, when I try to change the unique id number in the csladspa tag it is not reflected when running analyseplugin again, almost as if something is cached somewhere...
I'll mess with it some more...

Thanks!

Regards,
Anders


On Fri, Nov 27, 2015 at 11:35 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure.

On 27 November 2015 at 10:31, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
Not quite sure. The gain plugin loads here on OSX with Audacity. This the
code

 <csLADSPA>
Name=Gain Plugin
Maker=John Doe
UniqueID=1049
Copyright=None
ControlPort=Gain|gain
Range=0|2
</csLADSPA>

<CsoundSynthesizer>

<CsInstruments>
sr = 44100
ksmps = 10
nchnls = 1

instr 1

kGain   chnget "gain"

ain     in

        out     ain*kGain
endin

</CsInstruments>

<CsScore>

i1 0 3600

</CsScore>

</CsoundSynthesizer>

========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 27 Nov 2015, at 09:56, Anders Genell <anders.genell@gmail.com> wrote:
>
> Dear list (and perhaps especially Victor and Rory) !
> I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
>
> I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
>
> When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
>
> attempting to load plugin index: 0
> PLUGIN NOT LOADED: probably missing csLADSPA section
> no more csLADSPA plugins
>
> Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
>
> Regards,
> Anders




Date2015-11-27 12:19
FromVictor Lazzarini
SubjectRe: [Csnd-dev] csladspa
That does not seem to be the case on OSX. Plugins can be kept in read-only directories, it seems.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 27 Nov 2015, at 12:11, Anders Genell  wrote:
> 
> Ok, found it:
> The user owning the process opening the csladspa plugin (in the case me running analyseplugin) must have not only read access but also write access to the corresponding csd files, otherwise the plugin fails to load.
> 
> Regards,
> Anders
> 
> 
> On Fri, Nov 27, 2015 at 12:58 PM, Anders Genell  wrote:
> It seems to be working now - I had set the LADSPA_PATH to /usr/lib/ladspa where all the plugs - including csladspa and corresponding csd-file - reside, but that didnät work.
> When I tried from a fresh terminal without the path set, it worked.
> However, when I try to change the unique id number in the csladspa tag it is not reflected when running analyseplugin again, almost as if something is cached somewhere...
> I'll mess with it some more...
> 
> Thanks!
> 
> Regards,
> Anders
> 
> 
> On Fri, Nov 27, 2015 at 11:35 AM, Rory Walsh  wrote:
> I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure. 
> 
> On 27 November 2015 at 10:31, Victor Lazzarini  wrote:
> Not quite sure. The gain plugin loads here on OSX with Audacity. This the
> code
> 
>  
> Name=Gain Plugin
> Maker=John Doe
> UniqueID=1049
> Copyright=None
> ControlPort=Gain|gain
> Range=0|2
> 
> 
> 
> 
> 
> sr = 44100
> ksmps = 10
> nchnls = 1
> 
> instr 1
> 
> kGain   chnget "gain"
> 
> ain     in
> 
>         out     ain*kGain
> endin
> 
> 
> 
> 
> 
> i1 0 3600
> 
> 
> 
> 
> 
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 27 Nov 2015, at 09:56, Anders Genell  wrote:
> >
> > Dear list (and perhaps especially Victor and Rory) !
> > I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
> >
> > I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
> >
> > When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
> >
> > attempting to load plugin index: 0
> > PLUGIN NOT LOADED: probably missing csLADSPA section
> > no more csLADSPA plugins
> >
> > Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
> >
> > Regards,
> > Anders
> 
> 

Date2015-11-27 12:22
FromAnders Genell
SubjectRe: [Csnd-dev] csladspa
Well, the directory /usr/lib/ladspa i read (and execute) only for anyone but root, but the csd-files inside it have to be read/write it seems...

On Fri, Nov 27, 2015 at 1:19 PM, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
That does not seem to be the case on OSX. Plugins can be kept in read-only directories, it seems.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952

> On 27 Nov 2015, at 12:11, Anders Genell <anders.genell@GMAIL.COM> wrote:
>
> Ok, found it:
> The user owning the process opening the csladspa plugin (in the case me running analyseplugin) must have not only read access but also write access to the corresponding csd files, otherwise the plugin fails to load.
>
> Regards,
> Anders
>
>
> On Fri, Nov 27, 2015 at 12:58 PM, Anders Genell <anders.genell@gmail.com> wrote:
> It seems to be working now - I had set the LADSPA_PATH to /usr/lib/ladspa where all the plugs - including csladspa and corresponding csd-file - reside, but that didnät work.
> When I tried from a fresh terminal without the path set, it worked.
> However, when I try to change the unique id number in the csladspa tag it is not reflected when running analyseplugin again, almost as if something is cached somewhere...
> I'll mess with it some more...
>
> Thanks!
>
> Regards,
> Anders
>
>
> On Fri, Nov 27, 2015 at 11:35 AM, Rory Walsh <rorywalsh@ear.ie> wrote:
> I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure.
>
> On 27 November 2015 at 10:31, Victor Lazzarini <Victor.Lazzarini@nuim.ie> wrote:
> Not quite sure. The gain plugin loads here on OSX with Audacity. This the
> code
>
>  <csLADSPA>
> Name=Gain Plugin
> Maker=John Doe
> UniqueID=1049
> Copyright=None
> ControlPort=Gain|gain
> Range=0|2
> </csLADSPA>
>
> <CsoundSynthesizer>
>
> <CsInstruments>
> sr = 44100
> ksmps = 10
> nchnls = 1
>
> instr 1
>
> kGain   chnget "gain"
>
> ain     in
>
>         out     ain*kGain
> endin
>
> </CsInstruments>
>
> <CsScore>
>
> i1 0 3600
>
> </CsScore>
>
> </CsoundSynthesizer>
>
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
>
> > On 27 Nov 2015, at 09:56, Anders Genell <anders.genell@gmail.com> wrote:
> >
> > Dear list (and perhaps especially Victor and Rory) !
> > I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
> >
> > I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
> >
> > When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
> >
> > attempting to load plugin index: 0
> > PLUGIN NOT LOADED: probably missing csLADSPA section
> > no more csLADSPA plugins
> >
> > Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
> >
> > Regards,
> > Anders
>
>
>


Date2015-11-27 12:26
FromVictor Lazzarini
SubjectRe: [Csnd-dev] csladspa
Not the case here, though, it seems.
========================
Dr Victor Lazzarini
Dean of Arts, Celtic Studies and Philosophy,
Maynooth University,
Maynooth, Co Kildare, Ireland
Tel: 00 353 7086936
Fax: 00 353 1 7086952 

> On 27 Nov 2015, at 12:22, Anders Genell  wrote:
> 
> Well, the directory /usr/lib/ladspa i read (and execute) only for anyone but root, but the csd-files inside it have to be read/write it seems...
> 
> On Fri, Nov 27, 2015 at 1:19 PM, Victor Lazzarini  wrote:
> That does not seem to be the case on OSX. Plugins can be kept in read-only directories, it seems.
> ========================
> Dr Victor Lazzarini
> Dean of Arts, Celtic Studies and Philosophy,
> Maynooth University,
> Maynooth, Co Kildare, Ireland
> Tel: 00 353 7086936
> Fax: 00 353 1 7086952
> 
> > On 27 Nov 2015, at 12:11, Anders Genell  wrote:
> >
> > Ok, found it:
> > The user owning the process opening the csladspa plugin (in the case me running analyseplugin) must have not only read access but also write access to the corresponding csd files, otherwise the plugin fails to load.
> >
> > Regards,
> > Anders
> >
> >
> > On Fri, Nov 27, 2015 at 12:58 PM, Anders Genell  wrote:
> > It seems to be working now - I had set the LADSPA_PATH to /usr/lib/ladspa where all the plugs - including csladspa and corresponding csd-file - reside, but that didnät work.
> > When I tried from a fresh terminal without the path set, it worked.
> > However, when I try to change the unique id number in the csladspa tag it is not reflected when running analyseplugin again, almost as if something is cached somewhere...
> > I'll mess with it some more...
> >
> > Thanks!
> >
> > Regards,
> > Anders
> >
> >
> > On Fri, Nov 27, 2015 at 11:35 AM, Rory Walsh  wrote:
> > I recently tried this on Linux and Audacity without any issue. I can try again later just to make sure.
> >
> > On 27 November 2015 at 10:31, Victor Lazzarini  wrote:
> > Not quite sure. The gain plugin loads here on OSX with Audacity. This the
> > code
> >
> >  
> > Name=Gain Plugin
> > Maker=John Doe
> > UniqueID=1049
> > Copyright=None
> > ControlPort=Gain|gain
> > Range=0|2
> > 
> >
> > 
> >
> > 
> > sr = 44100
> > ksmps = 10
> > nchnls = 1
> >
> > instr 1
> >
> > kGain   chnget "gain"
> >
> > ain     in
> >
> >         out     ain*kGain
> > endin
> >
> > 
> >
> > 
> >
> > i1 0 3600
> >
> > 
> >
> > 
> >
> > ========================
> > Dr Victor Lazzarini
> > Dean of Arts, Celtic Studies and Philosophy,
> > Maynooth University,
> > Maynooth, Co Kildare, Ireland
> > Tel: 00 353 7086936
> > Fax: 00 353 1 7086952
> >
> > > On 27 Nov 2015, at 09:56, Anders Genell  wrote:
> > >
> > > Dear list (and perhaps especially Victor and Rory) !
> > > I just now tried to create the simple gain plugin from the examples in the csound journal article on csladspa.
> > >
> > > I copied the example csd text straight from the article into a text edito and saved it as a csd in the /usr/share/ladspa/ directory. I also copied csladspa.so from /usr/local/lib/csound/plugins-6.0/ to the same directrory.
> > >
> > > When running analyseplugin /usr/share/ladspa/csladspa.so I get the following message
> > >
> > > attempting to load plugin index: 0
> > > PLUGIN NOT LOADED: probably missing csLADSPA section
> > > no more csLADSPA plugins
> > >
> > > Am I doing something very wrong, or have there been changes to csound that has not been reflected in csladspa?
> > >
> > > Regards,
> > > Anders
> >
> >
> >

Date2015-11-27 12:28
FromAnders Genell
SubjectRe: [Csnd-dev] csladspa
Ok - a bit strange, but easy enough to handle now that I know :-)