Streamable knob prototype...
Posted: Sat Oct 20, 2018 11:03 am
'Concept'
- A file with a bitmap containing the knob is loaded, the bitmap is then streamed across the schematic into each individual module/knob.
- Why use this ratter than the regular ruby knob you wonder?
The problem with the ruby knob...is that Ruby tends to save inside its code assembler the memory of the png file...
for that reason, if you use a ruby animated knob lets say 100 times, it will load the same bitmap 100 times, that's an incredible ineficient way of making a plugin...You do NOT want that... because every time your plugin loads in a midi sequencer/DAW, you will be using 100 times more memory than the exact efficient way necessary to run
the plugin...
This is the correct way... this is logic
You load it only once...you use coding in ruby to rotate it (!)
in this case i made an hybrid between primitive modules and ruby, because the primitive draw
allow you to stream bitmaps.
I am not a ruby developer, so if you are and you know how to stream bitmaps in ruby...
please do tell, meanwhile this is a solution i was looking!
cheers
- A file with a bitmap containing the knob is loaded, the bitmap is then streamed across the schematic into each individual module/knob.
- Why use this ratter than the regular ruby knob you wonder?
The problem with the ruby knob...is that Ruby tends to save inside its code assembler the memory of the png file...
for that reason, if you use a ruby animated knob lets say 100 times, it will load the same bitmap 100 times, that's an incredible ineficient way of making a plugin...You do NOT want that... because every time your plugin loads in a midi sequencer/DAW, you will be using 100 times more memory than the exact efficient way necessary to run
the plugin...
This is the correct way... this is logic
You load it only once...you use coding in ruby to rotate it (!)
in this case i made an hybrid between primitive modules and ruby, because the primitive draw
allow you to stream bitmaps.
I am not a ruby developer, so if you are and you know how to stream bitmaps in ruby...
please do tell, meanwhile this is a solution i was looking!
cheers