#include <StickyBun.h>
Segment has metadata for XJ to persist "notes in the margin" of the composition for itself to read https://www.pivotaltracker.com/story/show/183135787
◆ StickyBun() [1/3]
XJ::StickyBun::StickyBun |
( |
| ) |
|
|
default |
◆ StickyBun() [2/3]
StickyBun::StickyBun |
( |
UUID |
eventId, |
|
|
int |
size |
|
) |
| |
Prepare a sticky bun with event id and values
- Parameters
-
eventId | to persist |
size | of bun to generate |
◆ StickyBun() [3/3]
StickyBun::StickyBun |
( |
UUID |
eventId, |
|
|
std::vector< int > |
values |
|
) |
| |
Prepare a sticky bun with event id and values
- Parameters
-
eventId | to persist |
values | of bun |
◆ compute()
Note StickyBun::compute |
( |
const std::vector< Note > & |
voicingNotes, |
|
|
int |
index |
|
) |
| const |
Replace atonal notes in the list with selections based on the sticky bun
- Parameters
-
voicingNotes | from which to select replacements |
index | of the note to replace |
- Returns
- notes with atonal elements augmented by sticky bun
◆ computeMetaKey() [1/2]
std::string StickyBun::computeMetaKey |
( |
| ) |
const |
Compute a meta key based on the event id
- Returns
- meta key
◆ computeMetaKey() [2/2]
std::string StickyBun::computeMetaKey |
( |
const UUID & |
id | ) |
|
|
static |
◆ deserializeFrom()
StickyBun StickyBun::deserializeFrom |
( |
const std::string & |
str | ) |
|
|
static |
Deserialize from JSON
- Parameters
-
- Returns
- StickyBun
◆ replaceAtonal()
std::vector< Note > StickyBun::replaceAtonal |
( |
std::vector< Note > |
source, |
|
|
const std::vector< Note > & |
voicingNotes |
|
) |
| const |
Replace atonal notes in the list with selections based on the sticky bun
- Parameters
-
source | notes to replace atonal elements |
voicingNotes | from which to select replacements |
- Returns
- notes with atonal elements augmented by sticky bun
◆ serialize()
std::string StickyBun::serialize |
( |
| ) |
|
Serialize to JSON
- Returns
- JSON representation
◆ eventId
UUID XJ::StickyBun::eventId |
◆ values
std::vector<int> XJ::StickyBun::values |
The documentation for this class was generated from the following files:
- /home/runner/work/xjmusic/xjmusic/engine/include/xjmusic/music/StickyBun.h
- /home/runner/work/xjmusic/xjmusic/engine/src/music/StickyBun.cpp