Reputation: 99
how get the artist of a mp3 file using lisp
(let ((in (open "test.mp3" :direction
:input
:element-type '(unsigned-byte 8))))
(when in
(loop for line = (read-byte 'utf-8 in)
while line do (format t "~a" line ))
(close in)))
Upvotes: 2
Views: 1063
Reputation: 363807
A complete ID3 (MP3 tag) parser is described in the book Practical Common Lisp, chapter 25.
Upvotes: 5