Re: Sort (at least LV2) plugins by type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



GUI version ;p

#!/usr/bin/env bash

selection=$(zenity --list --hide-column=3 --print-column=ALL --separator="|" --title="LV2 Plugins" --column=Type --column=Name --column=URI < \
    <(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}')
    ICN=$(lv2info "$plugin" | grep 'Class:' | grep -v http | awk '{print $2;exit}')
    echo ${CLASS}
    echo ${NAME#*:}
    echo ${plugin}
done))

rmpipe=${selection#*|}

URI=${selection##*|}
Type=${selection%%|*}
Name=${rmpipe%%|*}

# echo -e "type\t$Type URI\t$URI NAME\t$Name"

[[ $? ]] && jalv.gtkmm ${URI} || echo "Bye!"


On 03/12/2016 01:43 AM, Philip Yassin wrote:
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@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxx
http://lists.linuxaudio.org/listinfo/linux-audio-user

[Index of Archives]     [Linux Sound]     [ALSA Users]     [Pulse Audio]     [ALSA Devel]     [Sox Users]     [Linux Media]     [Kernel]     [Photo Sharing]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux