7 ms·
This seems really clever -- kudos! I'm curious how it actually works? At first I assumed you were comparing the vinyl track to the reference digital track fro
by crazygringo 2y ago
This seems really clever -- kudos!
I'm curious how it actually works?
At first I assumed you were comparing the vinyl track to the reference digital track from some streaming service and either analyzing the frequencies with FFT or the timing of peaks.
But I watched your demo video and you don't need to tell it anything about the song.
Which makes me think you're rather doing an FFT and simply trying to match how well the frequencies align to the well-tempered scale based on A 440 hZ.
Which then leads me to three questions:
1) Obviously this wouldn't work if you were playing a standup comedy album or something? Or the drum solo part of a song?
2) Are essentially all albums perfectly in tune with A 440 hZ? For example with classical music, I understand that 442 is also used, baroque is sometimes at 415, and 432 has been common as well? I don't know about pop but I can't help but wonder if some artists have intentionally chosen something other than 440 over the decades.
3) I assume this won't work if the turntable speed is off by more than 2.8%? Since the distance from A4 (440 hZ) to A-flat-4 (415.30 hZ) is a decrease of 5.6%, and so if the turntable is off by more than half of that you'd be trying to align to the wrong note?
- datpiff 2y ago> Are essentially all albums perfectly in tune with A 440 hZ? For example with classical music, I understand that 442 is also used, baroque is sometimes at 415, and 432 has been common as well? I don't know about pop but I can't help but wonder if some artists have intentionally chosen something other than 440 over the decades. No they are not all tuned to 440Hz. This is really evident if you play an instrument and want to play along with an album.
- iaresee 2y agoEvery. Rolling. Stones. Album.
- sambeau 2y agoMy first thought was that it is listening to the scratches rather than the music, but I guess they speed up as the record gets played and the arm moves inwards. So, my second guess is that it's listening to the pitch of the notes being played. Of course, old albums (especially punk albums) are probably tuned to whatever worked on the day—maybe a tuning fork, possibly a piano, maybe just to one of the instruments.
- svantana 2y agoUmm, no, scratches meet the needle once per revolution, regardless of the needle's position. So that would definitely be a possible method. But not all records have scratches, or they could be at an angle, which would give the wrong estimate. Also, actual sounds on the record could have scratch-like qualities.
- sambeau 2y ago>scratches meet the needle once per revolution, regardless of the needle's position I need to go away and think about that :D
- kevincox 2y agoThe needle doesn't pass at a constant "ground speed" everywhere on the record. On the outside the needle "travels faster" and in theory you have more detail. Near the middle the needle travels over the record surface slower.
- taylodl 2y agoThat's one of the reasons you'd put your best song on side A, song 1 and your 2nd best song on side B, song 1 - you got the most detail on the outside track. I remember seeing an interview with Led Zeppelin quite a few years back where they were claiming they knew they'd have a smash hit with Stairway to Heaven. Which was funny, because I remembered then seeing an interview several years before where they said it was a track they never thought was going to go anywhere. Which is it? It's track position - 4th track on the A side, i.e. the last track, tells you how important they thought it was. Which is to say, it was a "throwaway" track that made it big. It happens. The other odd thing about that album is "When the Levee Breaks" is considered to be the 2nd-most popular song off of the album and it too was the last track on the B side. What this tells me is the album's producer, one Jimmy Page, was out of touch with what Led Zeppelin fans liked most. Based off the sound of the next album, Houses of the Holy, I'd say Mr. Page got the message loud and clear.
- tibbon 2y agoEven pop albums aren't all 440hz. Def Leopard's Pyromania is about a 1/4 step off standard tuning, and there are many other examples of similar.
- kazinator 2y agoPeople sometimes can't even make backing tracks for improvisation that are in tune.
- padenot 2y agoShazamKit, from that fetch the BPM, BPM detection from the mic, compare ?
- stavros 2y agoIt works offline, though.
- pimlottc 2y agoDoes it? I don't see that claim being made anywhere. They do say that the audio is processed locally, but that does not preclude them from making an API call to find a signature match. > The audio stream is processed locally on your device and never recorded.
- rmccue 2y agoI just tested and a song that works fine normally failed as soon as I turned Airplane Mode on.
- dmd 2y ago"Grooved does not use any third party library or API, just the built-in components provided by Apple."
- dmicah 2y agoShazamKit is not third party, it is provided by Apple. Their website states "The audio stream is processed locally on your device and never recorded.", though this could refer to the audio statistics being collected locally, I assume ShazamKit still contacts an Apple API to get the classification.
- derefr 2y agoYou can extract pitch information and compare it to a set of quantized reference pitches as an instrument tuning app does, sure. But you can also extract BPM info and compare that to a set of quantized reference BPMs that anyone would ever bother to use. And also, since you’re getting multiple pitches from multiple instruments in a time series, if you can isolate particular instruments, you can calculate the key the melody and/or harmony of the song is in. Then, you could either come up with a heuristic, or just train a Bayesian filter, using datasets of “real” and “erroneous” (key, BPM) pairs.
- fwip 2y agoAre there really "standard" BPM? As far as I know, most music production is just "whatever tempo the band feels like playing." I haven't been in a recording studio, though, so maybe a use of a metronome is more common there?
- derefr 2y agoI'm not in the music industry in any capacity myself, so take everything I say here with a grain of salt. And more specifically, to address your question, I don't know enough about the recording part of music production to say whether most performers get a click-track played into their monitors or not. (I know that I've seen at least some performers using click-tracks for studio recording; but I'm not sure if that's only given if they ask for it, or if it's the studio pushing it on performer to make their jobs easier. I imagine click-tracks would always be used for multi-performer async studio recording — as otherwise you'd have performances that have conflicting BPM. But maybe not for single-performer pop/EDM songs, where it's just a vocalist laying down a track, and then everything else is done in software?) The evidence I can cite, is from the outcome of the production process: I have a strong recollection from back in the late 2000s, of using some music library auto-tagging software that would, among other things, analyze the BPM of a song to populate the BPM ID3 field of MP3s. For at least the music I loaded into it, BPM did appear to be (mostly) quantized to nice, round numbers. (And it wasn't just the software being coarse-grained in its estimates; it did give weird numbers for unusually-produced songs.) I do know that for any modern "produced" music (i.e. music not recorded as a live ensemble session), even if the performers did lay down their tracks at a weird BPM, the audio engineer is still going to be throwing their performances as separate tracks into a DAW. And one of the things you tell a DAW, when creating a project, is the BPM — which creates a grid of bars that tracks/samples want to snap onto. Even if you're not trimming or speed-adjusting performances so as to snap the ends of each track/sample to the DAW's grid, you're still likely snapping the beginning of each track/sample to the grid — you'd have to fight the DAW to not. Which means that, by default, if the song is "produced" enough — tracks cut up and slid around, reused, etc — then the output of this moving-and-snapping process will be a song that reads as the project's BPM. Separately, I know that people learning to play an instrument for classical/orchestra music, often practice their instrument using a metronome (at least at the early levels.) Which perhaps gives at least some of those people the speed equivalent of perfect pitch — the ability to "lock into" certain BPMs; and to know if other performers are running fast/slow vs the "expected" BPM of the song. I would assume that even for rock performers with no classical training, the early-level "textbook" practice for drummers and rhythm guitarists also involves playing with a metronome. It might be a lot more tenable to play a rock song at e.g. 117BPM, if everyone's just playing on the down-beat of the drums; but these performers still don't want to have a sudden, unintended shift in their BPM due to not being able to do a drum fill / complex chord change quickly enough; nor to start rushing as the song amps up, forcing everyone else into increasingly-stressful playing. In doing drills with a metronome to keep their BPM constant, these performers are likely implicitly learning to lock into certain specific BPMs as well. My impression is that the one case where this probably isn't true, is in live jazz performance, and more specifically in live jazz improv "jam sessions." In those, the percussion (if any) isn't driving the performance, but rather is just another component of the harmony, following the (often wavering!) BPM of the lead performer. (Is this why the classic meme of classically-trained performers not getting along with jazz artists? Because the jazz artists won't stay on beat, and this irritates some perfect-pitch-like "out of tune" feeling in the classical musician?)
- LeoPanthera 2y agoIt probably doesn't need to do an FFT, it just need to be able to count beats and have a database of BPM values for popular songs. You could use something like AcoustID/Chromaprint to identify the song you're playing. A very simple idea, as all the best ideas are.
- jerf 2y agoI would expect: 1. Detect wow: https://www.youtube.com/watch?v=kCwRdrFtJuE https://www.youtube.com/watch?v=kCwRdrFtJuE 2. Time wow. 3. Round to nearest record speed and report delta. I'd also expect that armed with a normal FFT algorithm that Ye Olde Bash On Algorithme Until Functionale would be fairly likely to work with reasonable effort, without having to get too "signal processor-y" on the FFT output.
- mlyle 2y agoWow is wavering speed. A constant turntable speed error (that this helps you calibrate out) doesn't produce wow.
- jerf 2y agoAll turntables have wow. Wow is determined by the rotational speed. So if you measure 33.2326 wow oscillations per minute, you can know the turn table is a touch too fast. Wow would not be used to measure the error, it would be used to measure the absolute speed. Getting the error from that point is trivial.
- crazygringo 2y agoI don't think you could use FFT or similar to reliably measure wow to anywhere near the accuracy necessary to produce a reliable amount of correction from just a few seconds of an arbitrary LP. If you were using an LP with a known pure 440 hZ sine wave that you could lock onto exactly, then sure. That's kind of how frequency modulation -- FM radio -- works. But I really don't see how you could do this with songs that are full of frequencies coming in and out and changing all over the place. If you analyzed the full side of the LP, you could probably get enough signal out of that. But trying to measure the precise wavelength of wow when you're only getting a few wavelengths' worth, from a complex signal? I don't see how.
- deleted 2y ago[deleted]
- 2y ago
- okatbest 2y agoThank you so much! I spoke about why I'm not flat out saying how it works in another comment but let me answer your questions: 1) It actually might! Worth a shot I guess, but I don't have any comedy albums to try it out. I was able to get drum solos working fine 2) Was answered better by somebody else 3) I was able to get it to detect speed issues up to 9% off, beyond that it just stops working completely. Though that was in controlled environment so YMMV. If you see the sample vid I posted above, my player is roughly 4% off which is a lot but I genuinely believe a whole lot of people wouldn't notice that
- opello 2y agoThis is pretty cool, thanks for sharing it. Is this the aforementioned comment about _why_ you aren't being specific about the implementation? > Eventually I decided to see if I could find a novel, more user-friendly approach that doesn't require you to put a thousand-dollars phone on a fast moving spinning thingie, and that's how Grooved came to be. If it isn't then I couldn't find it. I was very curious about that too (both how it worked, and then the incentive for secrecy--totally your prerogative but again curious given the veiled-to-me explanation) but didn't seem to find such a comment. Protecting novelty seems like the implied reason.
- okatbest 2y agoHere's the comment: https://news.ycombinator.com/item?id=40502383 https://news.ycombinator.com/item?id=40502383 Essentially I don't want to have somebody swoop in, replicate the same thing, be better at marketing, and charge money for it. I'm both protecting users because they shouldn't be charged for something that is free, but also protecting my ego because I spent time and effort and as far as I can tell I'm the first one to build an app that works this way and it sucks when somebody takes a community thing and paywalls it. Once the Android version is out and everything blows over I might consider making the apps open-source so that anyone can see and learn how it works, then potentially make derivative works.
- opello 2y ago
- mkesper 2y agoIf you play an orchestra with an organ the organ sets the reference point. 440 Hz is a relatively young standard, many organs were built before that.