News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Timothy Boronczyk:
Composing Music with PHP
May 29, 2013 @ 10:56:37

Timothy Boronczyk has a recent post to his site with an interesting thing to use PHP for - composing music.

I'm not an expert on probability theory, artificial intelligence and machine learning, and even my Music 201 class from years ago has been long forgotten. But if you'll indulge me for the next 10 minutes, I think you'll find that even just a little knowledge can yield impressive results if creatively woven together into an application. I'd like to share with you how PHP can be taught to compose music.

He shows examples of some basic melodies generated by PHP (not the prettiest) and talks about how he "taught" PHP to get better at it. He transcribed other music into Scientific Pitch Notation and used a Markov process to create a "next note selection" method based on the notes around it. He includes the code for his "robot composer" class with its "train" and "compose" methods and and example of its usage.

0 comments voice your opinion now!
compose music scientific pitch notation markov process train compose

Link: http://zaemis.blogspot.com/2013/05/composing-music-with-php.html

blog comments powered by Disqus

Similar Posts

Ben Ramsey's Blog: Build PHP 5.4 on CentOS 6.2

Qandidate.com Blog: How we manage our development process at Qandidate.com

DevShed: Handling File Data with the Facade Pattern in PHP 5

Zend: Zend Reveals What Music Will Keep Developers Productive (and Happy) This Holiday

O\'Reilly: Improve Your Build Process with Ant


Community Events





Don't see your event here?
Let us know!


framework zendserver update introduction series deployment tips podcast install laravel language library symfony community api package release list opinion interview

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework