develooper Front page | perl.midi | Postings from June 2005

MIDI OO interface?

Thread Next
From:
Christian Renz
Date:
June 4, 2005 16:10
Subject:
MIDI OO interface?
Message ID:
20050604195552.GA38304@web42.com
Hi all,

I currently do a lot of Perl MIDI stuff for a university project. I
work mostly on modifying and transitioning between small snippets of
MIDI (MIDI::Morph will do that satisfactorily one day). For that, I
need quite a lot of helper functions. I'll probably update my
MIDI::Tools soon with stuff like append_scores(), quantize_pitch() (to
scales), quantize_durations() etc.

This has led me to the following question: Is it planned to have an
object-oriented version of the MIDI modules? I'd like to do stuff like

my $m = MIDI::Score->new(...)
$m->Append(...);
$n = $m->Copy();
$m->Quantize(...);
$e = $m->AsEvents(); # $e is now an MIDI::Events object

and so on. I think that could have the potential of providing quite a
nice interface. I'd definitely be willing to help out with an OO
wrapper for the existing modules.

Greetings,
   Christian

-- 
crenz@web42.com - http://www.web42.com/crenz/ - http://www.web42.com/

"I'm reminded of the day my daughter came in, looked over my shoulder
at some Perl 4 code, and said, 'What is that, swearing?'"  -- Larry Wall

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About