switch~ing voices [was: Re: [PD] nqpoly4 simple instructions?]

Frank Barknecht fbar at footils.org
Mon Dec 11 14:38:40 CET 2006


Hallo,
Roman Haefeli hat gesagt: // Roman Haefeli wrote:

> the attached patch shows that the subpatch is [switch~]ed off too early,
> but not [switch~]ed on too late.
> 
> > So for tight timing switching on has to be done at least one block *in
> > advance*. 
> 
> if i interprete correctly, what your patch is telling me, then one would
> have to switch *off* one block *later*. it wouldn't be necessary to know
> in advance, when to switch on, though. it seems like it is enough to add
> 1.5ms to each [delay] that schedules the switch-off-messages. 

Ah, yes, you're right: I didn't interpret the patch correctly.
Attached is another version which allows to test different delay times
and also lets you compare a switched off with a non-switched signal.
It shows, that timing is indeed no problem when switching off
subpatches, which is good news to me.

Ciao
-- 
 Frank Barknecht                 _ ______footils.org_ __goto10.org__
-------------- next part --------------
#N canvas 198 109 908 626 10;
#N canvas 0 0 450 300 (subpatch) 0;
#X array \$0-scope 512 float 0;
#X array \$0-scope2 512 float 0;
#X coords 0 1 511 0 200 140 1;
#X restore 415 108 graph;
#X obj 700 292 s \$0-scope;
#X msg 700 267 xticks 0 16 4;
#X obj 109 290 tabwrite~ \$0-scope;
#X obj 109 82 metro 5;
#X obj 109 22 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 628 250 loadbang;
#X msg 628 271 \; pd dsp 1;
#X floatatom 153 51 5 0 0 0 - - -;
#X obj 129 263 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 148 137 tgl 15 0 empty empty auto-switch 17 7 1 10 -262144 -1
-1 1 1;
#X obj 200 238 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 200 259 metro 100;
#N canvas 0 0 450 300 switcher~ 0;
#X obj 59 40 inlet;
#X obj 163 235 switch~;
#X msg 163 188 1;
#X msg 197 189 0;
#X obj 58 237 outlet~;
#X obj 73 108 b;
#X obj 59 208 vline~;
#X obj 272 165 loadbang;
#X obj 163 19 inlet;
#X obj 73 72 spigot;
#X obj 163 73 select 0;
#X msg 197 120 stop;
#X msg 59 184 0.5 \, 0 0 2;
#X obj 197 161 del 4;
#X obj 332 33 inlet;
#X connect 0 0 12 0;
#X connect 0 0 9 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 2 0;
#X connect 5 0 13 0;
#X connect 6 0 4 0;
#X connect 7 0 3 0;
#X connect 8 0 10 0;
#X connect 8 0 9 1;
#X connect 9 0 5 0;
#X connect 10 0 2 0;
#X connect 10 0 11 0;
#X connect 11 0 13 0;
#X connect 12 0 6 0;
#X connect 13 0 3 0;
#X connect 14 0 13 1;
#X restore 109 174 pd switcher~;
#X obj 51 380 dac~;
#X obj 51 356 *~ 0;
#X obj 74 336 dbtorms;
#X obj 77 318 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 6500 1;
#X obj 261 137 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 700 321 s \$0-scope2;
#X obj 244 291 tabwrite~ \$0-scope2;
#N canvas 0 0 450 300 switcher-small 0;
#X obj 59 40 inlet;
#X obj 163 235 switch~;
#X msg 163 188 1;
#X msg 197 189 0;
#X obj 58 237 outlet~;
#X obj 73 108 b;
#X obj 59 208 vline~;
#X obj 272 165 loadbang;
#X obj 163 19 inlet;
#X obj 73 72 spigot;
#X obj 163 73 select 0;
#X msg 197 120 stop;
#X msg 59 184 0.2 \, 0 0 2;
#X obj 197 161 del 4;
#X obj 361 22 inlet;
#X connect 0 0 12 0;
#X connect 0 0 9 0;
#X connect 2 0 1 0;
#X connect 3 0 1 0;
#X connect 5 0 2 0;
#X connect 5 0 13 0;
#X connect 6 0 4 0;
#X connect 7 0 3 0;
#X connect 8 0 10 0;
#X connect 8 0 9 1;
#X connect 9 0 5 0;
#X connect 10 0 2 0;
#X connect 10 0 11 0;
#X connect 11 0 13 0;
#X connect 12 0 6 0;
#X connect 13 0 3 0;
#X connect 14 0 13 1;
#X restore 204 175 pd switcher-small;
#X floatatom 318 139 5 0 0 1 delay - -;
#X msg 318 118 4;
#X obj 318 96 loadbang;
#X connect 2 0 1 0;
#X connect 2 0 19 0;
#X connect 4 0 13 0;
#X connect 4 0 21 0;
#X connect 5 0 4 0;
#X connect 6 0 7 0;
#X connect 6 0 2 0;
#X connect 8 0 4 1;
#X connect 9 0 3 0;
#X connect 9 0 20 0;
#X connect 10 0 13 1;
#X connect 11 0 12 0;
#X connect 12 0 3 0;
#X connect 12 0 20 0;
#X connect 13 0 3 0;
#X connect 13 0 15 0;
#X connect 15 0 14 1;
#X connect 15 0 14 0;
#X connect 16 0 15 1;
#X connect 17 0 16 0;
#X connect 18 0 21 1;
#X connect 21 0 20 0;
#X connect 22 0 21 2;
#X connect 22 0 13 2;
#X connect 23 0 22 0;
#X connect 24 0 23 0;


More information about the Pd-list mailing list