Welcome to %s forums

BrainModular Users Forum

Login Register

arguments on modules

Tell us what you'd like Usine to do
Post Reply
Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 06 Mar 2009, 15:13

Hi Senso,

thanks for your work!

it would be nice if it was possible to insert one or more arguments in a module.
i.e. to insert "3" for a 3 channel sampler

This would be very usefull for the users modules!!!

Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 19 Mar 2009, 01:03

je relance...
Gizzeta wrote:Hi Senso,

thanks for your work!

it would be nice if it was possible to insert one or more arguments in a module.
i.e. to insert "3" for a 3 channel sampler

This would be very usefull for the users modules!!!
what do you think about it? It's hard to do?

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 19 Mar 2009, 10:51

sorry I forgot to answer.

I'm not sure I understand your request.
You want to add another argument in a module. But where, and when:
- during the drag and drop
- during the creation in the Internal Language Engine
- ?

is it with a pupup query, in the module itself as an inlet, etc..?

Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 22 Mar 2009, 15:53

I think the best solution is effectively is a popup menu during drag and drop, before the module creation.
The user can then provide the arguments that are specified in a function in the module head code, with type(int, float, checkbox, char...), min, max and default. Then the module is create, with appropriate number of imputs and outputs and the needed memory allocation.
It also be useful for argument elaboration requiring hard cpu usage during the creation process.

User avatar
senso
Site Admin
Posts: 4424
Location: France
Contact:

Unread post by senso » 22 Mar 2009, 21:15

Actually it's hard to implement with the actual intern structure of Usine.
Especially built-in modules like the sampler, etc aren't designed for variable number of parameters.
But if you want to create variable inputs User modules (in C++) I'll see how I can implement it in the sdk, especially a way add a popup window during the GetParameter procedure call and ask the user to chose the number of parameters.

Gizzeta
Member
Posts: 42
Location: Paris
Contact:

Unread post by Gizzeta » 23 Mar 2009, 12:24

cool, it's what i need,

thanks

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests