Location: PHPKode > scripts > MIDI Composer > example.php
<?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");

?>
Return current item: MIDI Composer