Last change
on this file since 6059:9c443ca769e3 was
6012:133f1f9baba1,
checked in by phi, 10 years ago
|
added small tool to export DMX channels as csv stream (mostly usesful for plotting as part of debugging filters)
|
|
File size:
276 bytes
|
Rev | Line | |
---|
[6012] | 1 | #!/usr/bin/perl |
---|
| 2 | |
---|
| 3 | use strict; |
---|
| 4 | use warnings; |
---|
| 5 | |
---|
| 6 | open(my $in, '-|', 'roarmon', '--light') or die $!; |
---|
| 7 | |
---|
| 8 | my $index = 0; |
---|
| 9 | my $data; |
---|
| 10 | |
---|
| 11 | $\ = "\n"; |
---|
| 12 | $, = ','; |
---|
| 13 | $| = 1; |
---|
| 14 | |
---|
| 15 | while (read($in, $data, 512) == 512) { |
---|
| 16 | print $index, map{ord substr $data, int, 1}(@ARGV); |
---|
| 17 | $index++; |
---|
| 18 | } |
---|
| 19 | |
---|
| 20 | close($in); |
---|
| 21 | |
---|
| 22 | #ll |
---|
Note: See
TracBrowser
for help on using the repository browser.