Pwl works at a sample-rate “control-srate” thich is normally a 20th of the actual sample rate.
This produces a fade-in over 20 samples and does also shorten the sound in some cases (where the remaining samples falls under 10 samples or so)
You can use (control-srate-abs sound-srate ) to work at sample-level.
You are welcome.
I usually use the low-level function ‘snd-pwl’, especially for cases where accuracy and independence from the selected audio is demanded.
Providing the start time and sample rate is required.
(snd-pwl 0 44100 '(0 0.0 88200 1.0 88200))
The times are in samples and integers, whereas the sample values have to be flonums.
Calculations have to be enclosed in a list:
I decided not to start a new thread, but to continue here, because it’s related, I think.
I want to make a plugin (so I can call it with a keyboard shortcut) to “interpolate” the sound.
I read that I can’t access the sound beyond selection with nyquist, so I decided to use the first half of selection as source and to crossfade out/in its sound to the second half (to repair some “problem”).