Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    MIDI 0.81

    Download button

    No screenshots available
    Downloads: 363  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sean M. Burke | More programs
    Perl Artistic License / FREE
    May 12th, 2007, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    MIDI description

    MIDI is a Perl module that can read, compose, modify, and write MIDI files.

    MIDI is a Perl module that can read, compose, modify, and write MIDI files.

    SYNOPSIS

    use MIDI;
    use strict;
    use warnings;
    my @events = (
    ['text_event',0, 'MORE COWBELL'],
    ['set_tempo', 0, 450_000], # 1qn = .45 seconds
    );

    for (1 .. 20) {
    push @events,
    ['note_on' , 90, 9, 56, 127],
    ['note_off', 6, 9, 56, 127],
    ;
    }
    foreach my $delay (reverse(1..96)) {
    push @events,
    ['note_on' , 0, 9, 56, 127],
    ['note_off', $delay, 9, 56, 127],
    ;
    }

    my $cowbell_track = MIDI::Track->new({ 'events' => @events });
    my $opus = MIDI::Opus->new(
    { 'format' => 0, 'ticks' => 96, 'tracks' => [ $cowbell_track ] } );
    $opus->write_to_file( 'cowbell.mid' );

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    read MIDI files | compose MIDI files | modify MIDI files | MIDI | compose | modify

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM