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

Add mix and concat #623

Merged
merged 3 commits into from
Jan 3, 2023
Merged

Add mix and concat #623

merged 3 commits into from
Jan 3, 2023

Conversation

sammlapp
Copy link
Collaborator

@sammlapp sammlapp commented Jan 3, 2023

Adds Audio.apply_gain and audio.mix for audio object mixdown. Also:

  • renames Audio.time_to_samples to Audio._get_sample_index
  • renames Audio.silent to Audio.silence
  • modifies Audio.__init__ to allow a list of samples as an alternative to a numpy array

as well as np.array of samples
also correct behavior of Audio.samples.dtype and rename time_to_sample -> _get_sample_index. Also renames .silent() -> .silence()
rather than implementing a clamp function, now uses np.clip.

added tests for audio.mix()
@sammlapp sammlapp merged commit a191cf2 into develop Jan 3, 2023
@sammlapp sammlapp deleted the feat_569_audio branch January 3, 2023 21:28
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

Successfully merging this pull request may close these issues.

1 participant