Struct BpmStruct

Struct Documentation

struct BpmStruct

contains BpmFragments. and calculate with fragments.

Public Functions

void sortFragment()

Sort the fragments Ascending by the bar-beat approx.

bool calcFrame(unsigned long long StartPos = 0)

fills the value “frame_to_here” in BpmFragments

Parameters:

StartPos – the offset(Frame position)

Returns:

true

Returns:

false

const BpmFragment &getAffected(const BpmFragment &searchFrag) const

Get the Affected BpmFragment.

Parameters:

searchFrag – the BpmFragment for search affected position. you should fill bar-beat before use.

Returns:

const BpmFragment& the affected BpmFragment

const BpmFragment &getAffected(const unsigned long long searchFrame) const

Get the Affected BpmFragment.

Parameters:

searchFrame – the Frame position to search affected BpmFragment

Returns:

const BpmFragment& the affected BpmFragment

const std::vector<const BpmFragment*> getAffectedList(const unsigned long long searchStartFrame, const unsigned long long searchEndFrame) const

Get the Affected BpmFragment list with range.

Parameters:
  • searchStartFrame – start Frame position

  • searchEndFrame – end Frame position

Returns:

const std::vector<const BpmFragment*> the affected BpmFragment list.

Public Members

std::vector<BpmFragment> fragments

the fragment data.