Can I use MIDI Simple with require ''?

[email protected] ((Nikolai Onken)) Tue, 25 Dec 2001 14:47:29 +0100
Newsgroups perl.midi
Message-ID <000001c18d4a$b567ce60$c172fea9@development>
Hey,

first a merry christmas to everybody! I am new in this group and just
found this really interesting MIDI Module.
Anyway - I am using it on a webserver and the Problem is, that the
hosting company has not installed this Module.
I tried to change all use strings to a require and it works sometimes.
Anyway - is there a way to make it really work for servers which do not
have this module installed?
Here's a little piece of code that I modified and which does not work :)
Ohh - I forgot to say :) I am using Apache2 and WinXP.
Already at the require I didn't know how to change
use MIDI::Simple .68;
to a require Line - the .68 is confusing me.
The test.pl File:

#!/usr/bin/perl.exe
## Time-stamp: "1998-11-10 14:10:29 MST" ##

require 'Modules/Midi/MIDI/Simple.pm';
my $measure = 0; # changed by &counter
my @phrases =(
 [ Cs, F,  Ds, Gs_d1 ], [Cs,    Ds, F, Cs],
 [ F,  Cs, Ds, Gs_d1 ], [Gs_d1, Ds, F, Cs]
);
@bass_line = ( F,  Cs, Ds, Gs_d1, Gs_d1, Ds, F, Cs);
new_score;
# Some MIDI meta-information:
copyright_text_event("1998 Sean M. Burke");
text_event("Title: Westminster Round");

In simple.pm I changed it to that:

# Time-stamp: "2000-05-20 18:06:28 MDT"
require 5;
package MIDI::Simple;
require 'Modules/Midi/MIDI.pm';

and MIDI.pm I changed to:


# Time-stamp: "2000-08-21 15:50:20 MDT"
require 5;
package MIDI;
use strict;
use vars qw($Debug $VERSION %number2note %note2number %number2patch
	    %patch2number %notenum2percussion %percussion2notenum);
require 'Modules/Midi/MIDI/Opus.pm';
require 'Modules/Midi/MIDI/Track.pm';
require 'Modules/Midi/MIDI/Event.pm';
require 'Modules/Midi/MIDI/Score.pm';

With this changing I get following error message:
Undefined subroutine &main::copyright_text_event called at test.pl line
13.

That's all information I can provide. It would be really great I someone
can give me some ideas on how to solve that problem.
Thanks a lot,
Take care,

Nikolai Onken