ArrayArrayArrayArrayArrayArrayArrayArray BrainModular BrainModular Users Forum 2017-12-30T23:16:08+02:00 https://brainmodular.com/forums/app.php/feed/topic/6013 2017-12-30T23:16:08+02:00 2017-12-30T23:16:08+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38900#p38900 <![CDATA[sdk value field in module window]]> Statistics: Posted by 23fx23 — 30 Dec 2017, 22:16


]]>
2017-12-30T15:32:50+02:00 2017-12-30T15:32:50+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38891#p38891 <![CDATA[sdk value field in module window]]>

CODE:

inline AnsiCharPtr sdkDialogInputBox&#40;AnsiCharPtr caption, AnsiCharPtr prompt, AnsiCharPtr defaultValue&#41;

Statistics: Posted by senso — 30 Dec 2017, 14:32


]]>
2017-12-14T01:27:10+02:00 2017-12-14T01:27:10+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38765#p38765 <![CDATA[sdk value field in module window]]>
well thats feels certainly complex but who knows^^..

i got a synth made with sdk with plenty of faders intenally made and drawn on the canvas with rects.

what i would like to acheve is when double clicking on one, have the ability to enter numeric value via keayboard, a bit like usine standard items faders.

I could go and try code this and will probably, but think will be complex. just wondered if there couldn't be some magic wizzard trick to overlay kinda such 'field' boxes,

like a rect with left right top botom settings, but that would get keyboard inputs, on the canvas, and get back string values. dk if make sense.

think i read somewhere keyboard callback would be hard, but maybe a long term idea..
I think Senso said keyboard input callbacks in the SDK would be hard as you have to send it to all modules (not like mouse where you only send it when mouse is over a module). The usual way round this is to have keyboard listeners who register if they want input. That could be done at the Init stage when you set ModuleType, DontProcess, etc. You could have a DoKeyboardCallback for example.

Something that would be a start, that I would find useful would be an SDK dialog popup that includes a text input field.
The existing dialogs are:

int sdkDialogConfirmationYesNoCancel(msg)
int sdkDialogConfirmationYesNo(msg)
int sdkDialogInformationOk(msg)
int sdkDialogConfirmationOKCancel (msg)

Senso might be willing to do something like

AnsiCharPtr sdkDialogTextInput(msg), that just includes the user message, then a text input box, then an OK or ENTER button.

Statistics: Posted by sm_jamieson — 14 Dec 2017, 00:27


]]>
2017-12-07T23:32:27+02:00 2017-12-07T23:32:27+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38709#p38709 <![CDATA[sdk value field in module window]]> ^not drastic stuff but yes we always want more^^, was just anticipating a 'vst' like autonomous thing, think the query popups would be a cool in beetween, *sound doable thing, a bit more user friendly than going out ib to a tab setting to set a fader, still a possible solution.. from what ive tried child window just make the module itself in a independant popup window, but have to try back.
ive seen your post about the string, might be wrong but i remember beeing able to get back the pointer value, have to check back.

yea see what ya mean about limited bounding redraw regions, sounds interesting an indeed good idea if was possible. ive been pretty wild drawing hundreds of layers wth apha/dots/squares/bezier curves/faders ect each ms and did not spot problems so far but surely it would be more efficient to redraw only what is needed.
i also face same dilemna, spltting/all internal^^ on the synth tho went internal, felt more modular and less complex than exhanging tons of IOs datas & parameters for that case.

Statistics: Posted by 23fx23 — 07 Dec 2017, 22:32


]]>
2017-12-07T23:10:51+02:00 2017-12-07T23:10:51+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38708#p38708 <![CDATA[sdk value field in module window]]> I even wondered about taking a general purpose graphic library and mapping or extending it onto the SDK drawing functions.
But you hit the issue that the SDK is really intended for fairly simple graphics and you have to redraw all of it every time the redraw function is called, which limits its efficiency. For example, a proper graphic library includes buffers and clip regions, which means you only have to redraw the bits that need it.

Of course you could just draw all your graphics into the child window, but that would not integrate with the rest of the Usine GUI so well.

Perhaps the sdk redraw function could be extended a bit to include simple clip regions, say the window divided into a number of squares with an indication of which requires redrawing. Or Usine could keep a buffer of the graphic area and allow you to just redraw the bits that have changed.

I must admit I am always in a fight between drawing the graphic items (buttons, sliders, etc) in the user module myself, or using Usine's modules connected to parameter inputs. I know the spirit of Usine is lots of small modules wired up in patches, but sometimes that is a bit limiting.

And the signal flow thing is perfect for audio and midi signal paths etc, but not always so good for creating a complex GUI. For example, if you want your module to fully control a listbox, you need to wire up many input and output parameters and coordinate them all.

Statistics: Posted by sm_jamieson — 07 Dec 2017, 22:10


]]>
2017-12-07T22:28:24+02:00 2017-12-07T22:28:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38707#p38707 <![CDATA[sdk value field in module window]]> But yes, a text input popup direct from the SDK would be great.

You can also use a Usine Popup window containing a text input module and control its position via the X and Y parameters.

Of course you can use the module child window (sdkCreateDeskWindow() etc), but Usine does not draw in there, you have to do it using some other graphic library. I've not used that at all. Also you can set the size of that window but I'm not sure about the position.

Statistics: Posted by sm_jamieson — 07 Dec 2017, 21:28


]]>
2017-12-07T21:26:42+02:00 2017-12-07T21:26:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38703#p38703 <![CDATA[sdk value field in module window]]> that would be awesome if we could trig same thing anytime else than creation from the code, and get back a combo box choice integer, and ultimate would be adding a textfield user could enter stuff and module get back the stirng value and make stuff out of it

Statistics: Posted by 23fx23 — 07 Dec 2017, 20:26


]]>
2017-12-07T21:23:10+02:00 2017-12-07T21:23:10+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38702#p38702 <![CDATA[sdk value field in module window]]>
i got a synth made with sdk with plenty of faders intenally made and drawn on the canvas with rects.

what i would like to acheve is when double clicking on one, have the ability to enter numeric value via keayboard, a bit like usine standard items faders.

I could go and try code this and will probably, but think will be complex. just wondered if there couldn't be some magic wizzard trick to overlay kinda such 'field' boxes,

like a rect with left right top botom settings, but that would get keyboard inputs, on the canvas, and get back string values. dk if make sense.

think i read somewhere keyboard callback would be hard, but maybe a long term idea..

Statistics: Posted by 23fx23 — 07 Dec 2017, 20:23


]]>
BrainModular BrainModular Users Forum 2017-12-30T23:16:08+02:00 https://brainmodular.com/forums/app.php/feed/topic/6013 2017-12-30T23:16:08+02:00 2017-12-30T23:16:08+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38900#p38900 <![CDATA[sdk value field in module window]]> Statistics: Posted by 23fx23 — 30 Dec 2017, 22:16


]]>
2017-12-30T15:32:50+02:00 2017-12-30T15:32:50+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38891#p38891 <![CDATA[sdk value field in module window]]>

CODE:

inline AnsiCharPtr sdkDialogInputBox&#40;AnsiCharPtr caption, AnsiCharPtr prompt, AnsiCharPtr defaultValue&#41;

Statistics: Posted by senso — 30 Dec 2017, 14:32


]]>
2017-12-14T01:27:10+02:00 2017-12-14T01:27:10+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38765#p38765 <![CDATA[sdk value field in module window]]>
well thats feels certainly complex but who knows^^..

i got a synth made with sdk with plenty of faders intenally made and drawn on the canvas with rects.

what i would like to acheve is when double clicking on one, have the ability to enter numeric value via keayboard, a bit like usine standard items faders.

I could go and try code this and will probably, but think will be complex. just wondered if there couldn't be some magic wizzard trick to overlay kinda such 'field' boxes,

like a rect with left right top botom settings, but that would get keyboard inputs, on the canvas, and get back string values. dk if make sense.

think i read somewhere keyboard callback would be hard, but maybe a long term idea..
I think Senso said keyboard input callbacks in the SDK would be hard as you have to send it to all modules (not like mouse where you only send it when mouse is over a module). The usual way round this is to have keyboard listeners who register if they want input. That could be done at the Init stage when you set ModuleType, DontProcess, etc. You could have a DoKeyboardCallback for example.

Something that would be a start, that I would find useful would be an SDK dialog popup that includes a text input field.
The existing dialogs are:

int sdkDialogConfirmationYesNoCancel(msg)
int sdkDialogConfirmationYesNo(msg)
int sdkDialogInformationOk(msg)
int sdkDialogConfirmationOKCancel (msg)

Senso might be willing to do something like

AnsiCharPtr sdkDialogTextInput(msg), that just includes the user message, then a text input box, then an OK or ENTER button.

Statistics: Posted by sm_jamieson — 14 Dec 2017, 00:27


]]>
2017-12-07T23:32:27+02:00 2017-12-07T23:32:27+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38709#p38709 <![CDATA[sdk value field in module window]]> ^not drastic stuff but yes we always want more^^, was just anticipating a 'vst' like autonomous thing, think the query popups would be a cool in beetween, *sound doable thing, a bit more user friendly than going out ib to a tab setting to set a fader, still a possible solution.. from what ive tried child window just make the module itself in a independant popup window, but have to try back.
ive seen your post about the string, might be wrong but i remember beeing able to get back the pointer value, have to check back.

yea see what ya mean about limited bounding redraw regions, sounds interesting an indeed good idea if was possible. ive been pretty wild drawing hundreds of layers wth apha/dots/squares/bezier curves/faders ect each ms and did not spot problems so far but surely it would be more efficient to redraw only what is needed.
i also face same dilemna, spltting/all internal^^ on the synth tho went internal, felt more modular and less complex than exhanging tons of IOs datas & parameters for that case.

Statistics: Posted by 23fx23 — 07 Dec 2017, 22:32


]]>
2017-12-07T23:10:51+02:00 2017-12-07T23:10:51+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38708#p38708 <![CDATA[sdk value field in module window]]> I even wondered about taking a general purpose graphic library and mapping or extending it onto the SDK drawing functions.
But you hit the issue that the SDK is really intended for fairly simple graphics and you have to redraw all of it every time the redraw function is called, which limits its efficiency. For example, a proper graphic library includes buffers and clip regions, which means you only have to redraw the bits that need it.

Of course you could just draw all your graphics into the child window, but that would not integrate with the rest of the Usine GUI so well.

Perhaps the sdk redraw function could be extended a bit to include simple clip regions, say the window divided into a number of squares with an indication of which requires redrawing. Or Usine could keep a buffer of the graphic area and allow you to just redraw the bits that have changed.

I must admit I am always in a fight between drawing the graphic items (buttons, sliders, etc) in the user module myself, or using Usine's modules connected to parameter inputs. I know the spirit of Usine is lots of small modules wired up in patches, but sometimes that is a bit limiting.

And the signal flow thing is perfect for audio and midi signal paths etc, but not always so good for creating a complex GUI. For example, if you want your module to fully control a listbox, you need to wire up many input and output parameters and coordinate them all.

Statistics: Posted by sm_jamieson — 07 Dec 2017, 22:10


]]>
2017-12-07T22:28:24+02:00 2017-12-07T22:28:24+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38707#p38707 <![CDATA[sdk value field in module window]]> But yes, a text input popup direct from the SDK would be great.

You can also use a Usine Popup window containing a text input module and control its position via the X and Y parameters.

Of course you can use the module child window (sdkCreateDeskWindow() etc), but Usine does not draw in there, you have to do it using some other graphic library. I've not used that at all. Also you can set the size of that window but I'm not sure about the position.

Statistics: Posted by sm_jamieson — 07 Dec 2017, 21:28


]]>
2017-12-07T21:26:42+02:00 2017-12-07T21:26:42+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38703#p38703 <![CDATA[sdk value field in module window]]> that would be awesome if we could trig same thing anytime else than creation from the code, and get back a combo box choice integer, and ultimate would be adding a textfield user could enter stuff and module get back the stirng value and make stuff out of it

Statistics: Posted by 23fx23 — 07 Dec 2017, 20:26


]]>
2017-12-07T21:23:10+02:00 2017-12-07T21:23:10+02:00 https://brainmodular.com/forums/viewtopic.php?t=6013&p=38702#p38702 <![CDATA[sdk value field in module window]]>
i got a synth made with sdk with plenty of faders intenally made and drawn on the canvas with rects.

what i would like to acheve is when double clicking on one, have the ability to enter numeric value via keayboard, a bit like usine standard items faders.

I could go and try code this and will probably, but think will be complex. just wondered if there couldn't be some magic wizzard trick to overlay kinda such 'field' boxes,

like a rect with left right top botom settings, but that would get keyboard inputs, on the canvas, and get back string values. dk if make sense.

think i read somewhere keyboard callback would be hard, but maybe a long term idea..

Statistics: Posted by 23fx23 — 07 Dec 2017, 20:23


]]>