I like Rap, I tried be a beatmaker at 16, in 2012 I started programming. In this article I mix Rap with programming. Let's start.
My favorite rap producers:
- 9th Wonder.
- Apollo Brown.
- DJ Premier.
All these artists create boom bap beats, so they beats share a common type of music. A interface can represent this:
// Author: Raphael da Silva interface BoomBapProducer { public function makeABeat(); }
All producers can implement the same interface:
// Author: Raphael da Silva class 9thWonder implements BoomBapProducer { public function makeABeat() { echo 'Classic soul samples.'; } } class ApolloBrown implements BoomBapProducer { public function makeABeat() { echo 'Hard drums and soul sample.'; } } class DJPremier implements BoomBapProducer { public function makeABeat() { echo 'Classic NY east coast style.'; } }
I don't speak english (I try write to share ideas), please be nice with me and forgive my mistakes.
Top comments (0)