Add cheaper preset
This commit is contained in:
parent
450b2fecce
commit
088dad47f6
@ -14,10 +14,11 @@ signalsmith::stretch::SignalsmithStretch<float> stretch;
|
|||||||
|
|
||||||
### Configuring
|
### Configuring
|
||||||
|
|
||||||
The easiest way to configure is `.presetDefault()`:
|
The easiest way to configure is a `.preset???()` method:
|
||||||
|
|
||||||
```cpp
|
```cpp
|
||||||
stretch.presetDefault(channels, sampleRate);
|
stretch.presetDefault(channels, sampleRate);
|
||||||
|
stretch.presetCheaper(channels, sampleRate);
|
||||||
```
|
```
|
||||||
|
|
||||||
If you want to test out different block-sizes etc. then you can use `.configure()` manually.
|
If you want to test out different block-sizes etc. then you can use `.configure()` manually.
|
||||||
|
|||||||
@ -40,6 +40,9 @@ struct SignalsmithStretch {
|
|||||||
void presetDefault(int nChannels, Sample sampleRate) {
|
void presetDefault(int nChannels, Sample sampleRate) {
|
||||||
configure(nChannels, sampleRate*0.12, sampleRate*0.03);
|
configure(nChannels, sampleRate*0.12, sampleRate*0.03);
|
||||||
}
|
}
|
||||||
|
void presetCheaper(int nChannels, Sample sampleRate) {
|
||||||
|
configure(nChannels, sampleRate*0.1, sampleRate*0.04);
|
||||||
|
}
|
||||||
|
|
||||||
// Manual setup
|
// Manual setup
|
||||||
void configure(int nChannels, int blockSamples, int intervalSamples) {
|
void configure(int nChannels, int blockSamples, int intervalSamples) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user