musicien / compositeur / développeur multimedia

Forum

 
This Forum is Currently Locked – Access is Read Only
Current User: Guest Login
Please consider registering


Register? | Lost Your Password?

Search Forums:


 






Wildcard Usage:
*    matches any number of characters
%    matches exactly one character

positioning prolem inside bpatcher

Add a New Topic Reply to Post
UserPost

20:02
8 juillet 2009


alp

Turkey

Member

posts 6

hi,

 I've developed musical interface with MMF for my multitouch screen.

I have two sections in my interface and user can navigate between these two sections with a smooth animations. For instance; when user tour on second section, content of the second section slides 1300 px to left.

When I'm at first section (first section opens default at startup), there is no problem. Everything in bpatcher works fine. However, when I slide through 1300 px to left in bpatcher, I cannot control the content of the second section.

And weird thing is, when I touch onto secreen in the second section, content of the first section is changing!!

I hope, I tell it exactly 

7:11
9 juillet 2009


admin

Admin

posts 49

Hi,

MMF can't know by himself if something has changed in an interface ; you must tell him when he has to analyse the postions of objets in the patch (that's what appens when you bring a new interface to front in the template patch).

so : if you change or move the content of an interface patch (manually or by scripting) , you need to send a bang to "mmf.interface <youInterfaceName>" inlet (or send a bang to "<youInterfaceName>_updatecoll" ).

If you move things INSIDE a bpatcher : same problem, same solution, send a bang to "<youBpatcherName>_updatecoll" (bpatcher name must be it's first argument as well..)

In your case, send this bang at the end of your transition animation.

M.


3:13
11 juillet 2009


alp

Turkey

Member

posts 6

Thanks. But it isnot working.

I got what you mean and tried it. I sent a bang to "mybpatchername_updatebpatchercoll" when animation totally finished as you suggested. However, It did not work.

I have attached a demo patch to show you how my setup is. If you please check it and tell me what is wrong, I will be happy. I've stucked about this animation problem.Here is my example patch. You should run firstly "Start_Squatouch.maxpat"

http://alptugan.com/blog/wp-co…..ch_exp.rar

9:02
11 juillet 2009


admin

Admin

posts 49

Hi alp

in your patch, you change bpatcher display offset, not objects position. it can't work like this ; MMF is based on objects positions in a patch.
To let this kind of trick work, MMF should use the "offset" attribute when analysing the content of a bpatcher, and apply this offset to objects position (and disable objects that are outside the visible area – using "presentation_rect" attribute…). This may be added in a future version… but for the moment, I would advice you to avoid using bpatcher offset ; a repalcement solution would be to use 2 different bpatchers ("touch" & "mix"), and move them in your interface. (and don't forget to refresh objects position with a bang sent to "Run_Squatouch_updatecoll" (refresh content of your interface named Run_Squatouch)

M

23:13
11 juillet 2009


alp

Turkey

Member

posts 6

Thanks for your suggestion. It is working now .)

When I finish designing of interface, I send it to you.

You've saved a huge time of mine.

19:48
12 juillet 2009


alp

Turkey

Member

posts 6

Hi Mathieu,

one last question;

I am using two waveform~ object in the same interface patcher (not in bpatcher).

I've typed different scripting names for waveform~ and related objects.

I can control first one regularly. However, I could not control second waveform~ object.

Do I need to change some parameters?

11:02
15 juillet 2009


admin

Admin

posts 49

you should be able to use as many waveforms~ as you like.
just make sure that you set mmf.waveform~'s first argument to the scripting name of your waveform~…

(same thing for mmf.umenu 1rst arg and umenu scripting name)

M


Reply to Topic:
positioning prolem inside bpatcher

Guest Name (Required):

Guest Email (Required):

Smileys
Confused Cool Cry Embarassed Frown Kiss Laugh Smile Surprised Wink Yell
Post New Reply

Guest URL (required)

Math Required!
What is the sum of:
6 + 7
   


About the Mathieu Chamagne Forum

Most Users Ever Online: 34

Currently Online:
5 Guests

Currently Browsing this Topic:
1 Guest

Forum Stats:

Groups: 1
Forums: 6
Topics: 56
Posts: 138

Membership:

There are 15 Members
There have been 41 Guests

There is 1 Admin

Top Posters:

ghostandthemachine – 9
alp – 6
lossius – 2
davidestevens – 2
deenasharonn – 1

Recent New Members: deenasharonn, davidestevens

Administrators: admin (49 Posts)



 

»crosslinked«