padawan12 a écrit :
Also found a f2note in iemlib which prints out things like C, C#.. for midi values and it helps to see those side by side with the intervals to get a fix on chords. I wonder if there's a corresponding note2f that takes symbols like A, B, C and spits out midi numbers?
Didn't find it, but I've just made an abstraction that does it,
you will need zexy and an updated version of pd.
(it's attached)
Patco.
#N canvas 489 6 458 353 10; #N canvas 404 9 514 428 note 0; #X obj 212 143 s2l; #X msg 248 119 symbol; #X obj 210 66 symbol; #X obj 203 11 inlet; #X obj 185 321 outlet; #X obj 352 272 outlet; #N canvas 0 0 533 407 drip 0; #X obj 64 206 list split 1; #X obj 64 123 until; #X obj 64 181 list append; #X obj 194 206 bang; #X text 146 90 First store list , then start the loop; #X text 163 118 "until" bangs its output until told to stop by a "bang" to its right inlet.; #X text 182 160 Store the remaining list.; #X text 239 205 third outlet of "split" tells us to stop.; #X obj 64 243 outlet; #X obj 64 57 inlet; #X text 237 44 From list-help.pd; #X obj 143 243 outlet; #X obj 64 86 t b a; #X connect 0 0 8 0; #X connect 0 1 2 1; #X connect 0 2 3 0; #X connect 0 2 11 0; #X connect 1 0 2 0; #X connect 2 0 0 0; #X connect 3 0 1 1; #X connect 9 0 12 0; #X connect 12 0 1 0; #X connect 12 1 2 1; #X restore 212 195 pd drip; #X obj 212 169 route list; #X obj 212 222 route symbol float; #X obj 212 271 list prepend; #X obj 212 92 t a b; #X obj 317 274 t l; #X obj 169 37 t b a; #X connect 0 0 7 0; #X connect 1 0 0 1; #X connect 2 0 10 0; #X connect 3 0 12 0; #X connect 6 0 8 0; #X connect 7 0 6 0; #X connect 8 0 4 0; #X connect 8 1 5 0; #X connect 9 0 11 0; #X connect 9 0 4 0; #X connect 10 0 0 0; #X connect 10 1 1 0; #X connect 11 0 9 1; #X connect 12 0 9 1; #X connect 12 1 2 0; #X restore 73 49 pd note name split; #X obj 69 81 sel C D E F G A B; #X msg 32 121 1; #X msg 65 121 3; #X msg 98 121 5; #X msg 133 122 6; #X msg 165 123 8; #X msg 197 122 10; #X msg 230 120 12; #X obj 149 177 i; #X floatatom 401 174 5 0 0 0 - - -; #X obj 17 29 t b a; #X obj 18 6 inlet; #X obj 178 307 outlet; #X obj 172 199 + 1; #X obj 199 228 i; #X obj 171 257 i; #X obj 241 157 b; #X obj 178 282 +; #X obj 323 225 * 12; #X connect 0 0 1 0; #X connect 0 1 10 0; #X connect 1 0 2 0; #X connect 1 1 3 0; #X connect 1 2 4 0; #X connect 1 3 5 0; #X connect 1 4 6 0; #X connect 1 5 7 0; #X connect 1 6 8 0; #X connect 1 7 17 0; #X connect 2 0 9 0; #X connect 3 0 9 0; #X connect 4 0 9 0; #X connect 5 0 9 0; #X connect 6 0 9 0; #X connect 7 0 9 0; #X connect 8 0 9 0; #X connect 9 0 14 0; #X connect 9 0 16 1; #X connect 10 0 19 0; #X connect 11 0 16 0; #X connect 11 1 0 0; #X connect 12 0 11 0; #X connect 14 0 15 1; #X connect 15 0 16 1; #X connect 16 0 18 0; #X connect 17 0 15 0; #X connect 18 0 13 0; #X connect 19 0 18 1;
#N canvas 493 443 454 215 12; #X msg 175 32 A#5; #X msg 220 34 C6; #X msg 263 33 B0; #X floatatom 174 124 5 0 0 0 - - -; #X msg 134 36 A#4; #X obj 176 95 note2f; #X connect 0 0 5 0; #X connect 1 0 5 0; #X connect 2 0 5 0; #X connect 4 0 5 0; #X connect 5 0 3 0;