Browse Source

separate audio process for audio reading

Etienne Landon 7 years ago
parent
commit
fc1c2b8cc8
3 changed files with 57 additions and 263 deletions
  1. 1 0
      .gitignore
  2. 19 0
      extra/audioplayer.pd
  3. 37 263
      main.pd

+ 1 - 0
.gitignore

@@ -32,3 +32,4 @@
 /media/brouillardFade30s.mp4
 /media/essains.mov
 /media/mouche1.mov
+/media/ButterflyAMIENSOK100jpg.mov

+ 19 - 0
extra/audioplayer.pd

@@ -0,0 +1,19 @@
+#N canvas 86 625 481 374 10;
+#X obj 194 221 readsf~ 2;
+#X obj 194 256 dac~ 1 2;
+#X obj 276 247 env~;
+#X floatatom 276 269 5 0 0 0 - - -, f 5;
+#X obj 190 99 r sound;
+#X obj 317 261 - 100;
+#X symbolatom 24 69 30 0 0 2 audio - -, f 30;
+#X obj 394 26 loadbang;
+#X msg 394 48 \; pd dsp 1;
+#X obj 323 311 stdout;
+#X connect 0 0 1 0;
+#X connect 0 0 2 0;
+#X connect 0 1 1 1;
+#X connect 2 0 3 0;
+#X connect 2 0 5 0;
+#X connect 4 0 0 0;
+#X connect 5 0 9 0;
+#X connect 7 0 8 0;

+ 37 - 263
main.pd

@@ -1,55 +1,4 @@
-#N canvas 303 120 977 346 10;
-#X declare -stdpath moonlib;
-#X declare -stdpath hcs;
-#X declare -stdpath ggee;
-#X declare -lib ../extra/s2f -lib ../extra/slist;
-#X declare -lib ../extra/getdir -lib ../extra/shell;
-#X declare -lib ../extra/comport;
-#X declare -lib ../extra/folder_list -lib ../extra/stat -lib ../extra/uname
-;
-#X declare -stdpath zexy;
-#X declare -lib ../extra/zexy -lib zexy;
-#X declare -lib ../extra/getdir;
-#X declare -stdpath ggee;
-#X declare -lib ../extra/getdir;
-#X declare -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
+#N canvas 301 122 977 346 10;
 #X declare -path extra/evt/data -path extra/evt/data -path extra/evt/ev-in
 -path extra/evt/ev-main -path extra/evt/ev-pano -path extra/evt/ev-pro
 -path extra/evt/libs/gil -path extra/evt/libs/kollabs -path extra/evt/media
@@ -58,201 +7,7 @@
 iemlib -stdpath ggee -stdpath hcs -stdpath moonlib -path extra -path
 extra/PdTl -path extra/AutoPreset;
 #X declare -path extra/Fraise -path extra/tof;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -lib moonlib -stdpath moonlib -stdpath
-extra/moonlib;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#X declare -lib libdir -lib ggee -stdpath ggee;
-#N canvas 57 84 1178 687 VIDEO 0;
+#N canvas 55 86 1178 687 VIDEO 0;
 #X obj 4 7 cnv 15 400 350 empty empty empty 20 12 0 14 -261682 -66577
 0;
 #X obj 13 52 ev_gemwin;
@@ -457,7 +212,7 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X obj 206 537 fruit/send dimmer2;
 #X msg 287 445 1 65535;
 #X obj 125 277 * 655.35;
-#X obj 302 172 bng 15 250 50 0 empty empty connect 17 7 0 10 -24198
+#X obj 302 172 bng 15 250 50 0 empty empty connect 17 7 0 10 -258699
 -1 -262144;
 #X obj 402 137 route 0 1;
 #X msg 402 159 color 13;
@@ -618,7 +373,7 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X obj 17 252 tlLight \$0-Master light9 Song 11;
 #X obj 255 252 tlLight \$0-Master light10 Song 12;
 #X obj 731 120 tlLight \$0-Master light4 Song 6;
-#N canvas 200 226 1060 519 mediaplayers 0;
+#N canvas 515 460 1060 519 mediaplayers 1;
 #X obj 66 194 pix_film;
 #X msg 90 222 1;
 #X obj 115 279 limit 0.5 2;
@@ -630,10 +385,10 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X obj 273 204 list prepend /preview movie;
 #X obj 273 226 list trim;
 #X obj 273 248 s /preview;
-#X obj 574 325 readsf~ 2;
-#X obj 574 360 dac~ 1 2;
-#X obj 656 351 env~;
-#X floatatom 656 373 5 0 0 0 - - -, f 5;
+#X obj 750 362 readsf~ 2;
+#X obj 750 397 dac~ 1 2;
+#X obj 832 388 env~;
+#X floatatom 832 410 5 0 0 0 - - -, f 5;
 #X obj 570 203 r sound;
 #X obj 83 100 r video;
 #X msg 574 297 open media/\$1 \, 1;
@@ -647,7 +402,7 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X obj 570 245 route 0;
 #X obj 614 271 symbol;
 #X obj 631 105 vu 15 80 empty empty -1 -8 0 10 -66577 -1 0 0;
-#X obj 697 365 - 100;
+#X obj 873 402 - 100;
 #X symbolatom 404 173 30 0 0 2 audio - -, f 30;
 #X symbolatom 404 133 30 0 0 2 video - -, f 30;
 #X msg 282 160 symbol ---;
@@ -666,6 +421,16 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X obj 66 22 r movie-gemIn2;
 #X obj 66 356 scaleXYZ 0 0 0;
 #X obj 375 260 r button2;
+#X obj 828 301;
+#X obj 388 375 route 0 1;
+#X msg 388 397 pd~ stop;
+#X obj 390 462 pd~ -ninsig 2 -noutsig 2 -fifo 100;
+#X obj 388 353 r audio-state;
+#X msg 588 393 -nogui;
+#X msg 417 420 pd~ start extra/audioplayer.pd;
+#X obj 537 347 pp sound;
+#X obj 510 492 dac~ 1 2;
+#X obj 426 329 loadbang;
 #X connect 0 0 44 0;
 #X connect 0 1 1 0;
 #X connect 0 2 31 0;
@@ -687,7 +452,7 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X connect 13 0 28 0;
 #X connect 15 0 25 0;
 #X connect 16 0 18 0;
-#X connect 17 0 11 0;
+#X connect 17 0 53 0;
 #X connect 18 0 19 0;
 #X connect 18 0 30 0;
 #X connect 19 0 0 0;
@@ -695,12 +460,11 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X connect 20 0 41 0;
 #X connect 21 0 22 0;
 #X connect 23 0 21 0;
-#X connect 24 0 11 0;
+#X connect 24 0 53 0;
 #X connect 25 0 24 0;
 #X connect 25 1 26 0;
 #X connect 26 0 17 0;
 #X connect 26 0 29 0;
-#X connect 28 0 27 0;
 #X connect 31 0 30 0;
 #X connect 32 0 24 0;
 #X connect 33 0 42 0;
@@ -718,6 +482,16 @@ uses scene "0" of "ev_example_panoramic_preset.txt".;
 #X connect 43 0 5 0;
 #X connect 44 0 33 0;
 #X connect 45 0 20 0;
+#X connect 47 0 48 0;
+#X connect 47 1 52 0;
+#X connect 48 0 49 0;
+#X connect 49 0 27 0;
+#X connect 49 1 54 0;
+#X connect 49 2 54 1;
+#X connect 50 0 47 0;
+#X connect 52 0 49 0;
+#X connect 53 0 49 0;
+#X connect 55 0 52 0;
 #X coords 0 -1 1 1 250 90 1 400 100;
 #X restore 328 24 pd mediaplayers;
 #N canvas 213 98 1078 646 oldTl 0;
@@ -811,16 +585,16 @@ extra/evt/ev-pro -path extra/evt/libs/gil -path extra/evt/libs/kollabs
 #X connect 19 0 18 0;
 #X restore 17 3 pd stuff;
 #X restore 18 31 pd oldTl;
-#N canvas 440 148 754 494 sequencer 1;
+#N canvas 436 152 754 494 sequencer 0;
 #X obj 382 172 text define -k conduite;
 #A set scene entree \; sound 0 \; light1-val 0 0 \; light2-val 0 0
 \; light3-val 0 0 \; light4-val 0 0 \; light5-val 0 0 \; light6-val
 0 0 \; light7-val 0 0 \; light8-val 0 0 \; light9-val 0 0 \; light10-val
 0 0 \; light11-val 0 0 \; light12-val 0 0 \; 0 \; 1000 \; scene fadeout_tableaux
-\; light9-val 0 5000 \; sound choseavoir13042017VRendered.wav \; video
-brouillardH26413AVRIL.mov \; 2000 \; scene video_brouillard \; 2000
-\; scene depart_son \; 22000 \; scene dune_25%_16s \; light1-val 25
-11000 \; light2-val 25 11000 \; 91000 \; scene dune_0%_5s \; light1-val
+\; light9-val 0 5000 \; sound LACHOSEAVOIR7MNVRAIRenderedcut.wav \;
+video brouillardH26413AVRIL.mov \; 2000 \; scene video_brouillard \;
+2000 \; scene depart_son \; 22000 \; scene dune_25%_16s \; light1-val
+25 11000 \; light2-val 25 11000 \; 91000 \; scene dune_0%_5s \; light1-val
 0 5000 \; light2-val 0 5000 \; 7000 \; scene video_papillon \; video
 PAPILLONJAUNEDEF13_2.mov \; 3000 \; scene papillon_45%_3s \; light3-val
 43 3000 \; 49000 \; scene papillon_0%_1s \; light3-val 0 0 \; 5000
@@ -858,7 +632,7 @@ light7-val 80 0 \; 2000 \; scene fin \; light7-val 0 0 \; light8-val
 -1;
 #X obj 113 145 bng 15 250 50 0 cue empty cue 17 7 0 10 -262144 -1 -1
 ;
-#X obj 103 172 cnv 15 40 16 empty chrono 6:59 2 9 0 14 -233017 -66577
+#X obj 103 172 cnv 15 40 16 empty chrono 0:0 2 9 0 14 -233017 -66577
 0;
 #X obj 493 406 pack f f;
 #X obj 557 345 div 60;