After Load prim...

Discuss suspected defects before submitting a bug report

Moderator: electrogear

After Load prim...

Postby aliasant on Sat Jan 30, 2010 2:25 pm

If a module has an "After Load" prim inside the "After Load" will not send a trigger if the module is pasted into the schematic or dragged in from the toolbox.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby trogluddite on Sat Jan 30, 2010 8:10 pm

No trigger when dragging or pasting - but I do get a trigger when the schematic is saved and then loaded again (using latest 1.1.6 full release).
Is this not the correct behavior? It's what I would have expected.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3028
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: After Load prim...

Postby oddson on Sat Jan 30, 2010 8:14 pm

Do you mean it doesn't trigger when added in these ways once opened in a VST/DLL?
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Re: After Load prim...

Postby trogluddite on Sat Jan 30, 2010 8:24 pm

Just tested this with exe, and a dll loaded into VSThost. All behaves as expected.
Feel free to use any schematics and algorithms I post on the forum in your own designs - a credit is appreciated (but not a requirement).
Don't stagnate, mutate to create. Without randomness and serendipity the earth would be just another barren rock.
User avatar
trogluddite
smychopath
 
Posts: 3028
Joined: Mon Oct 20, 2008 3:52 pm
Location: Yorkshire, UK

Re: After Load prim...

Postby aliasant on Sat Jan 30, 2010 9:41 pm

It works perfectly fine as VST and exe but not inside SM.
Malc already said it should and that he will try to fix that in 1.1.7

For me this is a problem cause some of my graphics are cached and when copied or dagged into a schematic the graphic isnt updated until I resize or "touch" the module.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby oddson on Sat Jan 30, 2010 10:01 pm

I can't replicate with the simplest case (After Load stored inside a module on it's own and this stored in a toolbox then added to file, then save and close -- on reopen it always triggers).

It must be some sort of interaction with other elements.
oddson
wiki guru
 
Posts: 3883
Joined: Sun Jul 03, 2005 6:44 pm

Re: After Load prim...

Postby aliasant on Sat Jan 30, 2010 11:17 pm

No No No

Take the After Load
Put it in an empty module. Add a tick counter after the After Load.

Now Copy the module with the After Load and Tick counter.
And now Paste that module back in and look inside at the tick counter. It will read 0 ticks.

Test 2:
Take the same module and drag it to the toolbox.
Take it from the toolbox and drag it back to a schematic and check the trigge. Again it will read 0.

It has nothing to do with opening a schematic.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby infuzion on Sun Jan 31, 2010 6:04 am

aliasant wrote:Take the After Load
Put it in an empty module. Add a tick counter after the After Load.

Now Copy the module with the After Load and Tick counter.
And now Paste that module back in and look inside at the tick counter. It will read 0 ticks.

Test 2:
Take the same module and drag it to the toolbox.
Take it from the toolbox and drag it back to a schematic and check the trigge. Again it will read 0.
You just proved it is working perfectly.
aliasant wrote:It has nothing to do with opening a schematic.
You are wrong here. Sorry.
Need help? First search the forum & WiKi, then post in the help forum with a clear topic, request, & OSM. Then please WiKi the correct solution. If you want my personal assistance, I charge by the hour or for an exchange of services.
infuzion
smstar
smstar
 
Posts: 6163
Joined: Wed May 04, 2005 8:02 pm
Location: Earth, USA, CO, Denver

Re: After Load prim...

Postby aliasant on Sun Jan 31, 2010 10:02 am

I dont get it Infuzion ?

My claim is that the ticker Should give 1 tick when dropped into a schematic and it doesnt.
Yours is that it shouldnt?
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby stw on Sun Jan 31, 2010 11:13 am

aliasant wrote:I dont get it Infuzion ?

My claim is that the ticker Should give 1 tick when dropped into a schematic and it doesnt.
Yours is that it shouldnt?


Hmm maybe some kind f misunderstanding. AFAIK (and that's what the help text says) the AfterLoad tick should give a tick if a vst/exe/osm is loaded and initialized. Not if the module is dropped in. And this works pretty well.
stw
smanatic
 
Posts: 640
Joined: Mon Jun 30, 2008 2:55 pm

Re: After Load prim...

Postby aliasant on Sun Jan 31, 2010 11:57 am

stw wrote:
aliasant wrote:I dont get it Infuzion ?

My claim is that the ticker Should give 1 tick when dropped into a schematic and it doesnt.
Yours is that it shouldnt?


Hmm maybe some kind f misunderstanding. AFAIK (and that's what the help text says) the AfterLoad tick should give a tick if a vst/exe/osm is loaded and initialized. Not if the module is dropped in. And this works pretty well.


Well. Maybe it has just been forgotten or something but Malc did say that he too thinks it shoud give that tick when dropped in.
Why shouldnt it? Would there be a problem if it did? I guess it might if you drop something into a schematic that starts a huge calculation or a loop with no limit but if that happens maybe its not the After Loads tick that is the problem?
I have a lot of modules that needs a tick when placed in a schematic so for me its a no brainer.
It is also a great way to check if it actually works. The After Load that is. As it is now I have to save, close and reopen the schematic evey time to see if it actualy works. Simply sending a trigger hasnt always worked.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby rl on Mon Feb 01, 2010 3:01 pm

> Why shouldnt it?

From my understanding the purpose of the module is to fire a trigger when the whole schematic (or should I rather say: synthmaker engine) starts.
User avatar
rl
dsp wiz
 
Posts: 1494
Joined: Mon Feb 07, 2005 10:24 pm
Location: de.earth.universe.known

Re: After Load prim...

Postby aliasant on Mon Feb 01, 2010 3:08 pm

rl wrote:> Why shouldnt it?

From my understanding the purpose of the module is to fire a trigger when the whole schematic (or should I rather say: synthmaker engine) starts.



True enough but it stil annoys me that it doesnt fire that trigger.
Been trying to find a workaround and I thought I wasw on to something but it didnt work =(
The MGUI prim sends out 1 trigger for Width and one for Height when dropped in fro the toolbox ( inside a module). It even send 2 triggers for each W & H if Pasted into the schematic.

I tried to use the last of those as a substitute but even if I pass it directly + a second via a trigger delay and I can see on the trig counter that the trigs have been sent ok they still dont update my schematic. I stil have to interact with a mouseclick to make it look as it should.

Weird.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Re: After Load prim...

Postby malc on Mon Feb 01, 2010 4:37 pm

I did indeed say that I thought that the After Load should behave as aliasant wants it to.

This is probably because I had my programmers head on and because copy and paste and dragging from the toolbox all involve saving and loading my first instinct was that the After Load should fire on these occasions too.

But of course After Load should mean 'after loading' and that should be after loading in the mind of the user, not mine, so that's only after the schematic loads.

Now that all said, there is still a problem here. It's already been pointed out that there are situations when you may want to fire something off on schematic load and there are other situations where you want something to happen on pasting, duplicating or dragging from the toolbox. There might also be situations where you want a trigger when any of these situations arise.

I need to think some more about this but one solution would be to create a new component to cover these other situations - a kind of 'After Duplicate' component if you like.
User avatar
malc
smychopath
 
Posts: 3111
Joined: Tue Sep 07, 2004 11:17 pm
Location: UK

Re: After Load prim...

Postby aliasant on Mon Feb 01, 2010 4:40 pm

malc wrote:I did indeed say that I thought that the After Load should behave as aliasant wants it to.

This is probably because I had my programmers head on and because copy and paste and dragging from the toolbox all involve saving and loading my first instinct was that the After Load should fire on these occasions too.

But of course After Load should mean 'after loading' and that should be after loading in the mind of the user, not mine, so that's only after the schematic loads.

Now that all said, there is still a problem here. It's already been pointed out that there are situations when you may want to fire something off on schematic load and there are other situations where you want something to happen on pasting, duplicating or dragging from the toolbox. There might also be situations where you want a trigger when any of these situations arise.

I need to think some more about this but one solution would be to create a new component to cover these other situations - a kind of 'After Duplicate' component if you like.



Totaly agree.

Ill send you one of my little things that really needs this.
It has a cached gui part that needs that trigger and it could be a good example to ponder over.
It's never to late to be late.....
http://martinrodensjo.smugmug.com/
User avatar
aliasant
smunatic
 
Posts: 2386
Joined: Sat Dec 30, 2006 5:49 pm
Location: Sweden

Next

Return to Bugs

Who is online

Users browsing this forum: No registered users and 1 guest