Neural Networks for Rap Writing

Hey Sup Forums. you guys might like this
tl;dr i'm a high school student (yes i'm 18) and i wrote a neural network (computer program that emulates a small brain/group of neurons) and trained it on a shit ton of ice cube and some other artists. I wrote some functions that let it detect rhyme patterns and number of syllables, and then i got it to use the lines i fed it to write a new rap. it writes rap songs. I hooked it up to a speech synthesizer and a beat, and adjusted the speed so it raps on the beat.
basically, i can push a button and it instantly composes a new rap song and delivers it - all i have to do is fill up a text document with lyrics of my choosing.

Here's what it cranked out (in about 0.3 seconds) when i fed it ice cube:

soundcloud.com/user-858260650-791809969/deep-rap-001

What should i do next? If you give me 3 or 4 songs and a beat i'll upload the result to soundcloud.

Other urls found in this thread:

genius.com/Lil-b-im-god-lyrics
genius.com/Clams-casino-32-levels-lyrics
genius.com/Lil-b-februarys-confession-lyrics
genius.com/Lil-b-motivation-lyrics
youtube.com/watch?v=mZLnz0lqs4E
twitter.com/NSFWRedditVideo

lyrics:

'Cause you let a Jew break up my crew.
Then you have some explaining to do
Word to brother Skip, boy I had a good day
It's a case of divide-and-conquer,
Is a brotha that'll smother yo' mother
Couple summers later I got paper
More punks I smoke, yo, my rep gets bigger
Callin' me Arnold, but you Been-a-dick;
And Eazy's dick, is smellin' like MC Ren's shit.
Attitude legit cause I'm tearin up shit
Know them boys wanna see me broke down and shit
'Cause you let a Jew break up my crew.
Then you have some explaining to do
'Cause you can't be the Nigga for Life crew
With a white Jew tellin' you what to do.
Tryin' to fuck me, but I'd rather fuck you.
But I got a whip for ya Toby;
Me you can go toe to toe, no maybe
Fuckin' MC Ren, Dr. Dre, and Yella.
Now let's play big bank take little bank.
My destiny is to write four bars
Callin' me Arnold, but you Been-a-dick;
Let you on the scene to back up the Verse Team.
House nigga gotta run and hide,
'Cause you let a Jew break up my crew.
Then you have some explaining to do
But I got a whip for ya Toby;
Me you can go toe to toe, no maybe
More punks I smoke, yo, my rep gets bigger
'Cause you know I'm the one that flown,
We wet them up like a canteen
Bummed out and shit, stressed out and shit
Kelly brought me green tea ice cream
But I got a whip for ya Toby;
Me you can go t+?
oe to toe, no maybe
Free time is costing me more than it seems
It ain't my fault, one nigga got smart,
It ain't my fault, one nigga got smart,
It ain't my fault, one nigga got smart.

try feeding it some mc ride verses

this is bad, it lacks the creative wordplay and cohesive flow of a good rap verse

but I'd be lying if I said that this isn't better than Future's discog

bumping for interest

lmao

on another note -- i had the idea that maybe i'll only do it with dead rappers.
like i'll have a bandcamp where it'll be a collection of songs -- one for each dead artist.
for example; maybe it'll have a biggie smalls song with a biggie smalls beat, and it'll train only on biggie smalls lyrics.
thoughts on this? it'd be like a cyborg resurrection of biggie

sounds shit but its still much better than dg desu

good job son. current output is better than meme grips. you should put this on your college applications, especially if you're planning on studying CS.

run it on some Type O Negative lyrics pls

>'Cause you let a Jew break up my crew.
>Then you have some explaining to do
>'Cause you can't be the Nigga for Life crew
>With a white Jew tellin' you what to do.

My fucking sides

should i put it on my github if i'm white and it has the n word? should i try and get a more politically correct output first?

well your source code certainly doesn't say "nigga" so you should definitely put that on github. in terms of showing its output to people you're trying to impress, i would eliminate or at least censor it just to be super safe.

in terms of future work, i think a more in-depth cadence analysis system would be pretty sweet. as in implementing an API to break words into syllables, learning a bunch of cadences from your training set and spitting out output to match those cadences. it would make your raps sound a lot more human (at least from a technical standpoint) and make your final sound file sound more impressive.

shit, i just read your OP and you pretty much did that. do you have any code that deals explicitly with rhyme structure?

You should put it up. It's a cool program and silly things like that shouldn't limit you

Definitely put it up. This will look very impressive on your uni resume (/sci/ fag here). Plus, this is just pretty cool.

i do -- i have an api that tells me a list of words that rhyme, so if i enter "crack", it gives me a list of "wack", "lack", "back", "quack" - my program looks at the last few letters of the words it rhymes with (in this case "ack" or "ck"), and then if other words get this result when the same thing is done to them, it concludes that the two words rhyme. To feed the neural network, it has a huge list like this:
"ga", "ar", "it", "ck"
and since "crack" seems to rhyme with "ck" words, sentences ending in crack are assigned a 4 (since "ck" is the 4th element of the rhyming list).

i kinda wrote this system as i was going along, and i wrote the whole thing last night/this morning in my first period so i know it could be a lot better. any uh, suggestions on how i could make it better?

by 'in my first period' i meant my first class in high school this morning, i'm not menstruating.

This is incredible. Feed it el-p and see what the fuck it comes up with

obviously that approach runs into issues, e.g. "book" and "kook". surely there's an API out there with a function bool rhymes(w1, w2).

feed it some deep as fuck Lil B lyrics
genius.com/Lil-b-im-god-lyrics
genius.com/Clams-casino-32-levels-lyrics
genius.com/Lil-b-februarys-confession-lyrics
genius.com/Lil-b-motivation-lyrics

and use this beat
youtube.com/watch?v=mZLnz0lqs4E

How experienced progammer are you, how hard is it hard to make something like this and did you have some specific material to learn from when you were doing this?

I'm myself doing my first year of university with information technology as my major atm and mt goal is to get with some AI shit in the future (maybe Machine Learning And Data Mining masters degree program or something).
So far I've only done 2 basic programming courses where we made a simple game and register that could be used for some social club and its members.
I'm just wondering if this is something I could try to learn.

i'm 100% self taught -- didn't take any classes or anything, i did it all in python with pybrain, and i'm still in high school. you can easily do it, pal - good luck.

might add -- i wrote it entirely from scratch - didn't go off of anyone elses work and i wrote it after school in one day.