# How to read each stereo channel separately

**URL:** <https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395>\
**Category:** Libraries\
**Created:** [July 5, 2020, 5:57am UTC](https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395 "2020-07-05T05:57:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![spade](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/spade/32/2037_2.png) [@spade](https://discourse.processing.org/u/spade)\
**Post date:** [July 5, 2020, 5:57am UTC](https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395/1 "2020-07-05T05:57:41Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![kfrajer](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kfrajer/32/196_2.png) [@kfrajer](https://discourse.processing.org/u/kfrajer)\
**Post date:** [July 5, 2020, 5:46pm UTC](https://discourse.processing.org/t/how-to-read-each-stereo-channel-separately/22395/2 "2020-07-05T17:46:01Z")

</div>

If you are using Processing Java, have a look at the [Minim](https://processing.org/reference/libraries/) library. Here is the [AudioPlayer](http://code.compartmental.net/minim/audioplayer_class_audioplayer.html) 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
