View Full Version : heart beatting detector
felipegm
September 13th, 2003, 04:15 PM
hi
I´d like to make a heart beat machine, that one with the green line that shows the heart beatting pulse in a hospital.
anyone knows where I can find something about that?
thanks
Freddythunder
September 13th, 2003, 05:21 PM
Do you mean an actual machine to hook someone up to your computer to monitor their heart? ...No...I don't.
But to help you search, it's called an 'electrocardio gram'; or EKG for short.
felipegm
September 13th, 2003, 05:39 PM
No.
I mean doing an animation that simulates the monitor of this machine.
Freddythunder
September 13th, 2003, 06:19 PM
Do a search on EKG. I've contributed to two threads on the subject. It has been somewhat unresolved. I made one with dots and I think Kode made one with API that goes really fast, but it's a line. Either way, it'll get you started. If you need further help, you should post in one of those threads you find. That way myself and others will be emailed on the subject again. I would like to see a good example, because it's kind of hard to code.
I think one of the threads ended by someone makind the animation and just using a mask to uncover it. (-:
andr.in
September 14th, 2003, 01:54 AM
you mean a green line that shows the CPU usage or sth?
if not then it shouldn't be too hard...
Freddythunder
September 14th, 2003, 04:28 AM
I think he wants an emulation of a heart monitor machine with no input to it - just the animation. Got any ideas?
Freddythunder
September 14th, 2003, 04:47 AM
All praise the mighty thor..*klung klung*
..sorry that was Adventures In Babysitting
..BTW what happend to the movie quotes thing??? now that I'm thinking? (I don't think too often, so...) :P
mlk
September 14th, 2003, 04:58 AM
electrocardiogram
If you're into After Effects you can't find a more perfect link:
http://www.ayatoweb.com/ae_tips_e/ae08_e.html
Voetsjoeba
September 14th, 2003, 05:04 AM
Here's a little code Syko originally posted and which I modified a tiny little bit:
onClipEvent (load) {
this.lineStyle(1, 0x000000, 100);
x = 100;
this.moveTo(100, 0);
}
onClipEvent (enterFrame) {
x++;
if (x<=250) {
y = (x/100)*x/Math.cos(x)/x-30;
}
if (x>=250 && x<=450) {
y = (x/100)*x/Math.atan(x)/x-30;
}
lineTo(x, y);
}
grandsp5
September 14th, 2003, 05:14 AM
haha. in your code they die when x hits 450 voets :P
Voetsjoeba
September 14th, 2003, 05:26 AM
Yep :P It's not my code, it's Syko's :)
grandsp5
September 14th, 2003, 05:28 AM
uhh. your footer messed up the quick edit voets. It goes behind your footer....??
Voetsjoeba
September 14th, 2003, 05:31 AM
It's like that for every flash footer ...
grandsp5
September 14th, 2003, 05:45 AM
never actually had that before. guess i learn something new every day. Today I even learned 2 things.
1) Footers appear over quickedits
2) Midnight soccer is a bad idea when you are in a place filled with cops and are out after curfew.
mlk
September 14th, 2003, 06:11 AM
you guys have a curfew in the US ? I thought it was only in places occupied by the army (ie war ???)
andr.in
September 14th, 2003, 06:38 AM
voets!! :bad: Who gave permsiion to post my code!? :bad:
j/k :P
btw note: monitor by Syko, death by voets
;)
Voetsjoeba
September 14th, 2003, 06:39 AM
(-:
felipegm
September 14th, 2003, 09:43 AM
Voetsjoeba / Syko
That´s it what I´m lookinf for. thanks a lot!!!
My idea is to make this animation to be my preloader "bar".
How can we make the beginning of the line to be in the center of the animation all the time also?
andr.in
September 14th, 2003, 09:51 AM
np :)
umm... center of the animation... beginning of line.. umm..?
do you mean that the green stuff scrolls left all the time so the end of the line is visible..?
if so then add
_x--;
into enterFrame
...
Voetsjoeba
September 14th, 2003, 09:54 AM
How do you want your preloader to behave ? In other words, what do you want it to do ?
felipegm
September 14th, 2003, 10:46 AM
I´d like the line to scroll to the left so it´s beginning is all the time on the same x point.
I´m wondering if it´s possible to make the line to grow higher according to the totalloaded of the animation, so depending of the % of the movie is loaded, higher and lower the line will go.
Voetsjoeba
September 14th, 2003, 10:48 AM
I'm not sure I understand you ... you want it to scroll from left to right according to the bytes loaded or do you want it to grow/shrink according to the bytes loaded ? Or both ?
felipegm
September 14th, 2003, 10:57 AM
just to grow/shtink according to the bytes loaded. The scrolling is Ok with the _x--; code Syko posted.
--- 10% it grows a little, 20% a little more.... 100% it grows higher.
andr.in
September 14th, 2003, 11:04 AM
humm.... I'm not sure how to do it...
because I'm not in full control of that script since I don't know what sin and cos do.. :beam:
but maybe somebody does know a way...
lemme think.... :sigh:
Voetsjoeba
September 14th, 2003, 11:14 AM
Like this ?
onClipEvent (load) {
this.lineStyle(1, 0x000000, 100);
x = 100;
this.moveTo(100, 0);
h = 500
}
onClipEvent (enterFrame) {
x+=1;
h-=3
y = (x/h)*x/Math.cos(x)/x-30;
lineTo(x, y);
}
felipegm
September 14th, 2003, 11:23 AM
Sorry guys,
Maybe I´m not being clear enough...
I´d like to make this line a preloader bar, and put it at the beginning of a movie, and make it to grow/shrink according to the bytes loaded of the main movie.
Maybe istead of just growing/srhinkking the line according to the x point, make this grow according to the bytesloaded of the mainmovie. (preloader)
Voetsjoeba
September 14th, 2003, 11:27 AM
The h variable was just a test variable, it should be replaced by the value from your preloader. But anyway. I think I know what you want.
You want it to be stretched already, have it stand still, and let the "hills" grow according to the bytes loaded ?
felipegm
September 14th, 2003, 11:30 AM
It would be great!!!
I´m having lots of ideas, but they´re hard to make real...
It can be any way...
can start just like this you made, and the hills grow/shrink according to the bytes loaded.
Or it can start as a stretched line.
Any way would be nice.
Freddythunder
September 15th, 2003, 02:51 AM
Originally posted by that Phil dictator guy....
phreddy-
what phrenchy said;
what phrenchy said.....
word...:P
I've been away, that's a cool quickTime thing. I have yet to check out Voetsjoeba's (Syko's) code. I will do so soon. :beam:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.