#N struct 1017-symarray float x array symbols 1017-sym;
#N struct 1017-sym symbol name float on;
#N struct 1021-symarray float x array symbols 1021-sym;
#N struct 1021-sym symbol name float on;
#N canvas 259 119 1021 505 10;
#X msg 544 163 print;
#X msg 564 193 dump;
#X floatatom 604 272 5 0 0 1 Lookup - -;
#X symbolatom 504 337 10 0 0 0 - - -;
#X obj 504 312 u_samplekit2 <optional_prefix>;
#X msg 584 242 size \$1;
#X floatatom 584 223 5 0 0 0 - - -;
#N canvas 698 281 582 570 REFERENCE 0;
#X text 24 31 Name: [u_samplekit2];
#X text 24 434 Tags: Audio \, Playback;
#X text 24 81 Argument 0: <symbol> - Optional prefix to the table names.
Otherwise reverts to '\$0'.;
#X text 24 394 See also: [u_samplekit] [u_multisamplebank2] [m_symbolarray]
[s_playtable2];
#X text 24 184 Outlet 1: Upon recieving a 'dump' message to Inlet 0
\, this outlet will dump the current mapping to the second outlet as
lists of '<index> <table>'.;
#X text 24 124 Inlet 0: Various control messages - see Example.;
#X text 24 51 Summary: Load a directory of stereo samples.;
#X text 24 154 Outlet 0: Table names.;
#X text 24 244 Description: Loads a directory of stereo samples (a
"kit") into numbered tables. The lookup by number will report the base
name of the two tables of a stereo file. The samplekit must have a
text file mapping sample names to numbers. The default name of this
file is "index.txt" \, but you can overwrite the name inside the "open"
message. After a kit was loaded you can look up the actual table names
by sending a number to the [u_samplekit2]'s first inlet. It will then
send out the matching table name to its first outlet. The full names
are generated by appending "-1" for the left and "-2" for the right
channel.;
#X coords 0 -1 1 1 450 450 1 10 10;
#X restore 11 41 pd REFERENCE;
#X obj 11 11 cnv 15 450 20 empty empty empty 20 12 0 14 -261234 -66577
0;
#X text 474 44 Example:;
#X text 650 475 RjDj Library (https://github.com/rjdj/rjlib) - 2011
;
#X obj 14 13 u_samplekit2;
#X text 135 14 - load a directory of stereo samples;
#X text 601 193 Dump the current mapping to the second outlet.;
#X text 587 164 Print the current mapping.;
#X text 638 236 Size <index>: report size of table at <index> in samples
to 2nd outlet.;
#X text 620 104 Open samplekits.;
#X text 805 133 Loads a map "index.txt".;
#X msg 504 103 open ./*PATH*/;
#X msg 524 133 open ./*PATH*/ <alternate_mapping.txt>;
#X connect 0 0 4 0;
#X connect 1 0 4 0;
#X connect 2 0 4 0;
#X connect 4 0 3 0;
#X connect 5 0 4 0;
#X connect 6 0 5 0;
#X connect 18 0 4 0;
#X connect 19 0 4 0;
