10 ms·
Show HN: YouTube Guitar Tab Parser
I created a simple CLI that turns a YouTube guitar-lesson video into a PDF of the guitar tab.
There are services that transcribe music from Youtube videos into tabs, but they never work well enough for me. Instead I'm taking a simpler approach.
It downloads the video, samples frames, uses Claude vision to locate the tab region, crops every frame to that region, de-duplicates the crops by the bar number printed on each line of the score, and stitches the distinct tab lines vertically into a PDF.
I didn't test it on a lot of different Youtube videos yet, so problem will arise for sure.
- cortexosmain 2mo ago[flagged]
- kiaansaraiya 2mo agoi've actually been looking for something like this for so long. all the online transcribers make me pay and i just wanna learn how play songs from a video. this is a great idea!
- neogenix 2mo agoI had exactly the same issue. I'm learning to play guitar and don't want to pay 8,50 per tab. I simply want to learn something new and discard it. I noticed I'm learning faster if it's printed then on-screen.
- rc5150 2mo agolearn by ear! It's free and you don't need youtube!
- sublinear 2mo agoThis is very true. Tabs can help in niche cases where the precision really matters, but most tabs are not that good unless written by the original artist (rare). If I had spent my first year learning the instrument properly, I wouldn't have wasted the next decade after that fumbling around so much.
- RyanOD 2mo agoThis is absolutely true...but it takes a LOT of time. Fortunately, I first picked up a guitar when I was 13. I can't imagine getting started with any instrument as an adult. Actually, I'm trying to improve my piano playing right now and it's nearly impossible.
- neogenix 2mo agoI'd love to. I'm 40+, never played an instrument in my life or did anything with music. I tried several approaches to improve my ability to recognize chords by ear or even individual notes, but it is incredibly hard for me to the point it feels impossible even for a couple of notes.
- kiaansaraiya 2mo agoexactly! it takes forever just to get a phrase down... much more with a whole song.
- adrianh 2mo agoI'm curious how it works for videos that contain moving tab (as in, the playhead stays in the center while the tab moves behind it). Seems like that sort of tab wouldn't work with this approach...? Kudos from one of the Soundslice guys — we've been making web-based tab and sheet music stuff since 2012. :)
- neogenix 2mo agoIt wouldn't work for that type of video. As far as I've seen almost all tutorial videos on Youtube have a fixed tab bar though. I'm using it only for learning guitar (i'm a beginner).
- dboreham 2mo agoNot to rain on the parade but my (er...considerable) experience has been that the videos you end up watching to figure out non-trivial songs do not have tabs at all. The teacher generally describes finger positions one finger at a time visually, or will describe fingering as "it's a D chord shifted up to the 7th fret" etc. E.g Uncle Stu -- no tabs, 12-Foot Chain guy has a sketchy tab once in a while, Shutup and Play guy -- no tabs, Jon MacLennan, Justin, Marty (cool Marty) puts up pencil tabs here and there, other Marty (hat guy) does not, etc. I haven't heard Rick Beato play in a long time but I don't remember him putting up tabs either. Heck I'm going to say it: tabs actually aren't the medium you want anyway. After getting up and running on guitar, players know what all the chords look like so only need the names with perhaps the fret position as a guide to the voicing.
- mschulkind 2mo agoI don't have an answer, but wanted to say that I started using Soundslice about 9 months ago and I absolutely love it. It does exactly the part of transcribing that I want done for me and nothing more, which is basically none of it except the boring stuff.
- adrianh 2mo agoHey, great to hear! Thanks for taking the time to write that. :) Keep transcribing and playing music!
- worldsavior 2mo agoI don't know how exactly Claude vision works but isn't just using good old computer vision much cheaper?
- Diogenesian 2mo agoAlmost all those people charge for the PDFs. They know the PDF is more useful, that's why the video is free. I don't think your software is (or should be) illegal. But it's a form of theft, and incredibly unethical. These people worked very hard on these tabs and don't make much money. You (and kiaansaraiya and neogenix) should be ashamed of yourselves. You don't deserve your guitar if you steal tabs from working musicians.
- breaker-kind 2mo agocounterargument -- these people are making money off of transcribing other people's parts, with no profits shared with the composers.
- Diogenesian 2mo agoThat's a bad counterargument. Transcribing is transformative. Copying a video into a PDF is not.
- almostjazz 2mo agoI'm not a lawyer but based on some googling it seems like the overwhelming consensus is that selling transcribed sheet music or tabs if you do not have permission from the copyright holder of the song is illegal. https://www.thatgreatcomposer.com/blog/is-it-legal-to-transcribe-and-sell-sheet-music https://www.thatgreatcomposer.com/blog/is-it-legal-to-transc... https://law.stackexchange.com/questions/96352/dual-question-are-music-transcription-services-legal-how-to-legally-share-sell https://law.stackexchange.com/questions/96352/dual-question-... https://www.drumforum.org/threads/what-is-the-legal-basis-for-the-sale-of-transcriptions.204971/?utm_source=google&utm_medium=organic https://www.drumforum.org/threads/what-is-the-legal-basis-fo...
- akramachamarei 2mo agoAs an occasional amateur music transcriber I'd say the goal of transcription is not transformation. If I'm transforming, I've failed :) Inevitably the transcriber makes decisions in how to deviate from the reference recording, be it omission of instruments, microchanges in tempo and pitch or articulation. In theory a good transcription is an exact graphical representation of the abstract sonic intent of the artist. Of course, if you are combining voices, changing chords, it approaches an arrangement which is a more creative endeavor.
- dieselgate 2mo agoAre there technical hurdles around just programmatically generating a tab from any song or audio recording itself? This is interesting and all but seems to use computer vision rather than audio processing?
- simonok 2mo agoUsing computer vision to read the existing tab from the page would be more efficient and precise than trying to use audio processing to isolate individual notes from a single instrument in a potentially busy audio track. The existing tabs also nail down which string and fret is used for each note, which would be a difficult task for audio processing because there are multiple combinations of string and fret for any given note. For example, an open G can also be played on the 5th fret of the D string, or the 10th fret of the A string, or the 15th fret of the E string.
- dieselgate 2mo agoI understand but would assume it could be solved by chord/positional groupings or similar. Manual/human tab transcription need to infer positional assumptions anyway; some artists will play the same songs different ways too ala Bob Weir > the existing tab from the page would be more efficient and precise But what about songs that aren't made into a YT video?
- gcy 2mo agoAs far as I know, there still isn’t a tool that can reliably produce usable transcriptions out of the box, although the results for solo piano can be reasonably good. A lack of high-quality labeled training data, especially for instruments other than piano, is probably part of the reason. But the problem is also more complicated than it might initially seem: you have to handle polyphony, overlapping harmonics, timing and articulation. And in the case of guitar tabs, it's even more complicated as one needs to determine what tuning is used (if not standard), which string and fret produced each note. Or separately rearrange the tab.
- lokar 2mo agoReddit r/guitar gets a lot of questions about AI generated tabs that are unplayable (the fingering is just crazy). You need to both work out the chords and also decide on fingerings a human could perform. Seems possible, but more then just audio processing
- rc5150 2mo agoGive me a tool that scrapes tabs from Ultimate-Guitar and I'll be a happy camper :)
- smalltorch 2mo agoThis is one i could get behind. I mean, all the tabs are crowdsourced anyway so why can you throw up the paywall only after all the tabs are made. I only need the clean tab and transposing would be nice. TerminalTabs anyone?
- bstsb 2mo agoas far as i remember only the Pro tabs are paywalled (the ones created professionally)? the community tabs are all freely available on web, and carry little restrictions on mobile
- smalltorch 2mo agoExactly why I can get behind a scrape here. They are already freely accessable. I don't like having to switch to desktop mode to transpose though. They want you to get the app to do it on mobile which is enough of a reason to make a special program to do exactly what I want. Also, scraping chord charts is in a different catagory from tabs. I can't even actually read tabs but with a chord chart you can get close enough to noodle around and emulate. Good enough for my needs.
- thorncorona 2mo ago> Exactly why I can get behind a scrape here. They are already freely accessable. I think in most cases it is the effort that is the gate. Ex. you can DDOS most public facing services simply by spamming AI.
- mrln 2mo agoLet me introduce you to freetar! It currently has issues due to cloudflare blocking, however I have already created a pull request that fixes this [0]. Given the code is pretty straightforward, turning it into a scraper shouldn't be too hard of a task! Here's a working version: https://freetar.sievers.dev https://freetar.sievers.dev [0] https://github.com/kmille/freetar/pull/90 https://github.com/kmille/freetar/pull/90
- XCSme 2mo agoI was excited to use it, as I really wanted something like this, then I realized it needs AI/Claude (?) That sounds like it can get quite costly. Probably there are ways to do it without AI, I would rather manually annotate the tab area with a visual editor.
- cwt137 2mo agoIt would be nice to have a link to an example YT video to see what exactly the AI is trying to locate on the screen.
- neogenix 2mo agoHere's an example [0] I'll add it to the readme as well together with some example output. 0: https://youtu.be/WgU5tDGC-Vc?is=zUHp66NVgDZnCNo5 https://youtu.be/WgU5tDGC-Vc?is=zUHp66NVgDZnCNo5
- ohadkr 2mo ago[dead]
- shermantanktop 2mo agoI learned this one: https://m.youtube.com/watch?v=07N4VVSmYLU&list=RD07N4VVSmYLU&start_radio=1&pp=ygUgcmV0dXJuIHRvIG1lIHVubGVhc2ggdGhlIGFyY2hlcnOgBwE%3D&ra=m https://m.youtube.com/watch?v=07N4VVSmYLU&list=RD07N4VVSmYLU... …exactly the way you described. Pause, screenshot, adjust color/contrast, assemble in a pdf. Super annoying.
- tzs 2mo agoLearning music from recordings (video or just audio) would be so much easy if modern video and audio playback software would bring back the AB repeat function that used to be common on CD players, DVD players, LaserDisc players, and MP3 players. Why the heck did this largely go away?
- shermantanktop 2mo agoCheck out Amazing SlowDowner. And AnyTune Pro. Plus lots of yt player websites that allow for looping.
- bonoboTP 2mo agoVLC has it. And Youtube looper wrapper sites too.
- adrianh 2mo agoCheck out Soundslice for exactly this. It's great audio/video playback (with slowdown, looping, etc.), with an integrated tab and sheet music editor. So you can write down what you've figured out, and it remains synced with the original audio.
- gste 2mo agoSo I'm a bass guitarist, and I've made some of these exact videos. I link to a Patreon in my videos that lets you pay a membership to download the full tabs in PDFs. Here I was thinking AI might soon replace my painstakingly slow tab transcription efforts altogether. But I never thought about someone just ripping it from the video... Let me know if it works ;-) https://www.youtube.com/watch?v=c2i-Lwoe2Ow https://www.youtube.com/watch?v=c2i-Lwoe2Ow
- neogenix 2mo agoDoesn't work perfect yet [1], probably needs some finetuning to get the bounding boxes correctly. Sorry for ripping it! 1: https://filebin.net/ylchm28lpbciqc5u https://filebin.net/ylchm28lpbciqc5u
- deckar01 2mo agoI’ve been working on a tool to help me discover chord inversions and find fingerings I can comfortably play. https://music.shademaps.com/ https://music.shademaps.com/
- tzs 2mo agoThat kind of tool is indeed helpful. I wrote a kind of similar command line version that does a subset of what your's does in C around 1985 for my Mac, running in the terminal-like window my compiler's runtime provided for running command line programs. Your's looks nicer :-) Here's the output of mine for a C chord. C: C E G <3>|-----|-----|-<5>-|-----|-----|-----|-----|-<1>-|-----|-----|-----|-<3>-| |-<1>-|-----|-----|-----|-<3>-|-----|-----|-<5>-|-----|-----|-----|-----| <5>|-----|-----|-----|-----|-<1>-|-----|-----|-----|-<3>-|-----|-----|-<5>-| |-----|-<3>-|-----|-----|-<5>-|-----|-----|-----|-----|-<1>-|-----|-----| |-----|-----|-<1>-|-----|-----|-----|-<3>-|-----|-----|-<5>-|-----|-----| <3>|-----|-----|-<5>-|-----|-----|-----|-----|-<1>-|-----|-----|-----|-<3>-| and here it is if I toss in the narrow switch: C: C E G 3 |---|---|-5-|---|---|---|---|-1-|---|---|---|-3-|---|---|-5-| |-1-|---|---|---|-3-|---|---|-5-|---|---|---|---|-1-|---|---| 5 |---|---|---|---|-1-|---|---|---|-3-|---|---|-5-|---|---|---| |---|-3-|---|---|-5-|---|---|---|---|-1-|---|---|---|-3-|---| |---|---|-1-|---|---|---|-3-|---|---|-5-|---|---|---|---|-1-| 3 |---|---|-5-|---|---|---|---|-1-|---|---|---|-3-|---|---|-5-| Here's the source [1], minimally updated to compile with current C compilers and to not depend on any quirks of the runtime of whatever C development system I was using on my Mac back then (Megamax C, I think). I was pretty shaky on chord theory back then so not sure I'd trust it for fancy chords. I have no idea why the heck I made the D tuning flag tune both the 1st and 6th strings down to D. I'm 100% certain every piece of sheet music I had that called for for D tuning only wanted the 6th string tuned down. [1] https://pastebin.com/HKyKWHip https://pastebin.com/HKyKWHip
- blaufast 2mo agoThank you!
- deleted 2mo ago[deleted]
- omoikane 2mo agoThis is an interesting tool and maybe it works for the songs you need, but for classical guitar songs where printed scores are generally available, I would rather just buy those from some reputable publisher (e.g. Zen-On or Doremi). It has happened quite a few times where I compare tabs in youtube videos with printed scores, and the youtube version turned out to be unique arrangements. It's the same with PDFs on certain sites, especially those that accept user contributed content. I would rather pay money to get printed scores than to find out later that I have been practicing the wrong thing.
- nickstinemates 2mo agoBrings me back to learning guitar using a version of TabIt[1] that I hacked and then ultimately paid for. They had an incredible community where people uploaded tabs of your favorite songs. Then you could use TabIt to learn how to play. 1: https://www.tabit.net/ https://www.tabit.net/
- readme 2mo agoi love it ai can't shred ai will never get chicks i will use YouTube Guitar Tab Parser to shred and get chicks
- larodi 2mo agoClaude vision seems like a massively overpriced VLM choice given Gemini has great VLM tower since 2.4 and my gut feeling is this is a task that local Qwen’s would handle easily. Disclaimer: my daily workflows include millions of Claude and Gemini tokens spent on dev and video vision intelligence.
- neogenix 2mo agoThis was what I had available, but adding support for other models/providers should be trivial. Adding support for local models is probably a bit harder and I don't have any experience with it. I doubt anything good enough will run on my macbook m1 though.
- 3mre0s 2mo ago[flagged]
- BrunkenClaas 2mo agoI used to play a the guitar a lot back in the day. Would have loved it. Though with 240p videos back then it was hard to make out anything. :D
- Discodarman 2mo agoPretty cool
- starvar2 2mo agoDoes anyone know if something like this exists for piano?