This is a very funky melody--it seems so simple it is almost a throwaway, but it has the roots of so many things in it--also, it seems to be in a Phrygian mode, but probably is better described as being a gapped scale of some type--