feat: Implement advanced audio editing, WSOLA time stretching & project I/O#48
Merged
feat: Implement advanced audio editing, WSOLA time stretching & project I/O#48
Conversation
…ct I/O This commit introduces a new, powerful audio editing and mixing module, alongside significant enhancements to the core audio engine. Features: * New `Composition`, `Track`, and `AudioSegment` classes for timeline-based audio arrangement. * Support for essential segment operations: insert, remove, replace, silence, trim, duplicate, and offset. * Per-segment playback controls: volume, pan, fade-in/out (linear, logarithmic, S-curve), reverse playback, looping (by repetitions or target duration), and playback speed. * Implement pitch-preserved time stretching using the WSOLA algorithm at the audio segment level. * Allow dynamic application of `SoundModifier`s and `AudioAnalyzer`s at the segment, track, and composition master output levels. * Introduce `CompositionProjectManager` for saving and loading projects, including options for media consolidation into the project folder and embedding small audio assets directly. Core Enhancements: * Integrate `WsolaTimeStretcher` into `SoundPlayerBase` for robust pitch-preserved time stretching, enabling granular control over segment duration without affecting pitch. * Refactor `SoundPlayerBase` for improved handling of playback speed changes, complex looping, and seeking logic. * Update `ISoundDataProvider` to standardize `SampleRate` as a non-nullable property and include `IsDisposed` for better resource management. * Enhance `RawDataProvider` to directly support `float[]`, `byte[]`, `int[]`, and `short[]` array sources, simplifying raw audio handling. * Improve `Mixer`'s component management by switching to `ConcurrentDictionary` for thread-safe operations and implement `IDisposable` for proper cleanup of child components. * Add an `Enabled` property to `SoundModifier` and `AudioAnalyzer` abstract classes, allowing runtime activation/deactivation of effects and analyses. Build & Infrastructure: * Introduce `SoundFlow.Samples.EditingMixer` project, providing extensive examples that showcase the new editing module's functionality. * Update stale workflow configuration in `.github/workflows/stale.yml` to exempt 'in-progress' and 'backlog-feature' issues from automatic closing. * Adjust native library loading paths in `MiniAudio` backend for improved robustness in various deployment scenarios.
There was a problem hiding this comment.
Welcome to SoundFlow repository! We appreciate you taking the time to contribute.
We're excited to review your pull request and look forward to collaborating with you. Please let us know if you have any questions or need any assistance.
Thank you for your contribution!
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces a new, powerful audio editing and mixing module, alongside significant enhancements to the core audio engine.
Features:
Composition,Track, andAudioSegmentclasses for timeline-based audio arrangement.SoundModifiers andAudioAnalyzers at the segment, track, and composition master output levels.CompositionProjectManagerfor saving and loading projects, including options for media consolidation into the project folder and embedding small audio assets directly.Core Enhancements:
WsolaTimeStretcherintoSoundPlayerBasefor robust pitch-preserved time stretching, enabling granular control over segment duration without affecting pitch.SoundPlayerBasefor improved handling of playback speed changes, complex looping, and seeking logic.ISoundDataProviderto standardizeSampleRateas a non-nullable property and includeIsDisposedfor better resource management.RawDataProviderto directly supportfloat[],byte[],int[], andshort[]array sources, simplifying raw audio handling.Mixer's component management by switching toConcurrentDictionaryfor thread-safe operations and implementIDisposablefor proper cleanup of child components.Enabledproperty toSoundModifierandAudioAnalyzerabstract classes, allowing runtime activation/deactivation of effects and analyses.Build & Infrastructure:
SoundFlow.Samples.EditingMixerproject, providing extensive examples that showcase the new editing module's functionality..github/workflows/stale.ymlto exempt 'in-progress' and 'backlog-feature' issues from automatic closing.MiniAudiobackend for improved robustness in various deployment scenarios.