Its set up to mimic the code for getTempo, which uses the same syntax. I'm a javascript novice though, so I could be wrong. But it does return the correct values.