Files
veejay/veejay-current/sendVIMS/parse-vims.pl
Niels Elburg 7718df3e1f added simple client for pure data to current branch
git-svn-id: svn://code.dyne.org/veejay/trunk@1240 eb8d1916-c9e9-0310-b8de-cf0c9472ead5
2008-11-30 21:58:39 +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;
}
}