Zrythm v2.0.0-alpha.1
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
tempo_warp_map.h
1// SPDX-FileCopyrightText: © 2026 Alexandros Theodotou <alex@zrythm.org>
2// SPDX-License-Identifier: LicenseRef-ZrythmLicense
3
4#pragma once
5
6#include <span>
7
8#include "dsp/content_time_warp.h"
9#include "dsp/tempo_map.h"
10#include "dsp/tick_types.h"
11#include "dsp/time_warp_map.h"
12#include "utils/units.h"
13
14namespace zrythm::dsp
15{
16
32[[nodiscard]] TimeWarpMap
33to_time_warp_map (
34 std::span<const ContentTimeWarp::WarpPoint> warp_points,
35 const TempoMap &tempo_map,
36 TimelineTick clip_start_tick,
37 units::bpm_t source_bpm,
38 units::sample_t num_source_frames);
39
40} // namespace zrythm::dsp
A monotonic time-warp mapping from source samples to output samples.