While asking this question on music at Christianity Stack Exchange, I had simply assumed that Job 38 described music as more primordial than matter, but then I realized I wasn't sure whether the phrase "foundations of the earth" in Job 38:4 referred only to the earth or not. If so, then I do not know if the Bible supports the idea that music is more primordial than matter. (It may be, but one wouldn't know if the Bible says so.)
Does Job 38 support only the idea that music precedes the creation of our planet, and not suffice to support the idea that it precedes the creation of matter? If only the former, is there any other Biblical justification to support the possibility that music precedes matter?