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

Multi-track support? #432

Open
JackMF opened this issue Dec 20, 2021 · 5 comments
Open

Multi-track support? #432

JackMF opened this issue Dec 20, 2021 · 5 comments

Comments

@JackMF
Copy link

JackMF commented Dec 20, 2021

I would like to draw waveforms of multiple wave forms - much like the view and control that you would see in a DAW.
Can peak.js support such a feature? I understand there is "multichannel" support but I am not sure if this would cover this use-case

@chrisn
Copy link
Member

chrisn commented Dec 20, 2021

The multi-channel support is for channels within a single audio file (e.g., left and right stereo channels), not really for separate audio tracks. How are you loading the multiple waveforms - do you have multiple AudioBuffers, for example? It may be possible to use multiple Peaks instances to implement multiple waveform views. Each Peaks instance would have its own AudioBuffer, and each instance would use the same single common external Player object, which would coordinate playback and seeking, etc. Just an idea, I haven't tried it so I don't know how well it would work.

@JackMF
Copy link
Author

JackMF commented Dec 20, 2021

Hello @chrisn - many thanks for your reply.

Yes I have multiple AudioBuffers which I turn into audio source nodes and playback simultaneously.

Each Peaks instance would have its own AudioBuffer, and each instance would use the same single common external Player object, which would coordinate playback and seeking, etc. Just an idea, I haven't tried it so I don't know how well it would work.

I wll try this and report back. Thank you for suggesting an approach!

@nuboa
Copy link

nuboa commented Feb 14, 2022

Hi @JackMF, i need multi-track support too for my project. Did it work? Any update on this?

@cubancodepath
Copy link

Hello @chrisn - many thanks for your reply.

Yes I have multiple AudioBuffers which I turn into audio source nodes and playback simultaneously.

Each Peaks instance would have its own AudioBuffer, and each instance would use the same single common external Player object, which would coordinate playback and seeking, etc. Just an idea, I haven't tried it so I don't know how well it would work.

I wll try this and report back. Thank you for suggesting an approach!

Hi man, Did it work for you? If not could you please share which approach did you take?

@jawwad-dev
Copy link

Hey Guys! Have you implemented the multi-track? I need to implement it in my project as well. If so, can you please share your approach?

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

No branches or pull requests

5 participants