how to simulate a human heart beat?

Sep 23, 2007 at 8:02pm

how to simulate a human heart beat?

Hi,

I want to simulate with max msp (human body) sounds.
But i am not a sound engineer. :?

Mainly i am searching for a way to simulate a heart beat and the beep sound from an ECG (elektrocardiogram).
> http://nl.wikipedia.org/wiki/Elektrocardiogram
+ heart beat soundfile in attachment

Tips, trics, tutorials or … are all welkom.

Thanks, bart

#33775
Sep 23, 2007 at 10:15pm

have you seen the EKG patcher in multislider.help?

#P window setfont “Fixedwidth Serif” 10.;
#P window linecount 1;
#P newex 66 397 27 1441802 *~;
#P newex 81 368 40 1441802 pink~;
#P flonum 208 304 62 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 217 271 82 1441802 loadmess 150;
#P newex 52 470 64 1441802 adoutput~;
#P user scope~ 53 497 403 656 256 3 128 -1. 1. 0 0. 0 0. 102 255 51
135 135 135 0;
#P newex 256 463 34 1441802 dac~;
#P newex 262 441 27 1441802 *~;
#P newex 346 393 46 1441802 cycle~;
#P newex 341 272 154 1441802 scale -1. 1. 20. 100. 1.;
#P newex 210 333 46 1441802 cycle~;
#P flonum 262 60 62 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 277 34 76 1441802 loadmess 75;
#P newex 350 361 40 1441802 line~;
#P flonum 397 315 62 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 408 290 76 1441802 loadmess 25;
#P newex 380 334 27 1441802 f;
#P newex 350 310 40 1441802 t f b;
#P newex 338 246 46 1441802 r EKG2;
#P newex 327 415 27 1441802 *~;
#P newex 55 312 40 1441802 line~;
#P flonum 102 266 62 10 0 0 0 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 117 240 76 1441802 loadmess 25;
#P newex 85 285 27 1441802 f;
#P newex 55 261 40 1441802 t f b;
#P newex 56 240 46 1441802 r EKG1;
#P newex 399 148 46 1441802 s EKG2;
#P newex 327 148 46 1441802 s EKG1;
#P newex 327 92 82 1441802 unpack 0. 0.;
#P window setfont “Sans Serif” 9.;
#N vpatcher 30 70 508 558;
#P origin 0 11;
#P inlet 112 27 15 0;
#P window setfont “Sans Serif” 9.;
#P newex 131 137 27 196617 – 2;
#P comment 44 268 100 196617 1st order iir filter;
#P newex 167 449 27 196617 + 0.;
#P newex 202 422 38 196617 * -0.7;
#P newex 202 399 27 196617 f 0.;
#P newex 202 374 27 196617 t f b;
#P newex 62 385 52 196617 pack 0. 0.;
#P newex 167 322 27 196617 + 0.;
#P newex 167 275 45 196617 * 0.005;
#P newex 167 346 27 196617 + 0.;
#P newex 167 375 33 196617 * 0.5;
#P newex 216 300 33 196617 * 0.1;
#P newex 216 280 27 196617 f 0.;
#P newex 216 255 27 196617 t f b;
#P newex 188 140 29 196617 * -1;
#P newex 131 167 27 196617 +;
#P newex 131 111 50 196617 random 4;
#P newex 188 110 27 196617 + 5;
#P newex 188 87 50 196617 random 8;
#P newex 131 84 42 196617 del 100;
#P newex 62 221 27 196617 t f b;
#P message 112 212 14 196617 0;
#P newex 62 199 27 196617 + 0.;
#P newex 62 292 39 196617 * 0.09;
#P newex 62 315 27 196617 + 0.;
#P newex 62 141 38 196617 / 500.;
#P newex 62 116 28 196617 – 50;
#P newex 62 82 62 196617 random 100;
#P newex 183 31 41 196617 + 1200;
#P newex 183 10 62 196617 random 200;
#P newex 131 53 62 196617 metro 1000;
#P outlet 62 411 15 0;
#P inlet 62 25 15 0;
#P newex 62 53 50 196617 metro 40;
#P newex 99 315 39 196617 * 0.91;
#P comment 212 336 100 196617 2nd order iir filter;
#P connect 3 0 2 0;
#P connect 2 0 8 0;
#P connect 8 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 13 0;
#P connect 13 0 15 0;
#P connect 15 0 12 0;
#P connect 12 0 11 0;
#P connect 11 0 29 0;
#P connect 29 0 4 0;
#P connect 18 0 13 1;
#P connect 20 0 13 1;
#P connect 14 0 13 1;
#P connect 1 0 11 1;
#P connect 11 0 1 0;
#P connect 36 0 2 1;
#P connect 26 0 29 1;
#P connect 15 1 14 0;
#P connect 3 0 5 0;
#P connect 5 0 16 0;
#P connect 16 0 19 0;
#P connect 19 0 35 0;
#P connect 35 0 20 0;
#P connect 21 0 20 1;
#P connect 15 0 27 0;
#P connect 27 0 28 0;
#P connect 28 0 26 0;
#P connect 26 0 25 0;
#P connect 25 0 33 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 5 1;
#P connect 24 0 28 1;
#P connect 33 0 26 1;
#P connect 32 0 33 1;
#P connect 5 0 17 0;
#P connect 17 0 18 0;
#P connect 18 0 21 0;
#P connect 26 0 30 0;
#P connect 30 1 31 0;
#P connect 31 0 32 0;
#P connect 15 0 22 0;
#P connect 22 1 23 0;
#P connect 23 0 24 0;
#P connect 30 0 31 1;
#P connect 22 0 23 1;
#P pop;
#P newobj 38 63 33 196617 p EKG;
#P user multiSlider 38 93 88 103 -1. 1. 2 3192 15 0 0 2 0 0 0;
#M frgb 0 15 132;
#M brgb 249 218 164;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P user multiSlider 128 94 157 65 -1. 1. 2 3961 15 0 0 2 0 0 0;
#M frgb 176 6 26;
#M brgb 199 240 189;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P toggle 38 35 15 0;
#P window linecount 2;
#P comment 56 36 188 196617 < -- turn on the medical equipment to
monitor Max’s heartbeat;
#P window setfont “Fixedwidth Serif” 10.;
#P window linecount 3;
#P comment 148 188 286 1441802 I haven’t taken the idea very far ,
but you can see where I’m coming from (multislider.help) ; sdf;
#P connect 2 0 5 0;
#P connect 5 0 4 0;
#P connect 30 0 29 0;
#P connect 9 0 10 0;
#P connect 10 0 14 0;
#P connect 23 0 5 1;
#P connect 14 0 34 0;
#P connect 33 0 34 1;
#P connect 10 1 11 0;
#P connect 11 0 14 1;
#P connect 12 0 13 0;
#P connect 13 0 11 1;
#P connect 5 0 3 0;
#P connect 31 0 32 0;
#P connect 32 0 24 0;
#P connect 27 0 28 0;
#P connect 22 0 23 0;
#P connect 14 0 27 0;
#P connect 34 0 27 0;
#P connect 15 0 27 1;
#P connect 27 0 28 1;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 24 0 15 0;
#P connect 16 0 25 0;
#P connect 26 0 15 1;
#P connect 21 0 26 0;
#P connect 25 0 17 0;
#P connect 17 0 21 0;
#P connect 17 1 18 0;
#P connect 18 0 21 1;
#P connect 19 0 20 0;
#P connect 20 0 18 1;
#P connect 6 1 8 0;
#P window clipboard copycount 35;

On 23/09/2007, bart wrote:
> Hi,
>
> I want to simulate with max msp (human body) sounds.
> But i am not a sound engineer. :?
>
>
> Mainly i am searching for a way to simulate a heart beat and the beep sound from an ECG (elektrocardiogram).
> > http://nl.wikipedia.org/wiki/Elektrocardiogram
> + heart beat soundfile in attachment
>
> Tips, trics, tutorials or … are all welkom.
>
>
>
> Thanks, bart
>
>
>
>

#112999
Sep 24, 2007 at 12:38pm

Maybe a clich

#113000
Sep 24, 2007 at 4:04pm

i remember playing around with 2d.wave~ using it could be a goodway~
especially in low values
DJ YO

#113001
Sep 24, 2007 at 4:37pm

also a bass drum sample (not the ones of the GM tones) with a kind of amplitude envelope for attenuating the attack

#113002
Sep 24, 2007 at 5:41pm

I’d just sequence it – cut the du-dunk of the heart sound in two, and
then just trigger them like a regular sample – no need to reinvent the
wheel, provided you find the right sounds.

#113003
Sep 24, 2007 at 9:12pm

Thank you all for nice and fast reply!

I gonna try:

“…using some kind of impulse (with click~, for example) and a static lowpass filter with the cutoff between 50 and 200 Hz (try) and some resonance (try to increase Q from 0.7 to 10, for example).”
+
“… 2d.wave~ using it could be a goodway~ …”
+

“… I’d just sequence it – cut the du-dunk of the heart sound in two, and then just trigger them like a regular sample – no need to reinvent the wheel, provided you find the right sounds.”

I sequence already heartbeat samples but i wanna create it so that i have more control over it plus a clear sound. Because i have find after hours of research on internet only and a lot of heartbeat samples with a lot of noise on the background.

Is there somebody out there how has a url or clear heart beat samples?

Grzz, Bart

#113004
Sep 25, 2007 at 7:10am

> du-dunk of the heart sound

In French, it would be P’-P’m

Sorry or my morning indiscipline…

pa

#113005
Sep 25, 2007 at 11:05am

Samuel, could you possibly re-post your ECG patch?
Does’t work at present, I think there are maybe some lines missing from the text?

Cheers..

#113006
Sep 25, 2007 at 11:23am

It is also in the multislider.help like Samuel has sayed.

I can’t use it but maybe you.
I haven’t had the time to test the other tips.

“… du-dunk of the heart sound In French, it would be P’-P’m …”
In dutch it will be bu-bunk. :)

Grzz, Bart

#113007
Sep 25, 2007 at 3:19pm

I think it’s a modified form of the helpfile though – the original patch has no audio!

#113008
Sep 26, 2007 at 10:33am

the simplest way is probably to use a square or rectangle wave at very low frequency (about 1Hz) and tune the pulse width correctly

you may add a lp filter too (with some low frequency resonance) …

#113009
Sep 28, 2007 at 8:14am

bart schrieb:
> Is there somebody out there how has a url or clear heart beat
> samples?

Search for sounds at http://freesound.iua.upf.edu/

Stefan


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com

#113010
Sep 29, 2007 at 10:57pm

Pink noise a.k.a 1/f noise.

” In biological systems, it is present in heart beat rhythms and the statistics of DNA sequences.”
-wikipedia
Link: http://en.wikipedia.org/wiki/Pink_noise

“The time series made up of intervals between successive R peaks (reflecting muscle contractions) of the electrocardiogram of the human heart has an approximately power spectrum; the slope of the log-log plot in Figure 2C is about 1.075 over several decades of frequency.”
-Scholarpedia
Link: http://www.scholarpedia.org/wiki/index.php?title=1/f_Noise&redirect=no

Sound sample attached.

Note: Filtration of “white” noise is only an approximation.

ehdyn

#113011
Sep 30, 2007 at 4:50pm
#113012

You must be logged in to reply to this topic.