|
|
@ -238,7 +238,7 @@ class Instrument(object): |
|
|
|
self.enabled = True |
|
|
|
|
|
|
|
#Calfbox. The JACK ports are constructed without samples at first. |
|
|
|
self.scene = cbox.Document.get_engine().new_scene() |
|
|
|
self.scene = cbox.Document.get_engine().new_scene() #We need an individual scene for each instrument. Midi Routing is based on scenes. |
|
|
|
self.scene.clear() |
|
|
|
self.sfzSamplerLayer = self.scene.add_new_instrument_layer(self.midiInputPortName, "sampler") #"sampler" is the cbox sfz engine |
|
|
|
self.scene.status().layers[0].get_instrument().engine.load_patch_from_string(0, "", "", "") #fill with null instruments |
|
|
|