OCRing Music from YouTube with Common Lisp: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 67: Line 67:
I included Lisp in the title so I'll give you what you came for and sing its praises a little ;)
I included Lisp in the title so I'll give you what you came for and sing its praises a little ;)


To do image handling, I used [https://github.com/ruricolist/lisp-magick-wand lisp-magick-wand] which is a thin wrapper around ImageMagick. One thing I like about Lisp is that you can easily wrap native code (even [https://github.com/rpav/cl-autowrap automatically]) and then play around with it in the REPL. There's lots of really useful C/Rust/whatever libraries out there, but the edit/compile/run cycle just makes iterating so clunky and slow. Being able to quickly load up the code and start messing around with it is phenomenal for productivity. To make it even better, I found that SLIME comes with a contrib called `slime-media` which lets you display images in the REPL. I quickly wrote up a wrapper function:
To do image handling, I used [https://github.com/ruricolist/lisp-magick-wand lisp-magick-wand] which is a thin wrapper around ImageMagick. One thing I like about Lisp is that you can easily wrap native code (even [https://github.com/rpav/cl-autowrap automatically]) and then play around with it in the REPL. There's lots of really useful C/Rust/whatever libraries out there, but the traditional edit/compile/run cycle just makes iterating so clunky and slow. Being able to quickly load up the code and start messing around with it is phenomenal for productivity. To make it even better, I found that SLIME comes with a contrib called `slime-media` which lets you display images in the REPL. I quickly wrote up a wrapper function:


<syntaxhighlight lang="lisp">
<syntaxhighlight lang="lisp">

Navigation menu