Setting connection between macro and doofer

I create an automatic doofer, display and name the macros using the API,
but I can’t figure out how to automatically create a macro[x] connection with the doofer with the given names. Checked what I’m talking about.

How do I connect it automatically using the API?
mappings.parameter is read-only.

So I got around it by creating an empty instrument and uploading it to the current one.
I connected the macro with doofer and it worked.
I write the change of values in the doofer via the observer to the variables that trigger the calculation and rendering of the sample when the change is made.
But :frowning:

what is wrong ?


Maybe no buffering in this renoise tool

it’s true that I haven’t optimized it enough yet.
I will try to read the values without observers. With each change there is a request for a sample render. I will also try to do some speed tests comparing “for” cycles and using “table.foreach”

Most every waveform that is generated instantly, while Renoise is playing back a sequence also transmits that crackling sound. Renoise is not made for synthesizing new samples ‘on the spot’, but sample playback. I don’t know that this is possible. But, I enjoy that the changes can be heard pretty quickly, and can overlook the crackling sound just to hear the sample being updated!

1 Like

Oh yeah, and GIMME GIMME GIMME :smiley: Doesn’t need a doofer.

forcibly faster

Not in my sketch :frowning:

local sin = math.sin
local buffer = {}

for i=1, 10000000 do
		buffer[i] = i

local start = os.clock()
for i=1, #buffer do
	buffer[i] = buffer[i] + sin(5)
print(os.clock() - start)

table.foreach(buffer, function(k, v) buffer[k] = v + sin(5) end)
print(os.clock() - start)
1 Like

My programming skills are rust…but this line is suspect
With a table.foreach you can not choose the loop point


Oh i see, this function is in 5.1 deprecated :slight_smile:


For … is faster
Pairs is slowest than table.foreach :frowning:
testing in Lua5.1.5

Maybe pairs is faster for “complex” objects…I don’t know

or pairs are written in lua himself

@taktik : is it “Lua JIT” in renoise?
Can help for realtime

In renoise:

  1. For
  2. Pairs
  3. table.foreach
1 Like