Skip to content

Commit

Permalink
notdur
Browse files Browse the repository at this point in the history
  • Loading branch information
porres committed Dec 11, 2023
1 parent bacd34f commit 2cd6da5
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 46 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#N canvas 458 31 562 419 10;
#N canvas 442 53 562 419 10;
#X obj 4 294 cnv 3 550 3 empty empty inlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 4 330 cnv 3 550 3 empty empty outlets 8 12 0 13 #dcdcdc #000000 0;
#X obj 4 361 cnv 3 550 3 empty empty flags 8 12 0 13 #dcdcdc #000000 0;
Expand All @@ -10,13 +10,13 @@
#X coords 0 -1 1 1 252 42 2 100 100;
#X restore 305 3 pd;
#X obj 345 11 cnv 10 10 10 empty empty ELSE 0 15 2 30 #7c7c7c #e0e4dc 0;
#X obj 23 40 cnv 4 4 4 empty empty Get\ note\ duration\ as\ a\ fraction\ or\ float 0 28 2 18 #e0e0e0 #000000 0;
#X obj 23 40 cnv 4 4 4 empty empty Convert\ note\ duration\ symbol\ to\ ratio 0 28 2 18 #e0e0e0 #000000 0;
#X obj 458 11 cnv 10 10 10 empty empty EL 0 6 2 13 #7c7c7c #e0e4dc 0;
#X obj 478 11 cnv 10 10 10 empty empty Locus 0 6 2 13 #7c7c7c #e0e4dc 0;
#X obj 515 11 cnv 10 10 10 empty empty Solus' 0 6 2 13 #7c7c7c #e0e4dc 0;
#X obj 464 26 cnv 10 10 10 empty empty ELSE 0 6 2 13 #7c7c7c #e0e4dc 0;
#X obj 502 26 cnv 10 10 10 empty empty library 0 6 2 13 #7c7c7c #e0e4dc 0;
#X obj 3 3 cnv 15 301 42 empty empty notedur 20 20 2 37 #e0e0e0 #000000 0;
#X obj 3 3 cnv 15 301 42 empty empty notedur2ratio 20 20 2 37 #e0e0e0 #000000 0;
#N canvas 0 22 450 278 (subpatch) 0;
#X coords 0 1 100 -1 302 42 1 0 0;
#X restore 3 3 graph;
Expand All @@ -35,30 +35,30 @@
#X text 147 338 float/symbol;
#X text 227 338 - converted duration to fraction or float;
#X text 188 369 -f: sets output to float (default fraction);
#N canvas 491 122 432 355 common-tulpets 0;
#X listbox 178 305 11 0 0 0 - - - 0;
#X msg 172 171 4nt;
#X msg 182 196 4nq;
#X msg 192 220 4ns;
#X msg 198 244 4nn;
#X listbox 282 301 11 0 0 0 - - - 0;
#X msg 276 167 16nt;
#X msg 286 192 16nq;
#X msg 296 216 16ns;
#X msg 302 240 16nn;
#X listbox 78 305 11 0 0 0 - - - 0;
#X msg 72 171 2nt;
#X msg 82 196 2nq;
#X msg 92 220 2ns;
#X msg 98 244 2nn;
#X msg 62 151 2nd;
#X msg 162 151 4nd;
#X msg 266 147 16nd;
#X text 70 23 Examples of common tuplets abbreviated by letters:, f 38;
#X text 161 50 'd' for duplet \; 't' for triplet \; 'q' for quintuplet \; 's' for septuplet \; 'n' for nonuplet.;
#X obj 78 276 else/notedur;
#X obj 178 276 else/notedur;
#X obj 282 272 else/notedur;
#N canvas 491 122 507 370 common-tulpets 0;
#X listbox 206 309 11 0 0 0 - - - 0;
#X msg 200 175 4nt;
#X msg 210 200 4nq;
#X msg 220 224 4ns;
#X msg 226 248 4nn;
#X listbox 340 309 11 0 0 0 - - - 0;
#X msg 334 175 16nt;
#X msg 344 200 16nq;
#X msg 354 224 16ns;
#X msg 360 248 16nn;
#X listbox 76 309 11 0 0 0 - - - 0;
#X msg 70 175 2nt;
#X msg 80 200 2nq;
#X msg 90 224 2ns;
#X msg 96 248 2nn;
#X msg 60 153 2nd;
#X msg 190 153 4nd;
#X msg 324 153 16nd;
#X text 116 30 Examples of common tuplets abbreviated by letters:, f 38;
#X text 207 57 'd' for duplet \; 't' for triplet \; 'q' for quintuplet \; 's' for septuplet \; 'n' for nonuplet.;
#X obj 76 280 else/notedur2ratio;
#X obj 206 280 else/notedur2ratio;
#X obj 340 280 else/notedur2ratio;
#X connect 1 0 21 0;
#X connect 2 0 21 0;
#X connect 3 0 21 0;
Expand Down Expand Up @@ -92,7 +92,7 @@
#X text 234 255 <= try one yourself;
#X msg 121 205 4n.[7:4];
#X text 180 204 <== dotted tuplets are also possible as in here (you can't use 's' in this case and you can use 'd' instead of "." as well as ".."/"dd" for double dotted), f 54;
#X obj 92 293 else/notedur;
#X obj 92 293 else/notedur2ratio;
#X connect 2 0 13 0;
#X connect 4 0 13 0;
#X connect 5 0 13 0;
Expand All @@ -104,26 +104,26 @@
#X msg 294 193 128n;
#X msg 264 193 64n;
#X msg 178 193 4n;
#N canvas 491 122 446 307 dotted-notes 0;
#X listbox 192 244 11 0 0 0 - - - 0;
#X msg 162 122 4nd;
#X msg 203 149 4n.;
#X msg 192 122 4ndd;
#X msg 232 149 4n..;
#X text 51 23 Dotted notes are possible with "." \, which is also the same as 'd' (for duplet) \, so you can consider 'd' as an abreviattion for 'dotted' as well. Double dotted notes are possible with ".." or "dd" (for 'double dotted).;
#N canvas 491 122 457 307 dotted-notes 0;
#X listbox 202 244 11 0 0 0 - - - 0;
#X msg 172 122 4nd;
#X msg 213 149 4n.;
#X msg 202 122 4ndd;
#X msg 242 149 4n..;
#X text 67 30 Dotted notes are possible with "." \, which is also the same as 'd' (for duplet) \, so you can consider 'd' as an abreviattion for 'dotted' as well. Double dotted notes are possible with ".." or "dd" (for 'double dotted).;
#X listbox 80 244 11 0 0 0 - - - 0;
#X listbox 306 237 11 0 0 0 - - - 0;
#X listbox 326 237 11 0 0 0 - - - 0;
#X msg 50 122 2nd;
#X msg 80 122 2ndd;
#X msg 91 149 2n.;
#X msg 120 149 2n..;
#X msg 276 122 8nd;
#X msg 306 122 8ndd;
#X msg 317 149 8n.;
#X msg 346 149 8n..;
#X obj 80 205 else/notedur;
#X obj 192 205 else/notedur;
#X obj 306 205 else/notedur;
#X msg 296 122 8nd;
#X msg 326 122 8ndd;
#X msg 337 149 8n.;
#X msg 366 149 8n..;
#X obj 80 205 else/notedur2ratio;
#X obj 202 205 else/notedur2ratio;
#X obj 326 205 else/notedur2ratio;
#X connect 1 0 17 0;
#X connect 2 0 17 0;
#X connect 3 0 17 0;
Expand All @@ -150,7 +150,7 @@
#X msg 157 144 8nt_8ns;
#X msg 93 59 4n[5:7];
#X symbolatom 117 278 15 0 0 0 - - - 0;
#X obj 117 243 else/notedur;
#X obj 117 243 else/notedur2ratio;
#X connect 0 0 9 0;
#X connect 3 0 9 0;
#X connect 4 0 9 0;
Expand All @@ -159,8 +159,8 @@
#X connect 7 0 9 0;
#X connect 9 0 8 0;
#X restore 477 243 pd ties;
#X obj 207 228 else/notedur;
#X text 46 86 [notedur] converts from a note duration syntax to a fractional notation or a float. The syntax is: '1n' for whole note \, '2n' for half note \, '4n' for quarter note \, '8n' for eighth note (and so on down to 128n). Dotted notes are possible and you can add tuplets to the symbol in the [x:y] format or you can add the following letters to specify most common tuplets: 'd' for duplet \, 't' for triplet \, 'q' for quintuplet \, 's' for septuplet and 'n' for nonuplet. Tied notes are also possible with "_". Details in the examples below., f 80;
#X obj 207 228 else/notedur2ratio;
#X text 46 86 [notedur2ratio] converts from a note duration symbolic syntax to a ratio (either as fraction or float). The syntax is: '1n' for whole note \, '2n' for half note \, '4n' for quarter note \, '8n' for eighth note (and so on down to 128n). Dotted notes are possible and you can add tuplets to the symbol in the [x:y] format or you can add the following letters to specify most common tuplets: 'd' for duplet \, 't' for triplet \, 'q' for quintuplet \, 's' for septuplet and 'n' for nonuplet. Tied notes are also possible with "_". Details in the examples below., f 80;
#X connect 19 0 36 0;
#X connect 20 0 36 0;
#X connect 21 0 36 0;
Expand Down

0 comments on commit 2cd6da5

Please sign in to comment.