Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is there an option to read into a mono? #53

Closed
EMCP opened this issue Jan 19, 2018 · 2 comments
Closed

is there an option to read into a mono? #53

EMCP opened this issue Jan 19, 2018 · 2 comments

Comments

@EMCP
Copy link

EMCP commented Jan 19, 2018

I am working on porting a project that just analyzes the mono singles of audio samples..

Not sure how it was done in Python, but now trying to just get a working copy of my workflow into Julialang.. is there a quick way to indicate I want to read the wav into a mono?

Thanks for this library, I haven't found a lot of audio processing other than this library.

@dancasimiro
Copy link
Owner

Do you want the library to read one of the channels or mix all the channels together?

@EMCP
Copy link
Author

EMCP commented Jan 19, 2018

I am attempting to measure the difference between an audio sample.. and another.

I think the mix would be the first choice since there could be panning being performed... For reference this is the project I'm porting.. I have a personal version in python3

https://github.com/kylemcdonald/AudioNotebooks

The particular call they perform is using FFMPEG.. I'd guess they'd mix

https://github.com/kylemcdonald/AudioNotebooks/blob/master/Collect%20Samples.ipynb

audio, _ = ffmpeg_load_audio(fn, sr, mono=True)

which then calls

https://github.com/kylemcdonald/AudioNotebooks/blob/master/utils/ffmpeg_load_audio.py

reading FFMPEG's docs doesn't really specify what happens if you pass -ac _ that is less than input channels

https://ffmpeg.org/ffmpeg.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants