Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 9 of 9

Thread: Effect: Remove Vocals, aka "Karaoke"

  1. #1
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,625

    Effect: Remove Vocals, aka "Karaoke"

    Hi,

    i wrote a new effect for the audio-lib. It removes the vocals from songs.
    For some songs it work good, for others not. For a good effect, the vocals must be in the mid of both stereo-channels.

    How does it work ?

    Simple. It inverts the right channel and adds it to the left (the result is one mono channel - ideally, the vocals are the same on l+r and subtracting the values gives 0...).

    Its the same way as the "Vocals Remover" in audacity works.

    I added a enable(bool) function which enables or disables the effect.
    That means, if you disable it, you can use the effect as a simple way to transform stereo to mono.

    Link with additional example-sketch:
    https://github.com/FrankBoesing/Teen...-Remove-Vocals

    @Paul: it's MIT licence ;-)

    Have fun,
    Frank.
    Last edited by Frank B; 02-23-2016 at 09:07 PM.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,625
    Last edited by Frank B; 02-23-2016 at 08:55 PM.

  3. #3

    Karaoke

    Hi Frank B!
    Great job, that's a clean implementation!

    This is what I was able to concoct some time back, not as elegant, but good enough to impress my kids!
    https://forum.pjrc.com/threads/24793...ll=1#post48468

    Cheers,
    Alfa66

  4. #4
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,625
    oops..i did'nt know that this existed

  5. #5
    Quote Originally Posted by Frank B View Post
    oops..i did'nt know that this existed
    Hey, no worries!
    It turns out that we have both come up with something that maybe is not really needed - check this: http://www.pjrc.com/teensy/gui/?info=AudioEffectMidSide

    Anyway (and off topic) what is the best way to display (oscillscope-like) the waveform in the audio buffer? Should I use queue?

    Thanks!

    PS Really appreciate your many contributions to the Audio Forum!

  6. #6
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,486
    Quote Originally Posted by alfa66 View Post
    Anyway (and off topic) what is the best way to display (oscillscope-like) the waveform in the audio buffer? Should I use queue?
    Yes, the queue object is the best way to get access to the raw audio samples.

  7. #7
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,486
    Maybe we should put that remove vocals example into the library, using the existing mid-side object. My understanding is vocal elimination usually also involves a lowpass and highpass filter, to keep the non-vocal frequencies and try to lessen any vocals that get through the first part.

    Anyone want to give that a try? Would love to include a really good vocal eliminator example with the library.

  8. #8
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,625
    @Paul, I don't know, and I'm not familar with the new USB Audio - is it possible to take USB-Input, apply the effect and send it back to the PC ?
    Would be a great example with mid-side, with the filters added. (But it works OK without filters, too - did you hear the example ? (Post #2)).
    Audacity uses no filters for this effect.
    Last edited by Frank B; 04-24-2016 at 09:44 PM.

  9. #9
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    24,486
    Quote Originally Posted by Frank B View Post
    @Paul, I don't know, and I'm not familar with the new USB Audio - is it possible to take USB-Input, apply the effect and send it back to the PC ?
    Yes.

    However, the USB objects don't implement update responsibility, so at least 1 regular input or output must also be present.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •