feat: normalize selected audio clips to a bounded sample peak
This commit is contained in:
parent
ea0b4ca3da
commit
d676d74a11
10 changed files with 94 additions and 6 deletions
|
|
@ -40,6 +40,11 @@ void xtc_waveform_destroy(xtc_waveform *waveform);
|
|||
xtc_result xtc_waveform_info(const xtc_waveform *waveform, unsigned int *rate, size_t *frames, size_t *bins);
|
||||
xtc_result xtc_waveform_peak(const xtc_waveform *waveform, size_t bin, float *minimum, float *maximum);
|
||||
|
||||
/* Control-thread sample-peak normalization of audible native-rate source slices
|
||||
* (same mono downmix as playback). target 0<peak<=1, replaces clip gain, ignores
|
||||
* fades/track mix. Gain >4, silence, missing/invalid media or MIDI reject the
|
||||
* entire unique nonempty selection. Reads media; no source writes. */
|
||||
xtc_result xtc_project_normalize_audio(xtc_project *project,const uint64_t *ids,size_t count,float target);
|
||||
/* Control-thread WAV import: PCM16/24/32 or float32, mono/stereo downmixed to
|
||||
* mono, 1..768000 Hz. Absolute canonical references, <=511 bytes.
|
||||
* Adds a timeline source -> output route if no timeline source exists.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue