7 sys
.path
= ["./py"] + sys
.path
12 Document
= cbox
.Document
14 scene
= Document
.get_scene()
16 instrument
= scene
.add_new_instrument_layer("test_sampler", "sampler").get_instrument()
17 pgm_no
= instrument
.engine
.get_unused_program()
18 pgm
= instrument
.engine
.load_patch_from_file(pgm_no
, 'synthbass.sfz', 'SynthBass')
19 instrument
.engine
.set_patch(1, pgm_no
)
20 print (instrument
.engine
.get_patches())
21 for i
in pgm
.get_groups():
22 print ("<group>", i
.as_string())
23 for j
in i
.get_children():
24 print ("<region>", j
.as_string())