#N canvas 0 0 195 428 10; #N canvas 195 401 284 206 graph2 0; #X obj 23 53 tgl 15 0 pdon r_pdon On/Off 20 8 192 10 -262144 -1 -1 1 1; #X obj 24 112 tgl 15 0 jnd-sin jnd-r_sin Sinusoid 20 8 192 10 -262144 -1 -1 1 1; #X obj 24 133 tgl 15 0 jnd-saw jnd-r_saw Sawtooth 20 8 192 10 -262144 -1 -1 0 1; #X obj 24 154 tgl 15 0 jnd-square jnd-r_square Square 20 8 192 10 -262144 -1 -1 0 1; #X obj 213 48 vsl 15 101 0 100 0 0 vol r_vol Volume -13 -8 192 10 -262144 -1 -1 0 1; #X obj 213 152 bng 15 250 50 0 mute empty Mute -6 23 128 10 -262144 -1 -1; #N canvas 423 159 289 320 guts 0; #X obj 24 284 s r_vol; #X obj 67 236 r vol; #X obj 110 236 r mute; #N canvas 126 317 499 337 two_periodic_signals 0; #X obj 57 42 inlet; #X obj 128 42 inlet; #X obj 57 109 osc~; #X obj 90 109 osc~; #X obj 141 132 phasor~; #X obj 199 132 phasor~; #X obj 141 109 sig~; #X obj 199 109 sig~; #X obj 272 109 osc~; #X obj 350 109 osc~; #X obj 272 132 *~ 1000; #X obj 350 132 *~ 1000; #X obj 272 156 clip~ -1 1; #X obj 350 156 clip~ -1 1; #X text 57 21 freq1; #X text 128 21 freq2; #N canvas 210 347 454 304 signal_router 0; #X obj 21 18 inlet~; #X obj 72 18 inlet~; #X obj 122 18 inlet~; #X obj 21 211 outlet~; #X obj 21 186 *~; #X obj 72 186 *~; #X obj 122 186 *~; #X obj 37 158 line~; #X msg 37 133 \$1 20; #X obj 88 158 line~; #X msg 88 133 \$1 20; #X obj 138 158 line~; #X msg 138 133 \$1 20; #X obj 182 18 r jnd-sin; #X obj 264 17 r jnd-saw; #X obj 346 17 r jnd-square; #X obj 182 151 s jnd-r_sin; #X obj 265 150 s jnd-r_saw; #X obj 347 150 s jnd-r_square; #X obj 182 62 sel 1; #X obj 264 60 sel 1; #X obj 346 59 sel 1; #X obj 182 87 0; #X obj 264 87 0; #X obj 346 86 0; #X connect 0 0 4 0; #X connect 1 0 5 0; #X connect 2 0 6 0; #X connect 4 0 3 0; #X connect 5 0 3 0; #X connect 6 0 3 0; #X connect 7 0 4 1; #X connect 8 0 7 0; #X connect 9 0 5 1; #X connect 10 0 9 0; #X connect 11 0 6 1; #X connect 12 0 11 0; #X connect 13 0 8 0; #X connect 13 0 19 0; #X connect 14 0 10 0; #X connect 14 0 20 0; #X connect 15 0 12 0; #X connect 15 0 21 0; #X connect 19 0 22 0; #X connect 20 0 23 0; #X connect 21 0 24 0; #X connect 22 0 10 0; #X connect 22 0 12 0; #X connect 22 0 17 0; #X connect 22 0 18 0; #X connect 23 0 8 0; #X connect 23 0 12 0; #X connect 23 0 16 0; #X connect 23 0 18 0; #X connect 24 0 8 0; #X connect 24 0 10 0; #X connect 24 0 17 0; #X connect 24 0 16 0; #X restore 57 273 pd signal_router; #X obj 57 296 outlet~; #X obj 90 186 *~; #X obj 199 186 *~; #X obj 350 186 *~; #X obj 437 168 line~; #X msg 437 143 \$1 20; #X obj 437 118 r jnd-1on; #X connect 0 0 2 0; #X connect 0 0 6 0; #X connect 0 0 8 0; #X connect 1 0 3 0; #X connect 1 0 7 0; #X connect 1 0 9 0; #X connect 2 0 16 0; #X connect 3 0 18 0; #X connect 4 0 16 1; #X connect 5 0 19 0; #X connect 6 0 4 0; #X connect 7 0 5 0; #X connect 8 0 10 0; #X connect 9 0 11 0; #X connect 10 0 12 0; #X connect 11 0 13 0; #X connect 12 0 16 2; #X connect 13 0 20 0; #X connect 16 0 17 0; #X connect 18 0 16 0; #X connect 19 0 16 1; #X connect 20 0 16 2; #X connect 21 0 20 1; #X connect 21 0 19 1; #X connect 21 0 18 1; #X connect 22 0 21 0; #X connect 23 0 22 0; #X restore 24 87 pd two_periodic_signals; #X obj 180 63 r jnd-f2; #X obj 41 131 r jnd-2on; #X obj 80 131 r jnd-amp1; #X obj 130 131 r jnd-amp2; #X obj 179 131 r jnd-atoggle; #N canvas 414 112 367 276 amplitude_jnd 0; #X obj 48 24 inlet~; #X obj 48 244 outlet~; #X obj 105 24 inlet; #X obj 48 222 *~; #X obj 190 25 inlet; #X text 105 4 bypass; #X obj 105 101 sel 0 1; #X obj 105 127 1; #X obj 131 127 0; #X obj 105 197 line~; #X msg 105 175 \$1 20; #X text 48 4 signal; #X obj 174 185 *~; #X obj 190 143 line~; #X msg 190 121 \$1 20; #X obj 174 210 *~; #X obj 105 149 0; #X obj 131 149 1; #X obj 212 189 line~; #X msg 212 167 \$1 20; #X text 190 5 amp1; #X obj 234 25 inlet; #X text 234 5 amp2; #X obj 190 83 f; #X obj 234 83 f; #X obj 284 25 inlet; #X text 284 5 toggle; #X obj 284 50 sel 0 1; #X obj 190 55 / 100; #X obj 234 55 / 100; #X connect 0 0 3 0; #X connect 0 0 12 0; #X connect 2 0 6 0; #X connect 3 0 1 0; #X connect 4 0 28 0; #X connect 6 0 7 0; #X connect 6 0 16 0; #X connect 6 1 8 0; #X connect 6 1 17 0; #X connect 7 0 10 0; #X connect 8 0 10 0; #X connect 9 0 3 1; #X connect 10 0 9 0; #X connect 12 0 15 0; #X connect 13 0 12 1; #X connect 14 0 13 0; #X connect 15 0 1 0; #X connect 16 0 19 0; #X connect 17 0 19 0; #X connect 18 0 15 1; #X connect 19 0 18 0; #X connect 21 0 29 0; #X connect 23 0 14 0; #X connect 24 0 14 0; #X connect 25 0 27 0; #X connect 27 0 23 0; #X connect 27 1 24 0; #X connect 28 0 23 0; #X connect 29 0 24 0; #X restore 24 162 pd amplitude_jnd; #X obj 179 185 r jnd-f1; #X obj 179 232 s jnd-r_f1; #X msg 179 209 set \$1; #N canvas 55 252 454 304 initialize 0; #X msg 17 39 dsp \$1; #X obj 17 63 s pd; #X obj 82 15 loadbang; #X obj 82 39 1; #X obj 82 63 s r_pdon; #X obj 17 15 r pdon; #X obj 82 111 s jnd-r_sin; #X obj 82 87 s jnd-r_1on; #X obj 171 86 s jnd-r_3on; #X obj 171 63 s jnd-r_2on; #X obj 171 37 0; #X obj 82 133 s jnd-sin; #X obj 254 39 440; #X obj 254 63 s jnd-r_f1; #X obj 327 38 100; #X obj 327 108 s jnd-amp1; #X obj 327 82 s jnd-amp2; #X obj 254 88 s jnd-f2; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 2 0 10 0; #X connect 2 0 12 0; #X connect 2 0 14 0; #X connect 3 0 4 0; #X connect 3 0 0 0; #X connect 3 0 6 0; #X connect 3 0 7 0; #X connect 3 0 11 0; #X connect 5 0 0 0; #X connect 10 0 9 0; #X connect 10 0 8 0; #X connect 12 0 13 0; #X connect 12 0 17 0; #X connect 14 0 15 0; #X connect 14 0 16 0; #X restore 179 256 pd initialize; #N canvas 93 306 454 304 windows 0; #X obj 15 12 r jnd-1on; #X obj 15 35 sel 1; #X obj 15 58 0; #X obj 15 94 s jnd-r_1on; #X obj 97 35 sel 1; #X obj 97 58 0; #X obj 180 36 sel 1; #X obj 180 59 0; #X obj 97 12 r jnd-2on; #X obj 180 13 r jnd-3on; #X obj 97 94 s jnd-r_2on; #X obj 180 95 s jnd-r_3on; #X connect 0 0 1 0; #X connect 1 0 2 0; #X connect 2 0 10 0; #X connect 2 0 11 0; #X connect 4 0 5 0; #X connect 5 0 3 0; #X connect 5 0 11 0; #X connect 6 0 7 0; #X connect 7 0 3 0; #X connect 7 0 10 0; #X connect 8 0 4 0; #X connect 9 0 6 0; #X restore 179 281 pd windows; #N canvas 51 99 454 304 pitch_jnd 0; #X obj 30 207 outlet; #X obj 67 76 r jnd-3on; #X obj 145 55 r jnd-f3; #X obj 81 19 r jnd-ftoggle; #X obj 30 49 inlet; #X obj 30 178 spigot; #X obj 30 75 f; #X obj 67 135 0; #X obj 67 157 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 67 111 sel 1 0; #X obj 92 135 1; #X obj 145 176 spigot; #X obj 182 154 r jnd-3on; #X obj 145 80 f; #X obj 81 49 sel 0 1; #X connect 1 0 9 0; #X connect 2 0 13 0; #X connect 3 0 14 0; #X connect 4 0 6 0; #X connect 5 0 0 0; #X connect 6 0 5 0; #X connect 6 0 11 0; #X connect 7 0 8 0; #X connect 8 0 5 1; #X connect 9 0 7 0; #X connect 9 1 10 0; #X connect 10 0 8 0; #X connect 11 0 0 0; #X connect 12 0 11 1; #X connect 13 0 11 0; #X connect 14 0 6 0; #X connect 14 1 13 0; #X restore 24 55 pd pitch_jnd; #X obj 24 30 r jnd-f1; #N canvas 0 22 458 308 output 0; #X obj 333 148 t b; #X obj 333 98 f; #X obj 333 48 inlet; #X text 339 17 mute; #X obj 333 173 f; #X msg 421 168 0; #X msg 333 73 bang; #X obj 333 123 moses 1; #X obj 392 98 moses 1; #X obj 78 136 dbtorms; #X obj 392 73 r master-lvl; #X obj 78 30 r master-lvl; #X obj 333 198 s master-lvl; #X obj 15 143 inlet~; #X obj 194 29 inlet; #X text 194 6 level; #X obj 194 93 s master-lvl; #X msg 91 53 set \$1; #X obj 91 78 outlet; #X msg 209 53 \; pd dsp 1; #X obj 78 186 line~; #X obj 15 195 *~; #X obj 15 220 dac~; #X obj 78 161 pack 0 50; #X text 15 120 audio; #X text 91 102 show level; #X obj 421 143 t b; #X obj 15 169 hip~ 1; #X connect 0 0 4 0; #X connect 1 0 7 0; #X connect 2 0 6 0; #X connect 4 0 12 0; #X connect 5 0 12 0; #X connect 6 0 1 0; #X connect 7 0 0 0; #X connect 7 1 26 0; #X connect 8 1 4 1; #X connect 9 0 23 0; #X connect 10 0 1 1; #X connect 10 0 8 0; #X connect 11 0 9 0; #X connect 11 0 17 0; #X connect 13 0 27 0; #X connect 14 0 16 0; #X connect 14 0 19 0; #X connect 17 0 18 0; #X connect 20 0 21 1; #X connect 21 0 22 0; #X connect 21 0 22 1; #X connect 23 0 20 0; #X connect 26 0 5 0; #X connect 27 0 21 0; #X restore 24 259 pd output ---; #X connect 1 0 17 1; #X connect 2 0 17 2; #X connect 3 0 9 0; #X connect 4 0 3 1; #X connect 5 0 9 1; #X connect 6 0 9 2; #X connect 7 0 9 3; #X connect 8 0 9 4; #X connect 9 0 17 0; #X connect 10 0 12 0; #X connect 12 0 11 0; #X connect 15 0 3 0; #X connect 16 0 15 0; #X connect 17 0 0 0; #X restore 20 13 pd guts; #X coords 0 1 100 -1 170 200 1; #X restore 8 14 graph; #X text 21 101 Signal Type:; #X text 35 23 Global Controls:; #N canvas 186 0 432 428 question1 0; #X text 135 106 Freq 1; #X text 200 106 Freq 2; #N canvas 356 280 280 123 graph3 0; #X floatatom 43 83 5 0 20000 0 - - -; #X obj 85 83 s jnd-f1; #X floatatom 167 83 5 0 20000 0 - - -; #X obj 208 83 s jnd-f2; #X obj 0 1 tgl 15 0 jnd-1on jnd-r_1on On/Off 20 8 192 10 -262144 -1 -1 0 1; #X obj 43 38 r jnd-r_f1; #X connect 0 0 1 0; #X connect 2 0 3 0; #X connect 5 0 0 0; #X coords 0 1 100 -1 150 75 1; #X restore 112 74 graph; #X text 7 3 1) Given two simultaneous \, periodic sounds \, how far does the second frequency have to be from the first so that you hear one \, steady sound? Does this change for different frequency ranges? For different types of signals?; #X text 7 159 Directions:; #X text 7 178 1) Make sure this part of the patch is turned on. There should be an X in the On/Off box in the top-left corner.; #X text 7 268 3) Choose a signal type. The default is sinusoid. You can change signal types by clicking the boxes in the global controls window.; #X text 7 210 2) Choose a value for Freq 1--the default is A440. You can do this by clicking in the box and dragging the mouse up and down (to increase and decrease respectively) or by typing a number into the box and hitting enter.; #X text 7 313 4) Set Freq 2 to the same value as Freq 1; #X text 7 332 5) Click in the Freq 2 box and drag the mouse so that the frequency slowly changes. When you hear a steady sound \, stop and record the two frequencies.; #X text 7 377 6) Repeat steps 2-4 with sawtooth and square waves at A440. Repeat steps 2-4 with a much lower sounding frequency and a much higher sounding frequency.; #X restore 25 315 pd question1; #N canvas 186 0 432 428 question2 0; #N canvas 457 237 282 144 graph4 0; #X floatatom 229 23 5 0 100 0 - - -; #X floatatom 228 81 5 0 100 0 - - -; #X obj 0 1 tgl 15 0 jnd-2on jnd-r_2on On/Off 20 8 192 10 -262144 -1 -1 0 1; #X obj 229 41 s jnd-amp1; #X obj 228 99 s jnd-amp2; #X obj 138 74 tgl 15 0 jnd-atoggle jnd-r_atoggle Toggle -12 -9 192 10 -262144 -1 -1 0 1; #X floatatom 56 71 5 0 20000 0 - - -; #X obj 56 89 s jnd-f1; #X obj 102 33 r jnd-r_f1; #X obj 166 12 r jnd-amp1; #X msg 175 37 set \$1; #X msg 172 96 set \$1; #X obj 163 72 r jnd-amp2; #X connect 0 0 3 0; #X connect 1 0 4 0; #X connect 6 0 7 0; #X connect 8 0 6 0; #X connect 9 0 10 0; #X connect 10 0 0 0; #X connect 11 0 1 0; #X connect 12 0 11 0; #X coords 0 1 100 -1 300 70 1; #X restore 53 54 graph; #X text 64 88 Freq 1; #X text 5 133 Directions:; #X text 5 152 1) Make sure this part of the patch is turned on. There should be an X in the On/Off box in the top-left corner.; #X text 255 66 Amp 1; #X text 255 92 Amp 2; #X text 8 4 2) What is your Just Noticeable Difference (JND) for amplitude? Is it different for different amplitude ranges? If so \, characterize the difference.; #X text 5 184 2) You will want to set your global level to a constant value. To do this \, bring the volume all the way down \, set Amp1 to 100 \, then bring the global volume up as high as is comfortable. ; #X text 5 242 3) Set both Amp1 and Amp2 to 100 . Note that both Amp1 and Amp2 are in linear units rather than decibels.; #X text 5 274 4) Change the value of Amp2 slightly.; #X text 5 293 5) Use the toggle button to toggle between Amp1 and Amp2. If you don't hear a difference \, change the value of Amp2 a little more and repeat until you do. Record the values for Amp1 and Amp2. ; #X text 5 350 6) Repeat steps 3-5 with Amp1 set to 30 and then to 10 .; #X restore 25 340 pd question2; #N canvas 203 41 432 428 question3 0; #N canvas 389 462 280 108 graph5 0; #X floatatom 203 23 5 0 20000 0 - - -; #X floatatom 203 65 5 0 20000 0 - - -; #X obj 0 1 tgl 15 0 jnd-3on jnd-r_3on On/Off 20 8 192 10 -262144 -1 -1 1 1; #X obj 56 63 tgl 15 0 jnd-ftoggle jnd-r_ftoggle Toggle -12 -9 192 10 -262144 -1 -1 0 1; #X obj 203 41 s jnd-f1; #X obj 203 83 s jnd-f3; #X obj 125 22 r jnd-r_f1; #X obj 125 59 r jnd-f3; #X msg 151 63 set \$1; #X connect 0 0 4 0; #X connect 1 0 5 0; #X connect 6 0 0 0; #X connect 7 0 8 0; #X connect 8 0 1 0; #X coords 0 1 100 -1 170 75 1; #X restore 107 78 graph; #X text 182 94 Freq 1; #X text 182 122 Freq 2; #X text 11 168 Directions:; #X text 11 192 1) Make sure this part of the patch is turned on. There should be an X in the On/Off box in the top-left corner.; #X text 10 251 3) Change the value of Freq2 slightly. You can input a decimal value by holding down shift while dragging in the box or by typing in a decimal value and pushing enter.; #X text 9 297 4) use the toggle button to toggle between Freq1 and Freq2. If you don't hear a difference \, change the value of Freq2 a little more and repeat until you do. Record the values for Freq1 and Freq2.; #X text 8 8 3) What is your JND for frequency? Is it different for different frequency ranges? If so \, characterize the difference.; #X text 11 229 2) Set both Freq1 and Freq2 to 440 Hz.; #X text 9 355 5) Repeat steps 2-4 with Freq1 set to 100 and 2000 Hz. ; #X restore 25 365 pd question3; #X text 8 220 To access the patch for; #X text 8 242 a question \, click the; #X text 8 264 appropriate box below.; #N canvas 200 0 418 428 help 0; #X obj 11 89 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1 ; #X obj 6 24 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1 ; #X floatatom 11 170 5 0 0 0 - - -; #X obj 11 373 vsl 15 40 0 127 0 0 empty empty empty 0 -8 0 8 -262144 -1 -1 0 1; #X text 6 2 Interface Help; #X text 30 23 Bang; #X text 31 89 Toggle; #X text 52 169 Number Box; #X text 35 371 Slider; #X text 11 41 A bang is a button that has no state (see toggle) and is used to trigger something. Clicking on one should do whatever the label next to it says.; #X text 11 109 A toggle is a button that has state (it either has an X in it or it does not). Toggles are often used as on/off switches \, with an X indicating that something has been turned on.; #X text 11 193 A number box lets you set values. You can enter things into a number box in two ways. The easiest way to enter a specific number is to click in the box \, type the desired number \, then press return. If would like to scroll through settings \, you can click in the box and move the mouse up or down while holding down the (left) button. This will scroll through by ones. To scroll through by hundredths \, hold down the shift key while scrolling. If a box won't let you scroll below or above a particular number \, it has been set not to let you slide past that number for some reason. Wile you can probably type the number in and have it work \, it might be a bad idea \, since the boundary was put there for a reason.; #X text 34 404 the slider bar up or down to change its value.; #X text 34 390 Sliders work a lot like number boxes. Click and drag ; #X restore 25 390 pd help; #N canvas 190 0 427 427 about 0; #X text 7 24 Beating occurs when two signals are close together in frequency. The constructive and destructive interference of their interaction can be heard as rhythmic beating. This lab explores the frequency threshold at which this beating becomes perceptible.; #X text 5 123 Just Noticeable Difference (Questions 2-3); #X text 7 5 Beating (Question 1); #X text 5 142 Have you ever done the experiment in which you didn't look and had someone poke you on your hand with two pins and moved them closer together until it felt like you were being poked by one pin \, rather than two? The closest together point at which you could tell that there were two pins was the Just Noticeable Difference (JND) for perceiving tactile sensation on your hand. If you repeat the process on your back \, the JND is much larger (usually a couple of cm vs. a couple of mm). Questions 2 and 3 have you measure your JND for amplitude and frequency respectively.; #X restore 25 290 pd about;