Reply To: add a parameter to : getModulatorValuesAsData() method

Home Forums General Programming add a parameter to : getModulatorValuesAsData() method Reply To: add a parameter to : getModulatorValuesAsData() method

#31208
zeoka
Participant
  • Topics: 73
  • Replies: 466
  • Total: 539
  • ★★★

added a function that write a data block to another to dump or write file
new = MemoryBlock() — the memory block to write here a new
CallMyBlocks(“memo1”,new)
____________nameToCall,the memoryblock you want

console(string.format(“%s”,(new:toHexString(1)))) — check the data

function CallMyBlocks(nameToCall,newBlock)
    for r = 1,100,1 do 
          if  myNames[r] == string.format("%s",nameToCall) then 	
            if newBlock ~= nil then 
                if newBlock:getSize() > 0 then 
                   newBlock:setSize(0,false)
               end     
               newBlock:insert(myBlocks[r],myBlocks[r]:getSize(),0)
           end
         end
    end
end
Ctrlr