Comments (7)
Can you give an example? How is this different from the existing Compose
?
from audiomentations.
We can do two Transform controlled by one Prob.
from audiomentations.
We can make a callable that applies two transforms with a single probability like this:
Compose([AddGaussianNoise(p=1.0), Normalize(p=1.0)], p=0.5)
Does this satisfy your requirement, or would you like to elaborate?
from audiomentations.
But how Compose([Compose([AddGaussianNoise(p=1.0), Normalize(p=1.0)], p=0.5), ...])
this work?
from audiomentations.
So you want to nest Compose
instances, as in the following code example?
Compose(
[
Compose([AddGaussianNoise(p=1.0), Normalize(p=1.0)], p=0.5),
Compose([AddBackgroundNoise(p=1.0, ...), Normalize(p=1.0)], p=0.5),
]
)
Can you tell me more about your underlying use case?
from audiomentations.
We can using AddShortNoise add some noises one time.
from audiomentations.
And how does that relate to shortcomings in Compose
? I'll reopen this issue if it gets a proper description that I can understand.
from audiomentations.
Related Issues (20)
- Dereverberation transform
- Improve Shift transform
- Add support for target_peak_dbfs and maybe a "true peak" boolean in Normalize
- Add support for zero phase peaking filter
- Add support for zero phase low/high shelf filter
- Speed augmentation HOT 4
- Add Chorus transform HOT 2
- Add Phaser transform HOT 1
- Add parameter for ensuring mp3 compression output length is the same as the input length HOT 3
- Enhance pitch shifting HOT 1
- test_simulate_apply_parity failure HOT 5
- Report specific python minor version HOT 2
- test_simulate_apply_parity - AssertionError: approx() is not supported in a boolean context HOT 7
- Obsolete link to DOI on the documentation page HOT 1
- Reference to non-released version in docs
- Add issue templates to the repository
- Question about documentation creation HOT 1
- Transform for adding noise with the same spectral profile as the given signal
- The blank frame will be added after applying the Limiter HOT 5
- Avoid picking silent part of noise file HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from audiomentations.