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

Downloading single Tracks #264

Open
robinduerhager opened this issue Feb 11, 2025 · 2 comments
Open

Downloading single Tracks #264

robinduerhager opened this issue Feb 11, 2025 · 2 comments

Comments

@robinduerhager
Copy link

robinduerhager commented Feb 11, 2025

Hi,

thank you for providing such a great library :).
Since you can Download the whole Song already, i was wondering if it would be possible to download single tracks (e.g. for providing Stems to other musicians). For example, it would be nice if we could use the startaudiorendering Event, and submit a track number to get back a single audiotrack as a wav file that can be send to someone else.

@fan-droide
Copy link

As a temporary solution, you can always mute the tracks that you don't want to be exported (or "solo" those which you are interested in) and then the resulting download will be the stem ... not sure if this answer your question, maybe I didn't get the point correctly, sorry

@robinduerhager
Copy link
Author

robinduerhager commented Feb 21, 2025

As a temporary solution, you can always mute the tracks that you don't want to be exported (or "solo" those which you are interested in) and then the resulting download will be the stem ... not sure if this answer your question, maybe I didn't get the point correctly, sorry

Thanks for the reply :) i tried this, though i'm more interested in saving the audiobuffers as files in some S3 bucket or so, to persist the recording session. I think i can grab the tracks audiobuffers through playlist.tracks[i].buffer or so, but it would be nice to get this directly as a ready to grab blob Object in the correct codec. Else i think i would have to transform the audiobuffer back into a ogg / opus codec blob object and idk how that works haha 😅.

Muting the tracks won't result in an adjustment of the timeline, so the muted tracks will add silence to the end of the rendered WAV file :/.

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

2 participants