Re: [LAU] Sort (at least LV2) plugins by type

From: Philip Yassin <philcm@email-addr-hidden>
Date: Sat Mar 12 2016 - 03:43:49 EET

Final version

for plugin in $(lv2ls); do
     NAME=$(lv2info "$plugin" | grep 'Name:' | grep -v http | awk
'//{print $0;exit}')
     CLASS=$(lv2info "$plugin" | grep 'Class:' | grep -v http | awk
'//{print $2;exit}')
     [[ "${CLASS}" = "Instrument" ]] && tput setaf 1 || tput setaf 3
     printf "%-20s" ${CLASS}
     tput setaf 2 ; echo ${NAME#*:}
done

Yes, it's slow as a late november day because I had to run lv2info twice
because I'm a bad shell programmer ; notice how just the URI can be
sometimes quite uninformative :p

pY

On 03/11/2016 10:31 PM, Philip Yassin wrote:
> Ha! That final one did it, thank all of you guys!
>
> (...)
> http://calf.sourceforge.net/plugins/eq8 Equaliser
> http://calf.sourceforge.net/plugins/mono Utility
> http://code.google.com/p/lkjb-dc12/ Delay
> http://distrho.sf.net/plugins/3BandEQ Equaliser
> http://distrho.sf.net/plugins/3BandSplitter Equaliser
> *http://distrho.sf.net/plugins/Kars Instrument*
> http://distrho.sf.net/plugins/MVerb Reverb
> http://distrho.sf.net/plugins/MaBitcrush Plugin
> http://distrho.sf.net/plugins/MaFreeverb Reverb
> http://distrho.sf.net/plugins/MaGigaverb Reverb
> http://distrho.sf.net/plugins/MaPitchshift Pitch
> *http://distrho.sf.net/plugins/Nekobi Instrument*
> http://distrho.sf.net/plugins/PingPongPan Spatial
> http://distrho.sf.net/plugins/ProM Analyser
> http://distrho.sf.net/plugins/glBars Analyser
> http://drobilla.net/plugins/fomp/autowah Filter
> http://drobilla.net/plugins/fomp/cs_chorus1 Chorus
> http://drobilla.net/plugins/fomp/cs_chorus2 Chorus
> http://drobilla.net/plugins/fomp/cs_phaser1 Phaser
> (...)
>
> On 03/11/2016 09:59 PM, Filipe Coelho wrote:
>> On 11.03.2016 22:42, Philip Yassin wrote:
>>> But... I seem to only get "Plugin" and "" are the former
>>> instruments, and the latter FX?
>>
>> On Debian you need to install lv2-dev, which contains the lv2 class
>> definitions.
>>
>>
>>
>> _______________________________________________
>> Linux-audio-user mailing list
>> Linux-audio-user@email-addr-hidden
>> http://lists.linuxaudio.org/listinfo/linux-audio-user
>
> --
> Philippe "xaccrocheur" Yassin
> http://manyrecords.com
> http://bitbucket.org/xaccrocheur /https://github.com/xaccrocheur
>
>
> On 03/11/2016 09:59 PM, Filipe Coelho wrote:
>> On 11.03.2016 22:42, Philip Yassin wrote:
>>> But... I seem to only get "Plugin" and "" are the former
>>> instruments, and the latter FX?
>>
>> On Debian you need to install lv2-dev, which contains the lv2 class
>> definitions.
>>
>>
>>
>> _______________________________________________
>> Linux-audio-user mailing list
>> Linux-audio-user@email-addr-hidden
>> http://lists.linuxaudio.org/listinfo/linux-audio-user
>
> --
> Philippe "xaccrocheur" Yassin
> http://manyrecords.com
> http://bitbucket.org/xaccrocheur /https://github.com/xaccrocheur
>
>
> _______________________________________________
> Linux-audio-user mailing list
> Linux-audio-user@email-addr-hidden
> http://lists.linuxaudio.org/listinfo/linux-audio-user

-- 
Philippe "xaccrocheur" Yassin
http://manyrecords.com
http://bitbucket.org/xaccrocheur / https://github.com/xaccrocheur

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Mar 12 04:15:02 2016

This archive was generated by hypermail 2.1.8 : Sat Mar 12 2016 - 04:15:02 EET