PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of De Rosa Luigi  >  MIDI Composer  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example Class
Class: MIDI Composer
Compose songs and save them in MIDI format
Author: By
Last change:
Date: 5 years ago
Size: 506 bytes
 

Contents

Class file image Download
<?php
include "midicomposer.class.php";

$obj = new MIDIcomposer();


   
$obj->addnote("47",2,60); #B4
   
$obj->addnote("47",2,60); #B4
   
$obj->addnote("47",3,60); #B4
   
   
$obj->addnote("47", 3, 0);
   
   
$obj->addnote("47",2,60); #B4
   
$obj->addnote("47",2,60); #B4
   
$obj->addnote("47",3,60); #B4

   
$obj->addnote("47", 3, 0);

   
   
$obj->addnote("47",2,60); #B4
   
$obj->addnote("3E",2,60); #D4
   
$obj->addnote("43",2,60); #G4
   
$obj->addnote("45",2,60); #A4

   
$obj->addnote("47",3,60); #B4



$obj->save("test.mid");

?>