It's not stealing if you have permission to use the sample. Just get it cleared; don't be a coward by being too scared to ask for permission to use specific clips from other people's music. Also, my statement was to learn the algorithms that make a song. In other words, learn the fundamentals of making music. Producers should be humble enough to realize that music lessons help regardless of your experience level. Especially if you're new at this, having mentors to teach you about making music benefits trimideously. Or, you could be a know it all with no training. Chance is that your music will suck though.
You don't want Al Gore Rythm You need to model it more on "Clinton" He wasn't bad on Sax and was always playing "AHH Monika"
I think you're a little confused over What an Algorithm is?
It is a mathermatical question that its complexity effects the conclusion.
What you are talking about is methodology or in laymans terms "How to do it!
You don't use algorithms to create music. Unless you have a Dx7 or a kurzwiel!
In that case it is a mathermatical manipulation of a digital wave each time the signal is transformed using a particular set of
sums ( algorithm) the sound is effected in a predicable way.
The plan was that you can make the sound you want but the reality is seldom the the case!
If Youtube are using an algorithm to detect copywrite protected material it depends on how it actually detects it?
The most obvious way would be to scan coywritten pieces of material using an alogorithm that will apply some sort of digital code to that material and file it into a data base.
So that instead of sound there is effectively a "Numerical String" or several for every song on the database.
This could be something like the result of a FFT ( Fast Fourier transform) for example
That is basically turning sound into 1s and 0s (in reality it will more likely be hexadecimal values). in a particulat order that when converted back represents that material.
The best way to describe an FFT is if a sample is a 2d snapshop an FFT is a 3D Model
If they then scan everything that is uploaded against the data base to see if any of the digital code matches.
It will see how much of the string matches the criteria might be say 16 character sequence either forward or reversed
So your 2 second break beat gives a code of 3fc245d43ffe321 and it finds 123eff34d542cf3 on the data base it will assume you're up to no good it will reverse your clip convert it and compare and if it matches they will ban it.
This isn't too dissimilar to how a duplicate file finder for your computer works.
If you get one of those change the name of the file the resolution and cut a bit off the end the software will still flag it as a duplicate it is actally digitally analyzing the data within the file. The way it does it is its Algorithm
Computers are very good at doing this and the Info from something like an FFT will
be number crunched like a mathermatical problem it could do it pretty quickly.
The other way of course could be AI there are already apps where you play music and it will detect it and identify the music for you. A more advanced version able to detect smaller samples would work pretty well.