1

I have to develop an iPhone app which is a DJ app. It includes everything right from playing song to scratching the audio.

Is there a way I can scratch the audio? Are there any good frameworks which you can suggest? Which are best possible options?

I have referred to this links below but didn't help my cause

http://blog.glowinteractive.com/2011/01/vinyl-scratch-emulation-on-iphone/

Scratching Audio

halfer
  • 19,824
  • 17
  • 99
  • 186
Parth Bhatt
  • 19,381
  • 28
  • 133
  • 216
  • have you solved scratching? do you mind sharing some code? – Juan Boero Sep 15 '16 at 02:38
  • @JuanPabloBoeroAlvarez Finally after trying everything, I used [BASS Audio Library](http://www.un4seen.com). – Parth Bhatt Sep 19 '16 at 04:08
  • @JuanPabloBoeroAlvarez I don't mind sharing sample code. But I will have to develop that again (which may take some time) because I don't have the source code as back then I was working with a client of my employer. – Parth Bhatt Sep 19 '16 at 04:10
  • ok, do you remember the steps? that could help too, for example, you choosed a file, then buffered it, then.... – Juan Boero Sep 19 '16 at 05:58

1 Answers1

3

I'd start with reading Kjetil Falkenberg Hansen's recent PhD thesis: The Acoustics and Performance of DJ Scratching to get to grips with the nature of the problem. This should provide you with some effective parameters for your program.

I imagine you'll want to buffer a certain amount of the audio to be 'scratched' and simply advance through said buffer at varying speeds both forward and backwards.

Consider this link (and similar ones) for how to build a buffer.

If the iphone API doesn't provide a useful way to advance through the buffer at different speeds you might consider making your own temporary buffer, then using this to populate the buffer used by the iPhone based on some interpolating function.

BTW - the first link you posted looks very useful indeed! What's it missing?

Community
  • 1
  • 1
Speedy
  • 476
  • 2
  • 13