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

Adding Audio Clips (importing audio files) #123

Open
nlahmi opened this issue Mar 29, 2024 · 5 comments
Open

Adding Audio Clips (importing audio files) #123

nlahmi opened this issue Mar 29, 2024 · 5 comments

Comments

@nlahmi
Copy link

nlahmi commented Mar 29, 2024

Hi, I wanted to use this project (actually pylive, which uses it) to bootstrap new recording sessions, and automatically include backing tracks from existing audio files.
From what I've seen in the documentation it doesn't seem to be possible, unless I'm missing something.
Is it even technically possible?

I don't know much about OSC but I have some Python background, willing to help with implementation if needed.

@ideoforms
Copy link
Owner

Hi @nlahmi, could you say more about the steps you'd be looking to accomplish? Would this be something like the below?

  1. create a new audio track
  2. load one or more audio clips onto that track
  3. position those clips with the arrangement view

Currently, (1) is straightforward; (2) is not yet implemented as it requires implementation of the Live Browser, which is a significant and complex piece of work; (3) is not yet implemented, should be possible by adding a setter that modifies the Track arrangement_clips property, although this is labelled as const within the API docs so would need some investigation.

@nlahmi
Copy link
Author

nlahmi commented Mar 30, 2024

Thanks for the quick response :)
Yes that's exactly it! Though for my specific use case, I can do with the audio clip being the only one on the track, positioned at the very beginning.
Is the Browser implementation being worked on? If so, how much of it is done?
And what kind of knowlege would be required to contribute to it (or this project in general)?

@tobek
Copy link

tobek commented Jan 23, 2025

Putting my vote in for this feature. Specifically I'm working on something that generates audio with AI (via our own external API which then downloads a .wav to the filesystem), and then it would need to be able to add that audio clip to a track. This is possible in Max for Live via calling create_audio_clip on the clip slot and passing a file path.

I do see that AbletonOSC can create a clip and has a readonly property file_path on clips - could that be made writeable?

@ideoforms
Copy link
Owner

Unfortunately not @tobek, it's read-only because that is how it is implemented in the internal API.
To actually implement loading audio files into a Live set will require a completely new Browser class, which I've not yet begun and is a fairly large piece of work.

@tobek
Copy link

tobek commented Feb 4, 2025

Got it, bummer, well godspeed and much appreciated if you decide to work on that!

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

3 participants