is this legal & fair use?

Katie asked: A middle school math teacher is focusing on the relationship between music and math and decided to have his class create web pages with music. He gave them a choice of recording their own digital midi music or copying it from the Net and then inserting it into the web pages before [...]