The definitive Knob

Special collaborative projects managed by SynthMaker users

Moderators: electrogear, exonerate

Postby unkargherth on Fri May 13, 2005 3:34 pm

well.We starting have a problem here TKnob3 around 800kb

Waht happends if you disconnect the designer? you loose all your config. Very bad. Becuase on a synth project with said 12 Knobs, seems a bit heavy that 9.6 Mb only for knobs

So we need a decent way to STORE the knob params, and preferably not in the preset, as if some user watch deeply, don't find 12*12=144 Params per knob configuration only.

Any idea? Maybe malc or jorge could suggest something ?
User avatar
unkargherth
smanatic
 
Posts: 605
Joined: Fri Apr 08, 2005 8:46 pm

Postby Shifrin on Fri May 13, 2005 5:43 pm

unkargherth wrote:Waht happends if you disconnect the designer? you loose all your config.


I've not looked at the schematic in detail, but if the designer is simply sending out a bunch of floats you could use a 'sample and hold' on those floats inside the knob. Then once you've designed the knob and disconnected the designer the values (floats) you chose will be held in the S&H in the knob. Of course if you're using the designer to pass Areas/Colours etc this would be harder as I don't know if there S&H modules for those data types.

Just an idea anyways!

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby stefan on Sat May 14, 2005 8:34 am

Shifrin wrote:
unkargherth wrote:Waht happends if you disconnect the designer? you loose all your config.


I've not looked at the schematic in detail, but if the designer is simply sending out a bunch of floats you could use a 'sample and hold' on those floats inside the knob. Then once you've designed the knob and disconnected the designer the values (floats) you chose will be held in the S&H in the knob. Of course if you're using the designer to pass Areas/Colours etc this would be harder as I don't know if there S&H modules for those data types.

Just an idea anyways!

Shif.


Or you could just use one designer for all knobs... Which is what I would've done :)
Stefan
User avatar
stefan
smunatic
 
Posts: 2384
Joined: Wed Dec 15, 2004 9:24 pm
Location: Gothenburg, Sweden

Postby malc on Sat May 14, 2005 9:48 am

Unkargherth wrote:well.We starting have a problem here TKnob3 around 800kb

File size is something we can do alot about. We know of several optimisations already, just a matter of getting them done.
User avatar
malc
smychopath
 
Posts: 3111
Joined: Tue Sep 07, 2004 11:17 pm
Location: UK

Postby Tom7777 on Sat May 14, 2005 3:58 pm

File size will get much lower so just continue as normal i would say and everything will be much better in a future release and filesize should not effect it at all then.
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby unkargherth on Sat May 14, 2005 4:28 pm

Shifrin wrote:
I've not looked at the schematic in detail, but if the designer is simply sending out a bunch of floats you could use a 'sample and hold' on those floats inside the knob. Then once you've designed the knob and disconnected the designer the values (floats) you chose will be held in the S&H in the knob. Of course if you're using the designer to pass Areas/Colours etc this would be harder as I don't know if there S&H modules for those data types.

Just an idea anyways!

Shif.


By now, designer is passing ints and colours, but in the future versions is reasonably to think that it could pass another thing (most posibly bitmaps,pens and so on)

There is no SH for colours nor areas, Itried to convert a color to a One Int spec ( you know, blend*167772216+red*65536+green*256+blue) to push it on a sh Int module, but i failed ( though it is teorically posible). Simialr can be done for areas ( first convert to floats, then SH Float), but as far as i know, no way to do it with pens and obviously bitmaps. thats what i asked for and preset independent storage module ion requests/ideas forum

stefancrs wrote:Or you could just use one designer for all knobs... Which is what I would've done


It depends . You can feel ok all knobs in your project looks exactly equals, But other developer not. Seems a nosense having a readout in a quantized knob that selects a waveform that is already drawn in other place. Also No all knobs should be quantized equally or be quantized at all
malc wrote:File size is something we can do alot about. We know of several optimisations already, just a matter of getting them done.


Size is only a measure. What worries me is the indecent ammount of working code we get if we need for example 7 types of diferent knobs for a Synth. is more logical to design every type and save the results as a set of "Consants" in some way. Then, on final stage before Building the VST,connect the module with this "Constants" to the bus input of every knob.
User avatar
unkargherth
smanatic
 
Posts: 605
Joined: Fri Apr 08, 2005 8:46 pm

Postby stefan on Sat May 14, 2005 4:33 pm

unkargherth wrote:
stefancrs wrote:Or you could just use one designer for all knobs... Which is what I would've done


It depends . You can feel ok all knobs in your project looks exactly equals, But other developer not. Seems a nosense having a readout in a quantized knob that selects a waveform that is already drawn in other place. Also No all knobs should be quantized equally or be quantized at all


I did ofcourse mean for all knobs that are supposed to look and behave the same. Not all my knobs in nildon are synced with each other, but all the ones behaving the same are. So I thought it'd be a good idea to let a designer connection for any "knob style" you use stream down your schematic hierarchy. Obviously, there could be better ways to handle it, and no doubt, there will be. Not all data in a knob has to be instanciated per knob instance, so some kind of resource management could be good within SM.
Stefan
User avatar
stefan
smunatic
 
Posts: 2384
Joined: Wed Dec 15, 2004 9:24 pm
Location: Gothenburg, Sweden

Postby jorge on Sun May 15, 2005 3:45 pm

unkargherth wrote:So we need a decent way to STORE the knob params, and preferably not in the preset, as if some user watch deeply, don't find 12*12=144 Params per knob configuration only.

Any idea? Maybe malc or jorge could suggest something ?

I'm working on new components that will allow you to create your own custom parser to extract values from text
Image

Long term it will probably evolve to allow a custom compiler to be created inside SM with syntax colouring etc. The initial version will be ( probably is already ) enough to process text data and extract relevant info from it.

On the other side, you need to generate a text file from the colours, values etc in the front panel of the knob designer but that should already be possible as floats get converted to strings and you can already concatenate strings. So if you transform the values of the knobs, buttons, selections etc to text, you'll be able to use that text instead of the Bus.
Or even better would be if you create a BusToText module.

Creating components to save/load the text to/from a text file should be really easy.
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby unkargherth on Sun May 15, 2005 3:51 pm

Wow !!!!. Let me Repeat: Wow !!!!

question: When ? when? when?

(Only joke: take your time....)
User avatar
unkargherth
smanatic
 
Posts: 605
Joined: Fri Apr 08, 2005 8:46 pm

Postby Tom7777 on Sun May 15, 2005 4:06 pm

Cool jorge, that looks great :)
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby Nu Audio Science on Sun May 15, 2005 4:10 pm

Niiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiice :o
Oh blimey
User avatar
Nu Audio Science
smunatic
 
Posts: 2236
Joined: Thu May 05, 2005 12:29 am

Postby Shifrin on Sun May 15, 2005 4:27 pm

That's fascinating stuff there Jorge, so many possibilities!!! :D

Shif.
User avatar
Shifrin
smaniac
 
Posts: 1498
Joined: Sun Mar 06, 2005 1:54 pm
Location: Newcastle, UK

Postby jorge on Sun May 15, 2005 8:11 pm

Here's an example of a custom parser:
Image
The state of the panel is converted to a string which is then converted back to the state of the panel using a custom parser. Here is the schematic:
http://www.synthmaker.com/docs/uploads/2005/may/15/customParser2.osm
For this schematic you need the latest version of SM:
http://www.synthmaker.com/setupSynthmaker_0_9_3k.zip
Please note that this is all experimental stuff and the new components are still beta components inside a beta application. The parsing components are not yet prepared for feedback connections.
User avatar
jorge
smaniac
 
Posts: 1034
Joined: Tue Jan 13, 2004 11:12 pm
Location: Porto, Portugal

Postby Tom7777 on Sun May 15, 2005 8:34 pm

Thanks jorge, amazing as always :)
Tom7777
smychopath
 
Posts: 3936
Joined: Wed Mar 16, 2005 10:46 pm

Postby skOre on Sun May 15, 2005 9:36 pm

This is _so_ amazing!
Image
Support me and other developers by subscribing to our community at audiooak
User avatar
skOre
smaniac
 
Posts: 1504
Joined: Thu Mar 31, 2005 1:46 pm
Location: Germany

PreviousNext

Return to Projects

Who is online

Users browsing this forum: No registered users and 1 guest