This is an example of executing different codeblocks inside a codeblock ( assembler).
In this particular case I made a 4 to 1 switch.
MyCo ·
you should notice, that it only works with mono in/outs, because you ignore the other three SSE channels
Eska ·
Yepp, forgot that. The switch in schould be float as only channel 0 is used, the switched channels are polyphonic.
Eska ·
This is cheaper.
infuzion ·
Eska wrote: This is cheaper.
Very interesting, thank you!
BTW, you have a typo:
movaps xmm1, in8; movaps out,xmm1;//code8
jz end0; //you have this as "jz end0:
end8:
Eska ·
Thats wy the last two inputs sound so similar. 😀
Thx
aliasant ·
I dont get it. To me it looks just like any multiplexor.
Maybe an explanation ? When would I find this handy?
Eska ·
It is a selector replace. But you can make a multiplexor by changing the codes 1 to 9. Or you can shutdown a module by using only one jump.
aliasant ·
Eska wrote: It is a selector replace. But you can make a multiplexor by changing the codes 1 to 9. Or you can shutdown a module by using only one jump.
Sorry. i meant selector =)
but I still dont understand why I would need this or why it is better then the toolbox version?
It uses 40+ cycles so its not like its fast. Or am I totally wrong? Probably 😉 Thats why Im asking for clarification.
infuzion ·
aliasant wrote: I still don't understand why I would need this or why it is better then the toolbox version?
My guess: you can hop() Eska's Code-switch.
MichaelBenjamin ·
does it shutdown all the code behind the nonselected, like the sm selector?
kirkagur ·
MichaelBenjamin wrote: does it shutdown all the code behind the nonselected, like the sm selector?
no... 🙁
Eska ·
I had issues with stream selectors and multiplexors. A few ms dropout per switch on switching and unproportional increased cpu load when going over 4 voices. Not suitable for realtime loading of presets, also my combi switching time went up to 4,5 sec. Removing all selectors and multiplexors, keeping everything running but jump over not used code fixed this. Nowadays these issues might be fixed but I prefer to stay in control here.
Wrote something here? To have a post removed or your name hidden, write to [email protected].