Recent

Author Topic: LADSPA for FP. Anyone interested?  (Read 6014 times)

HomePlaneR

  • New Member
  • *
  • Posts: 34
LADSPA for FP. Anyone interested?
« on: January 31, 2013, 08:38:27 pm »
Hi.

For my project I developed a LADSPA hosting for FP. I did not find an existing solution for it, so I decided to contribute a little bit by publishing the source code here.

LADSPA (Linux Audio Developers Simple Plugin API) is a standard for handling audio plugins.
http://en.wikipedia.org/wiki/LADSPA
http://www.ladspa.org/

In other words, if you have a thing that sounds and you want to embed some effects like flanger, chorus, reverberation, etc. and you do not really want to deal with signal processing math writing it yourself, let's use LADSPA.

I test the thing on Windows with some plugin DLLs provided with LMMS.

I'm going to port LV2 and\or DSSI in some future.

Regards,
« Last Edit: January 31, 2013, 09:13:10 pm by HomePlaneR »

Fred vS

  • Hero Member
  • *****
  • Posts: 3148
    • StrumPract is the musicians best friend
Re: LADSPA for FP. Anyone interested?
« Reply #1 on: January 31, 2013, 08:54:52 pm »
Whaow, seem very, very, very interesting.  ;)

Could you explain how it works ?  For example, can i use it with SndFile or PortAudio ?
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3148
    • StrumPract is the musicians best friend
Re: LADSPA for FP. Anyone interested?
« Reply #2 on: January 31, 2013, 08:57:06 pm »
And is it  cross-platform ?
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

Fred vS

  • Hero Member
  • *****
  • Posts: 3148
    • StrumPract is the musicians best friend
Re: LADSPA for FP. Anyone interested?
« Reply #3 on: January 31, 2013, 09:11:05 pm »
Sorry, still me  :-[  Cannot open your 7.z file (do not have that converter)
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

HomePlaneR

  • New Member
  • *
  • Posts: 34
Re: LADSPA for FP. Anyone interested?
« Reply #4 on: January 31, 2013, 09:22:41 pm »
Fred vS,

The code I wrote should be cross platform as there is nothing windows dependent.

You can use it with anything dealing with signal as a sequence of samples.

Please read ladspa.h original file explaining all the process of plugin instantiation. Note that LADSPA uses float representation of any value (for sample amplitudes as well). In short, you should
 - instantiate the plugin,
 - allocate and connect plugin ports,
 - activate the plugin,
 - translate your signal into sequence of TLADSPA_Data,
 - run it for each filling of input ports. After each call of run(...) the processed signal will be formed on output ports.

I've uploaded the code in zip archive.

Fred vS

  • Hero Member
  • *****
  • Posts: 3148
    • StrumPract is the musicians best friend
Re: LADSPA for FP. Anyone interested?
« Reply #5 on: January 31, 2013, 09:30:50 pm »
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

HomePlaneR

  • New Member
  • *
  • Posts: 34
Re: LADSPA for FP. Anyone interested?
« Reply #6 on: January 31, 2013, 09:48:16 pm »
Fred vS,

Well, I'm not sure that I have time to do something particular for you. Sorry. If you need to invoke LADSPA in your library as DSP (what is a really good idea, I think), I can help you a little bit with that. I propose to continue this discussion by PM.

Regards,

Fred vS

  • Hero Member
  • *****
  • Posts: 3148
    • StrumPract is the musicians best friend
Re: LADSPA for FP. Anyone interested?
« Reply #7 on: January 31, 2013, 09:58:17 pm »
Quote
I propose to continue this discussion by PM.

With pleasure ( dont be afraid, i do not want to eat you  ;) )
I use Lazarus 2.2.0 32/64 and FPC 3.2.2 32/64 on Debian 11 64 bit, Windows 10, Windows 7 32/64, Windows XP 32,  FreeBSD 64.
Widgetset: fpGUI, MSEgui, Win32, GTK2, Qt.

https://github.com/fredvs
https://gitlab.com/fredvs
https://codeberg.org/fredvs

derek.john.evans

  • Guest
Re: LADSPA for FP. Anyone interested?
« Reply #8 on: September 14, 2015, 10:14:47 pm »
Just some questions:

How does something like this not get lost?
Is there some kinda ratification process for a unit to be included in FreePascal? Who does that?

A FreePascal interface to LADSPA effects does sound important to me, but, since it hasn't found its way into FreePascal, why not?

The worst thing todo to this interface, would be to tie it to a bigger audio library.

Anyway, if the plan is to leave this as a forum download, then Im cool with that.

commanderz

  • New Member
  • *
  • Posts: 11
Re: LADSPA for FP. Anyone interested?
« Reply #9 on: June 09, 2023, 05:41:40 pm »
this library also has an interface that allows you to use the LADSPA interface to interact with libraries:
https://github.com/andrewd207/PascalAudio

 

TinyPortal © 2005-2018