feat: build custom MIDI chord voicings with atomic pitch and capacity checks
This commit is contained in:
parent
d034417c8c
commit
6be4f9803a
9 changed files with 76 additions and 5 deletions
|
|
@ -1388,6 +1388,8 @@ int main(int argc, char **argv)
|
|||
CHECK(s->select(0,0));CHECK(window.open_piano_roll()==XTC_OK);CHECK(window.piano_roll()->add_note(480,240,60)==XTC_OK);
|
||||
xtc_midi_transform human{};human.type=XTC_MIDI_TRANSFORM_HUMANIZE;human.seed=42;human.timing_variation=12;human.velocity_variation=8;
|
||||
CHECK(s->transform_midi(human)==XTC_OK);CHECK(window.undo()==XTC_OK);
|
||||
CHECK(s->select(0,0));CHECK(s->make_chord({4,7})==XTC_OK);
|
||||
size_t notes=0;xtc_project_note_count(s->project(),¬es);CHECK(notes==3);
|
||||
window.do_callback();
|
||||
}
|
||||
if (failures != 0) return 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue