Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of git@github.com:rjdj/rjlib
- Loading branch information
Showing
12 changed files
with
323 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,30 @@ | |||
#N canvas 130 140 804 514 10; | |||
#N canvas 377 58 582 570 REFERENCE 0; | |||
#X text 24 51 Summary:; | |||
#X text 24 91 Argument 0:; | |||
#X text 24 124 Inlet 0:; | |||
#X text 24 144 Inlet 1:; | |||
#X text 24 164 Outlet 0:; | |||
#X text 24 184 Outlet 1:; | |||
#X text 24 434 Tags:; | |||
#X text 24 334 See also:; | |||
#X text 24 31 Name: r_#accelerate; | |||
#X text 24 234 Description: Receives accelerometer data from iDevice | |||
; | |||
#X coords 0 -1 1 1 450 450 1 10 10; | |||
#X restore 5 48 pd REFERENCE; | |||
#X obj 5 18 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577 | |||
0; | |||
#X text 480 483 RjDj Library (https://github.com/rjdj/rjlib) - 2011 | |||
; | |||
#X obj 8 20 r_#accelerate; | |||
#X text 129 21 - receives accelerometer data; | |||
#X obj 576 176 r_#accelerate; | |||
#X obj 576 206 unpack f f f; | |||
#X floatatom 576 296 5 0 0 1 x_axis - -; | |||
#X floatatom 610 266 5 0 0 1 y_xis - -; | |||
#X floatatom 645 236 5 0 0 1 z_axis - -; | |||
#X connect 5 0 6 0; | |||
#X connect 6 0 7 0; | |||
#X connect 6 1 8 0; | |||
#X connect 6 2 9 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
#N canvas 130 140 200 230 10; | |||
#X obj 51 72 r #accelerate; | |||
#X obj 51 134 outlet; | |||
#X connect 0 0 1 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,29 @@ | |||
#N canvas 130 140 985 524 10; | |||
#N canvas 377 58 582 570 REFERENCE 0; | |||
#X text 24 51 Summary:; | |||
#X text 24 91 Argument 0:; | |||
#X text 24 124 Inlet 0:; | |||
#X text 24 144 Inlet 1:; | |||
#X text 24 164 Outlet 0:; | |||
#X text 24 184 Outlet 1:; | |||
#X text 24 434 Tags:; | |||
#X text 24 334 See also:; | |||
#X text 24 234 Description: Receives compass data from iDevice; | |||
#X text 24 31 Name: r_#compass; | |||
#X coords 0 -1 1 1 450 450 1 10 10; | |||
#X restore 5 48 pd REFERENCE; | |||
#X obj 5 18 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577 | |||
0; | |||
#X floatatom 502 145 10 0 0 1 Direction - -; | |||
#X obj 502 74 r_#compass; | |||
#X text 637 145 <- Compass outputs an angle (0-359 degrees) moving | |||
; | |||
#X text 655 158 clockwise.; | |||
#X text 655 178 e.g:; | |||
#X text 745 180 North - 0; | |||
#X text 745 200 East - 89; | |||
#X text 745 220 South - 179; | |||
#X text 745 240 West - 269; | |||
#X obj 8 20 r_#compass; | |||
#X text 129 21 - receives compass data; | |||
#X connect 3 0 2 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,23 @@ | |||
#N canvas 130 140 546 467 10; | |||
#X obj 41 89 t b; | |||
#X obj 41 59 metro 50; | |||
#X obj 41 29 loadbang; | |||
#X obj 41 119 rj_compass; | |||
#X text 115 121 This external is only instantiated on an iDevice; | |||
#X text 144 164 Send from 'get_sensor.pd' patch. This ensures that | |||
development and testing can be carried out on the desktop.; | |||
#X obj 71 169 r #compass; | |||
#X obj 41 249 sel -1; | |||
#X obj 74 276 outlet; | |||
#X msg 41 306 No compass detected; | |||
#X obj 41 209 change -100; | |||
#X obj 41 336 print r_#compass Error; | |||
#X connect 0 0 3 0; | |||
#X connect 1 0 0 0; | |||
#X connect 2 0 1 0; | |||
#X connect 3 0 10 0; | |||
#X connect 6 0 10 0; | |||
#X connect 7 0 9 0; | |||
#X connect 7 1 8 0; | |||
#X connect 9 0 11 0; | |||
#X connect 10 0 7 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
#N canvas 130 140 369 188 10; | |||
#X obj 133 66 r #gyro; | |||
#X obj 133 128 outlet; | |||
#X text 12 18 If nothing is outputted then the device does not have | |||
a gyroscope; | |||
#X connect 0 0 1 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,6 @@ | |||
#N canvas 130 140 369 188 10; | |||
#X obj 133 66 r #gyro; | |||
#X obj 133 128 outlet; | |||
#X text 12 18 If nothing is outputted then the device does not have | |||
a gyroscope; | |||
#X connect 0 0 1 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,36 @@ | |||
#N canvas 130 140 978 526 10; | |||
#N canvas 377 58 582 570 REFERENCE 0; | |||
#X text 24 51 Summary:; | |||
#X text 24 91 Argument 0:; | |||
#X text 24 124 Inlet 0:; | |||
#X text 24 144 Inlet 1:; | |||
#X text 24 164 Outlet 0:; | |||
#X text 24 184 Outlet 1:; | |||
#X text 24 434 Tags:; | |||
#X text 24 334 See also:; | |||
#X text 24 31 Name: r_#loc; | |||
#X text 24 234 Description: Receives location data from iDevice; | |||
#X coords 0 -1 1 1 450 450 1 10 10; | |||
#X restore 5 48 pd REFERENCE; | |||
#X obj 5 18 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577 | |||
0; | |||
#X obj 8 20 r_#loc; | |||
#X text 129 21 - receives location informaton; | |||
#X obj 522 295 unpack f f f; | |||
#X floatatom 522 385 5 0 0 1 longitude - -; | |||
#X obj 522 245 spigot 0; | |||
#X obj 567 225 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 | |||
1; | |||
#X floatatom 556 355 5 0 0 1 latitude - -; | |||
#X floatatom 591 325 5 0 0 1 accuracy - -; | |||
#X obj 522 194 r_#loc; | |||
#X text 549 82 The GPS output provides location based information (longitude | |||
and latitude). The accuracy of the data is shown by a third value that | |||
represents the radius (in meters) of a circle that the device is in. | |||
; | |||
#X connect 4 0 5 0; | |||
#X connect 4 1 8 0; | |||
#X connect 4 2 9 0; | |||
#X connect 6 0 4 0; | |||
#X connect 7 0 6 1; | |||
#X connect 10 0 6 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
#N canvas 130 140 562 370 10; | |||
#X obj 41 317 outlet; | |||
#X obj 41 148 pack f f f; | |||
#X obj 41 118 rj_loc; | |||
#X obj 41 89 t b; | |||
#X obj 41 59 metro 50; | |||
#X obj 41 29 loadbang; | |||
#X text 89 119 This external is only instantiated on an iDevice; | |||
#X text 180 147 Send from 'get_sensor.pd' patch. This ensures that | |||
development and testing can be carried out on the desktop.; | |||
#X obj 130 152 r #loc; | |||
#N canvas 0 22 366 441 NO_GPS 0; | |||
#X obj 112 88 unpack f f f; | |||
#X obj 181 118 == 0; | |||
#X obj 146 118 == 0; | |||
#X obj 112 118 == 0; | |||
#X obj 146 157 &&; | |||
#X obj 112 187 &&; | |||
#X obj 112 58 inlet; | |||
#X text 28 12 If GPS output is all zeros \, output error message; | |||
#X obj 112 247 == 0; | |||
#X obj 112 399 outlet; | |||
#X obj 112 217 change -100; | |||
#X obj 139 317 sel 0; | |||
#X obj 112 287 t f f; | |||
#X msg 139 339 GPS not detected; | |||
#X text 28 29 and turn off output; | |||
#X obj 139 361 print r_#loc Error; | |||
#X connect 0 0 3 0; | |||
#X connect 0 1 2 0; | |||
#X connect 0 2 1 0; | |||
#X connect 1 0 4 1; | |||
#X connect 2 0 4 0; | |||
#X connect 3 0 5 0; | |||
#X connect 4 0 5 1; | |||
#X connect 5 0 10 0; | |||
#X connect 6 0 0 0; | |||
#X connect 8 0 12 0; | |||
#X connect 10 0 8 0; | |||
#X connect 11 0 13 0; | |||
#X connect 12 0 9 0; | |||
#X connect 12 1 11 0; | |||
#X connect 13 0 15 0; | |||
#X restore 86 240 pd NO_GPS; | |||
#X obj 41 200 t a a; | |||
#X obj 41 276 spigot 1; | |||
#X connect 1 0 10 0; | |||
#X connect 2 0 1 0; | |||
#X connect 2 1 1 1; | |||
#X connect 2 2 1 2; | |||
#X connect 3 0 2 0; | |||
#X connect 4 0 3 0; | |||
#X connect 5 0 4 0; | |||
#X connect 8 0 10 0; | |||
#X connect 9 0 11 1; | |||
#X connect 10 0 11 0; | |||
#X connect 10 1 9 0; | |||
#X connect 11 0 0 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,43 @@ | |||
#N canvas 130 140 952 521 10; | |||
#N canvas 377 58 582 570 REFERENCE 0; | |||
#X text 24 51 Summary:; | |||
#X text 24 91 Argument 0:; | |||
#X text 24 124 Inlet 0:; | |||
#X text 24 144 Inlet 1:; | |||
#X text 24 164 Outlet 0:; | |||
#X text 24 184 Outlet 1:; | |||
#X text 24 434 Tags:; | |||
#X text 24 334 See also:; | |||
#X text 24 31 Name: r_#time; | |||
#X text 24 234 Description: Receives time and data information from | |||
iDevice; | |||
#X coords 0 -1 1 1 450 450 1 10 10; | |||
#X restore 5 48 pd REFERENCE; | |||
#X obj 5 18 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577 | |||
0; | |||
#X obj 542 105 unpack f f f f f f f f f f; | |||
#X obj 542 74 r_#time; | |||
#X floatatom 542 412 5 0 0 1 Year - -; | |||
#X floatatom 559 382 5 0 0 1 Month - -; | |||
#X floatatom 576 352 5 0 0 1 Day_of_the_Month - -; | |||
#X floatatom 593 322 5 0 0 1 Day_of_the_Week - -; | |||
#X floatatom 610 292 5 0 0 1 Day_of_the_Year - -; | |||
#X floatatom 627 262 5 0 0 1 Time_Zone - -; | |||
#X floatatom 644 232 5 0 0 1 Hour - -; | |||
#X floatatom 661 202 5 0 0 1 Minute - -; | |||
#X floatatom 678 172 5 0 0 1 Second - -; | |||
#X floatatom 695 142 5 0 0 1 Millisecond - -; | |||
#X text 626 74 <- Receives time and date data from iDevice; | |||
#X obj 8 20 r_#time; | |||
#X text 129 21 - receives time and data information; | |||
#X connect 2 0 4 0; | |||
#X connect 2 1 5 0; | |||
#X connect 2 2 6 0; | |||
#X connect 2 3 7 0; | |||
#X connect 2 4 8 0; | |||
#X connect 2 5 9 0; | |||
#X connect 2 6 10 0; | |||
#X connect 2 7 11 0; | |||
#X connect 2 8 12 0; | |||
#X connect 2 9 13 0; | |||
#X connect 3 0 2 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,26 @@ | |||
#N canvas 130 140 525 347 10; | |||
#X obj 43 275 outlet; | |||
#X obj 43 116 t b; | |||
#X obj 43 86 metro 50; | |||
#X obj 43 56 loadbang; | |||
#X obj 43 186 pack f f f f f f f f f f; | |||
#X obj 43 146 rj_time; | |||
#X obj 73 226 r #time; | |||
#X text 98 146 This external is only instantiated on an iDevice; | |||
#X text 128 220 Send from 'get_sensor.pd' patch. This ensures that | |||
development and testing can be carried out on the desktop.; | |||
#X connect 1 0 5 0; | |||
#X connect 2 0 1 0; | |||
#X connect 3 0 2 0; | |||
#X connect 4 0 0 0; | |||
#X connect 5 0 4 0; | |||
#X connect 5 1 4 1; | |||
#X connect 5 2 4 2; | |||
#X connect 5 3 4 3; | |||
#X connect 5 4 4 4; | |||
#X connect 5 5 4 5; | |||
#X connect 5 6 4 6; | |||
#X connect 5 7 4 7; | |||
#X connect 5 8 4 8; | |||
#X connect 5 9 4 9; | |||
#X connect 6 0 0 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,58 @@ | |||
#N canvas 130 140 973 515 10; | |||
#N canvas 377 58 582 570 REFERENCE 0; | |||
#X text 24 51 Summary:; | |||
#X text 24 91 Argument 0:; | |||
#X text 24 124 Inlet 0:; | |||
#X text 24 144 Inlet 1:; | |||
#X text 24 164 Outlet 0:; | |||
#X text 24 184 Outlet 1:; | |||
#X text 24 434 Tags:; | |||
#X text 24 334 See also:; | |||
#X text 24 31 Name: r_#touch; | |||
#X text 24 234 Description: Receives touch data from iDevice; | |||
#X coords 0 -1 1 1 450 450 1 10 10; | |||
#X restore 5 48 pd REFERENCE; | |||
#X obj 5 18 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577 | |||
0; | |||
#X obj 8 20 r_#touch; | |||
#X text 129 21 - receives touch screen data; | |||
#X text 562 28 <- Receives touch data from iDevice; | |||
#X obj 487 79 route xy up down; | |||
#X obj 487 349 unpack f f f; | |||
#X floatatom 487 439 5 0 0 1 touch_no - -; | |||
#X floatatom 521 409 5 0 0 1 x_coord - -; | |||
#X floatatom 556 379 5 0 0 1 y_coord - -; | |||
#X obj 518 229 unpack f f f; | |||
#X floatatom 518 319 5 0 0 1 touch_no - -; | |||
#X floatatom 552 289 5 0 0 1 x_coord - -; | |||
#X floatatom 587 259 5 0 0 1 y_coord - -; | |||
#X obj 549 110 unpack f f f; | |||
#X floatatom 549 200 5 0 0 1 touch_no - -; | |||
#X floatatom 583 170 5 0 0 1 x_coord - -; | |||
#X floatatom 618 140 5 0 0 1 y_coord - -; | |||
#X text 750 160 the finger touches the screen; | |||
#X text 601 79 <- Various messages are sent depending on the interaction | |||
; | |||
#X text 751 279 the finger leaves the screen; | |||
#X text 556 213 ------------------------------------------------------------ | |||
; | |||
#X text 520 332 ------------------------------------------------------------ | |||
; | |||
#X text 748 394 'xy' events are sent as; | |||
#X text 748 264 'up' events are sent as; | |||
#X text 747 145 'down' events are sent as; | |||
#X text 751 409 the finger moves around; | |||
#X obj 487 28 r_#touch; | |||
#X connect 5 0 6 0; | |||
#X connect 5 1 10 0; | |||
#X connect 5 2 14 0; | |||
#X connect 6 0 7 0; | |||
#X connect 6 1 8 0; | |||
#X connect 6 2 9 0; | |||
#X connect 10 0 11 0; | |||
#X connect 10 1 12 0; | |||
#X connect 10 2 13 0; | |||
#X connect 14 0 15 0; | |||
#X connect 14 1 16 0; | |||
#X connect 14 2 17 0; | |||
#X connect 27 0 5 0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,4 @@ | |||
#N canvas 130 140 166 233 10; | |||
#X obj 45 80 r #touch; | |||
#X obj 45 142 outlet; | |||
#X connect 0 0 1 0; |