SMS::Ringtone::RTTTL::MIDI

Convert RTTTL strings to MIDI format.
Download

SMS::Ringtone::RTTTL::MIDI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Craig Manley
  • Publisher web site:
  • http://search.cpan.org/~cmanley/SMS-Ringtone-RTTTL-Parser-0.07/lib/SMS/Ringtone/RTTTL/Parser.pm

SMS::Ringtone::RTTTL::MIDI Tags


SMS::Ringtone::RTTTL::MIDI Description

Convert RTTTL strings to MIDI format. SMS::Ringtone::RTTTL::MIDI is a Perl module to convert RTTTL strings to MIDI format.SYNOPSIS use SMS::Ringtone::RTTTL::Parser; use SMS::Ringtone::RTTTL::MIDI qw(rtttl_to_midi); my $rtttl = 'Flntstn:d=4,o=5,b=200:g#,c#,8p,c#6,8a#,g#,c#,' . '8p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2f,2p,g#,c#,8p,' . 'c#6,8a#,g#,c#,8p,g#,8f#,8f,8f,8f#,8g#,c#,d#,2c#'; my $p = new SMS::Ringtone::RTTTL::Parser($rtttl); # Check for errors if ($p->has_errors()) { print "The following RTTTL errors were found: "; foreach (@{$p->get_errors()}) { print "$_ "; } exit; } # Convert RTTTL to MIDI my $midi = rtttl_to_midi($p); # Write MIDI to file open(F); binmode(F); print F $midi; close(F);SMS::Ringtone::RTTTL::MIDI contains a subroutine for converting a RTTTL song into MIDI format. See SMS::Ringtone::RTTTL::Parser. Requirements: · Perl


SMS::Ringtone::RTTTL::MIDI Related Software