How to read each stereo channel separately

Hi, I’m starting a project in which I would like to read one channel of a stereo track (from an external file) and analyze it and mute it, while simultaneously outputting the other channel.

The idea is to have the click on one channel to count the beats, while playing the song.

Which libraries should I try for this? Should I generate two separate files for this? I think keeping it in channels from the same file helps synchronize the two tracks.

Thank you.

If you are using Processing Java, have a look at the Minim library. Here is the AudioPlayer where you have a hook for the left, the right channels as well as the mix values. There is an example that would be a good start for your project.

Kf

1 Like