MIDI::SimpleMIDI::Simple is a procedural/OOP interface for MIDI composition. | |
Download |
MIDI::Simple Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Sean M. Burke
- Publisher web site:
- http://search.cpan.org/~sburke/
MIDI::Simple Tags
MIDI::Simple Description
MIDI::Simple is a procedural/OOP interface for MIDI composition. MIDI::Simple is a procedural/OOP interface for MIDI composition.SYNOPSIS use MIDI::Simple; new_score; text_event 'http://www.ely.anglican.org/parishes/camgsm/bells/chimes.html'; text_event 'Lord through this hour/ be Thou our guide'; text_event 'so, by Thy power/ no foot shall slide'; set_tempo 500000; # 1 qn => .5 seconds (500,000 microseconds) patch_change 1, 8; # Patch 8 = Celesta noop c1, f, o5; # Setup # Now play n qn, Cs; n F; n Ds; n hn, Gs_d1; n qn, Cs; n Ds; n F; n hn, Cs; n qn, F; n Cs; n Ds; n hn, Gs_d1; n qn, Gs_d1; n Ds; n F; n hn, Cs; write_score 'westmister_chimes.mid';This module sits on top of all the MIDI modules -- notably MIDI::Score (so you should skim MIDI::Score) -- and is meant to serve as a basic interface to them, for composition. By composition, I mean composing anew; you can use this module to add to or modify existing MIDI files, but that functionality is to be considered a bit experimental.This module provides two related but distinct bits of functionality: 1) a mini-language (implemented as procedures that can double as methods) for composing by adding notes to a score structure; and 2) simple functions for reading and writing scores, specifically the scores you make with the composition language.The fact that this module's interface is both procedural and object-oriented makes it a definite two-headed beast. The parts of the guts of the source code are not for the faint of heart. Requirements: · Perl
MIDI::Simple Related Software