source: roaraudio/tools/dmx2csv @ 6012:133f1f9baba1

Last change on this file since 6012:133f1f9baba1 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)

  • Property exe set to *
File size: 276 bytes
Line 
1#!/usr/bin/perl
2
3use strict;
4use warnings;
5
6open(my $in, '-|', 'roarmon', '--light') or die $!;
7
8my $index = 0;
9my $data;
10
11$\ = "\n";
12$, = ',';
13$| = 1;
14
15while (read($in, $data, 512) == 512) {
16 print $index, map{ord substr $data, int, 1}(@ARGV);
17 $index++;
18}
19
20close($in);
21
22#ll
Note: See TracBrowser for help on using the repository browser.