[linux-audio-dev] TAP-plugins reverb presets (was: TAP-plugins news)

Matthias Nagorni mana at suse.de
Thu Mar 4 11:27:42 UTC 2004


On Wed, 3 Mar 2004, Tom Szilagyi wrote:

> > * Fixed yet another crashing bug in TAP Reverberator (which appears
> >   to be introduced upon fixing the previous crashing bug).
> >   Hopefully no more crashing in my favorite plugin :)

This plugin looks very interesting. I am considering to modify the LADSPA 
host module of AlsaModularSynth so that the presets would appear in a 
combobox selector. However it's even more complicated than I thougt:
If I print out the parameter name, I get: 

<LADSPA parameter name>
Presets

AfterBurn (Short) :0   1: AfterBurn (Long) 
  Drum Chamber :2   3: Garage               
Garage (Bright) :4   5: Gymnasium      
          Gymnasium (Bright) :6   7: Gymnasium (Bright) - HD  
    Hall (Small) :8   9: Hall (Medium)
         Hall (Large) :10   11: Hall (Large) - HD 
    Plate (Small) :12   13: Plate (Medium)
        Plate (Large) :14   15: Plate (Large) - HD
                 Pulse Chamber :16   17: Pulse Chamber (Reverse)
                            Resonator (96 ms) :18   19: Resonator (152 ms)                           
Resonator (208 ms) :20   21: Room (Small)           
Room (Medium) :22   23: Room (Large)     
Room (Large) - HD :24   25: Slap Chamber        
      Slap Chamber - HD :26   27: Slap Chamber (Bright) 
Slap Chamber (Bright) - HD :28   29: Smooth Hall (Small)             
Smooth Hall (Medium) :30   31: Smooth Hall (Large)     
Smooth Hall (Large) - HD :32   33: Vocal Plate                       
 Vocal Plate - HD :34   35: Warble Chamber 
        Warehouse :36   37: Warehouse - HD 
</LADSPA parameter name>

If the format would be such that each preset would follow a number of the 
form "n:", it would be much simpler that the alternating form where for even 
numbers the number follows the preset name. 

I would like to implement an algorithm for LADSPA plugins that would look if

a) The parameter name is INTEGER
b) Looks if it contains ("0:" and "1:") or ("0=" and "1=")

Given a) and b) it would split the name string, counting a variable 
"count" and searching subsequently for substrings ("%d:", count). A 
combobox will then replace the integer slider for those parameters.

Matthias

-- 
Dr. Matthias Nagorni
SuSE Linux AG
Maxfeldstr. 5             phone: +49 911 74053375
D - 90409 Nuernberg       fax  : +49 911 74053483




More information about the Linux-audio-dev mailing list