Files
veejay/sendVIMS/parse-vims.pl
Niels Elburg d1093220cf update sendVIMS for pd to match veeja 0.9.8
git-svn-id: svn://code.dyne.org/veejay/trunk@679 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2006-10-25 15:07:35 +00:00

18 lines
406 B
Perl
Executable File

#!/usr/bin/env perl
# feed this script with vims.h to generate selectors.h
print "// selector.h\n";
print "// generated from vims.h\n";
while (<>){
if (m/VIMS_(\S+)\s*=\s*(\d+)\s*,/) {
$id = $2; # numeric id
$tag = lc $1; # convert to lower case
$tag =~ s/_/\./g; # pd-ify
$nid = int( $id );
print "SELECTOR(\"" . $tag . "\", " . $id . ");\n" if $nid <= 400 or $nid >= 500;
}
}