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

A parsed .pulpset — events sorted by sample offset. More...

#include <pulpset.hpp>

Public Member Functions

std::string to_text () const
 Serialize events back to .pulpset text.
std::int64_t last_sample () const

Static Public Member Functions

static Pulpset parse (const std::string &text)
static Pulpset from_file (const std::string &path)

Public Attributes

std::vector< PulpsetEvent > events

Detailed Description

A parsed .pulpset — events sorted by sample offset.

Member Function Documentation

◆ from_file()

Pulpset pulp::format::Pulpset::from_file ( const std::string & path)
inlinestatic

◆ last_sample()

std::int64_t pulp::format::Pulpset::last_sample ( ) const
inline

◆ parse()

Pulpset pulp::format::Pulpset::parse ( const std::string & text)
inlinestatic

◆ to_text()

std::string pulp::format::Pulpset::to_text ( ) const
inline

Serialize events back to .pulpset text.

Floats are written with std::to_chars so write+read round-trips under any global locale.

Member Data Documentation

◆ events

std::vector<PulpsetEvent> pulp::format::Pulpset::events

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