#Edit the copy buffer in place. We don't modify the list, just the contents.
fortrackincopyBuffer:
foritemintrack:
iftype(item)isitems.Chord:
item.intervalAutomatic(root,toPitch)
ifadjustToKeySignature:
item.adjustToKeySignature([keysig,])#keysig must be in a list because it is a chord. If it is just len==1 the transpose function will deal with it correctly.
pasteObjects(customBuffer=copyBuffer)#normal paste except our special buffer
@ -525,6 +525,14 @@ class Data(template.engine.sequencer.Score):
#self.copyObjectsBuffer = [] #maybe that is a bit harsh. If you press Cltr+C by accident, without a selection, you loose your copied data. This is especially bad for cut and paste
return[]
defgetIndenpendetCopyObjectsBuffer(self):
"""Requests a copy of the copy-buffer, if you want to modify it in-memory before pasting