Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::timeline::SmfExportOptions Struct Reference

Tick-grid, loss policy, and work bound for SMF export. More...

#include <smf.hpp>

Public Attributes

std::uint16_t ticks_per_quarter = 960
 MThd ticks per quarter; 960 is exact against the canonical tick grid.
bool allow_lossy_tick_rounding = false
 Whether unrepresentable ticks may round half away from zero.
bool skip_non_note_clips = false
 Whether clips with non-note, non-empty content may be omitted.
std::size_t max_events = 5'000'000
 Maximum emitted MIDI events across the whole file.

Detailed Description

Tick-grid, loss policy, and work bound for SMF export.

Member Data Documentation

◆ allow_lossy_tick_rounding

bool pulp::timeline::SmfExportOptions::allow_lossy_tick_rounding = false

Whether unrepresentable ticks may round half away from zero.

◆ max_events

std::size_t pulp::timeline::SmfExportOptions::max_events = 5'000'000

Maximum emitted MIDI events across the whole file.

◆ skip_non_note_clips

bool pulp::timeline::SmfExportOptions::skip_non_note_clips = false

Whether clips with non-note, non-empty content may be omitted.

◆ ticks_per_quarter

std::uint16_t pulp::timeline::SmfExportOptions::ticks_per_quarter = 960

MThd ticks per quarter; 960 is exact against the canonical tick grid.


The documentation for this struct was generated from the following file:
  • /home/runner/work/pulp/pulp/core/timeline/include/pulp/timeline/smf.hpp