ok.here is a version using [pow~ -1] to replace [>~ 0] it should work with vanilla pd version >= 0.42 and with rjdj. and certainly with pd-extended.
cyrille
Enrique Erne a écrit :
unfortunately <~ is still missing in pd-0.42
"5.1. release notes New pow~, log~, exp~, abs~, and 'wrap' objects."
Frank Barknecht wrote:
Hallo, cyrille henry hat gesagt: // cyrille henry wrote:
I think, currently it's probably a bit slower because of the sin(), but maybe that could be put into a tabread~.
i think the sin object is doing a linear interpolation in a 512 point table. (don't know how it is done in expr~, but expr~ is not used for rjlib because of it's licence, right?)
Attached is an expr-less version of saw~ which from a quick glance at the scope looks and sounds the same. It is vanilla in that it uses [abs~] and [>~] which are part of 0.42 (and thus RjDj). On older Pd versions you can use for example the purepd abstractions for both from the SVN in abstractions/purepd
Ciao
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
#N canvas 232 120 652 594 10; #X obj 105 96 phasor~; #X obj 176 131 -~ 0.5; #X obj 311 179 *~ 2; #X obj 218 204 wrap~; #X obj 219 230 *~ 2; #X obj 219 255 -~ 1; #X obj 349 178 /~; #X obj 348 153 sig~ 22050; #X obj 311 206 *~; #X obj 312 228 abs~; #X obj 311 250 +~ 1.8955; #X obj 106 49 inlet~; #X obj 87 542 outlet~; #X obj 348 104 samplerate~; #X obj 348 81 loadbang; #X obj 348 127 * 0.5; #X obj 174 427 +~; #N canvas 104 42 701 480 sin(x)/x 0; #X obj 220 229 cos~; #X obj 221 204 -~ 0.25; #X msg 288 90 1; #X floatatom 288 162 5 0 0 0 - - -; #X obj 288 116 atan; #X obj 288 137 * 8; #X obj 220 181 /~ 6.238; #X obj 288 67 loadbang; #X obj 221 148 inlet~; #X obj 219 291 outlet~; #X obj 220 255 /~; #X connect 0 0 10 0; #X connect 1 0 0 0; #X connect 2 0 4 0; #X connect 3 0 6 1; #X connect 4 0 5 0; #X connect 5 0 3 0; #X connect 6 0 1 0; #X connect 7 0 2 0; #X connect 8 0 6 0; #X connect 8 0 10 1; #X connect 10 0 9 0; #X restore 311 280 pd sin(x)/x; #X obj 220 379 *~; #X text 247 374 v2*sin(v4)/v4; #X text 208 426 + v3; #X obj 87 482 -~; #X obj 175 183 pow~ -1; #X connect 0 0 1 0; #X connect 0 0 21 1; #X connect 1 0 2 0; #X connect 1 0 3 0; #X connect 1 0 22 0; #X connect 2 0 8 0; #X connect 3 0 4 0; #X connect 4 0 5 0; #X connect 5 0 18 0; #X connect 6 0 8 1; #X connect 7 0 6 0; #X connect 8 0 9 0; #X connect 9 0 10 0; #X connect 10 0 17 0; #X connect 11 0 0 0; #X connect 11 0 6 1; #X connect 13 0 15 0; #X connect 14 0 13 0; #X connect 15 0 7 0; #X connect 16 0 21 0; #X connect 17 0 18 1; #X connect 18 0 16 1; #X connect 21 0 12 0; #X connect 22 0 16 0;