#N canvas 76 245 606 788 12; #X obj -45 504 cnv 15 600 150 empty empty empty 20 12 0 14 -261682 -66577 0; #X obj -45 484 cnv 15 600 20 empty empty SOUND_SYNTHESIS 20 12 0 14 -1 -262144 0; #X obj 19 615 *~ 0.1; #X obj 20 515 osc~; #X msg 130 557 0.5; #X msg 98 557 0.1; #X msg 164 557 0.8; #X msg 66 556 0; #X text 53 513 <--- Oscillator; #X text 204 557 <--- Gain (Volume): predefined values; #X obj -45 682 cnv 15 600 100 empty empty empty 20 12 0 14 -261234 -66577 0; #X obj 19 730 dac~; #X text -33 755 Sends audio to output; #X msg 204 708 \; pd dsp 1; #X msg 111 707 \; pd dsp 0; #X text 112 690 AUDIO OFF; #X text 202 690 AUDIO ON; #X obj -44 660 cnv 15 600 20 empty empty SOUND_OUTPUT 20 12 0 14 -1 -262144 0; #X obj -47 308 cnv 15 600 20 empty empty SOUND_CONTROL 20 12 0 14 -1 -262144 0; #X obj -47 329 cnv 15 600 150 empty empty empty 20 12 0 14 -262130 -66577 0; #N canvas 1136 447 453 631 2D_synthesizer 0; #X obj -318 -446 cnv 15 450 500 empty empty 2D_Synthesizer 150 12 1 20 -191407 -4160 0; #X obj -292 -400 grid grid1 400 30 880 400 0 1 0 1 0.05 10 10 -179 -76; #X obj -290 5 send dim_X; #X obj 34 7 send dim_Y; #X connect 1 0 2 0; #X connect 1 1 3 0; #X restore -26 338 pd 2D_synthesizer; #X floatatom 20 394 5 0 0 0 - - -; #X floatatom 111 449 5 0 1 0 - - -; #X text 64 395 <--- Oscillation frequency: for manual adjustment; #X text 158 450 <--- Gain (Volume): for manual adjustment [0..1]; #X text 121 371 <--- X coord from 2-dimensional control space; #X obj 20 370 receive dim_X; #X text 210 425 <--- Y coord from 2-dimensional control space; #X obj 111 425 receive dim_Y; #X text 103 338 <--- 2-dimensional control space: left click to open it!; #X obj -46 -1 cnv 15 600 160 empty empty INTRODUCTION 20 12 0 16 -233017 -258113 0; #X text -27 23 In this preparatory exercise you use one oscillator for generating sound. The frequency and the sound level of the oscillator is provided by one of the 2 coordinates (X \, Y) which are received from a 2-dimensional space.; #X obj -47 165 cnv 15 600 140 empty empty CONNECTION_WITH_THE_OTHER_LABORATORY_SESSIONS 20 12 0 16 -228856 -258113 0; #X obj 378 133 makenote; #X obj 448 134 noteout; #X text -27 86 1 Test the patch and describe what it is happening; #X text -27 109 2 Propose an alternative mapping for the 2 coordinates ; #X text -27 133 3 Substitute osc~ with a MIDI synthesizer: check objects ; #X text 123 274 <-- UDP \, port 3001 (you can change the port number) ; #X text -28 190 This pd patch will be uwsed also in combination with the other three oratory laboratory sessions (vision \, speech \, haptic). Instead of receiving the data via the 2-dimensional control space \, you will receive the data via udp transport layer protocol using the following object:; #X obj 474 221 unpack i f; #X obj 391 204 print; #X obj 401 254 send dim_X; #X obj 478 254 send dim_Y; #X obj 431 174 netreceive 3001 1; #X obj 446 713 unpack i; #X msg 376 741 \; pd dsp \$1; #X obj 313 747 print; #X obj 330 688 netreceive 3002 1; #X connect 2 0 11 0; #X connect 2 0 11 1; #X connect 3 0 2 0; #X connect 4 0 2 1; #X connect 5 0 2 1; #X connect 6 0 2 1; #X connect 7 0 2 1; #X connect 21 0 3 0; #X connect 22 0 2 1; #X connect 26 0 21 0; #X connect 28 0 22 0; #X connect 40 0 42 0; #X connect 40 1 43 0; #X connect 44 0 40 0; #X connect 44 0 41 0; #X connect 45 0 46 0; #X connect 48 0 45 0; #X connect 48 0 47 0;