hi
i'm pretty new to pd so this might be a stupid question, so sorry if it is.
i'm trying to take in coordinates from a tablet (using gemtablet) and you use them to play midi notes
my problem is that they come in together to quickly and it bangs the note twice rapidly. i've tried to stop this by using the spigot but they are the messages are being sent to the makenote object within a milisecond of each other. is there any object that would take the first message and ignore the rest
thats for reading
ronan
try the [speedlim] object, a sort of sample&hold utility for messages.
it's in the "cyclone" library (its site seems to be temporarily down) as well as in "IEMlib" (http://iem.kug.ac.at/~musil/iemlib/).
if you want just the FIRST message of a message-series, you should try [once] (that's an abstraction in "IEMLIB").
ciao
oliver
Ronan Tighe wrote:
hi
i'm pretty new to pd so this might be a stupid question, so sorry if it is.
i'm trying to take in coordinates from a tablet (using gemtablet) and you use them to play midi notes
my problem is that they come in together to quickly and it bangs the note twice rapidly. i've tried to stop this by using the spigot but they are the messages are being sent to the makenote object within a milisecond of each other. is there any object that would take the first message and ignore the rest
thats for reading
ronan
PD-list mailing list PD-list@iem.at http://iem.at/cgi-bin/mailman/listinfo/pd-list
Hi Ronan,
Ronan Tighe wrote:
my problem is that they come in together to quickly and it bangs the note twice rapidly. i've tried to stop this by using the spigot but they are the messages are being sent to the makenote object within a milisecond of each other. is there any object that would take the first message and ignore the rest
The problem is to "debounce" your stream of numbers. Try this. I use it with a Kaos Pad. The full patch [for using Kaos Pad controller] is here:
http://pure-data.iem.at/Members/derek/kaos.tools.zip/view
good luck, d.
derek holzer wrote:
is there any object that would take the first message and ignore the rest
The problem is to "debounce" your stream of numbers. Try this.
Sorry, was missing one thing here....
Try this one instead. I can't remember what lib [gate] comes from, maybe zexy?
d.
cyclone has a Max/MSP compatible [gate] which in my opinion is much more useful than the IEMlib [gate], which is just a different version of [spigot]. The cyclone [gate] allows you to choose between a number of outlets.
.hc
On Wednesday, Apr 14, 2004, at 18:10 America/New_York, derek holzer wrote:
derek holzer wrote:
is there any object that would take the first message and ignore the rest
The problem is to "debounce" your stream of numbers. Try this.
Sorry, was missing one thing here....
Try this one instead. I can't remember what lib [gate] comes from, maybe zexy?
d.
-- derek holzer ::: http://www.umatic.nl ---Oblique Strategy # 175: "What are the sections sections of? Imagine a caterpillar moving" #N canvas 110 102 1010 706 12; #X obj 119 129 spigot; #X obj 119 108 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 119 155 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X obj 185 156 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; #X obj 217 102 nbx 5 14 0 5000 0 1 empty empty empty 0 -6 0 10 -262144 -1 -1 152.02 256; #X text 216 82 threshold - if no activity for x seconds , reopen the spigot; #X obj 185 129 del 200; #X msg 185 204 1; #X obj 218 203 -; #X obj 185 182 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 -1; #X text 249 203 1 if active , 0 if not; #X obj 86 77 inlet; #X obj 119 334 outlet; #X obj 218 235 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1; #X obj 119 305 gate 0; #X connect 0 0 2 0; #X connect 1 0 0 0; #X connect 2 0 3 0; #X connect 2 0 6 0; #X connect 3 0 0 1; #X connect 3 0 8 1; #X connect 3 0 9 0; #X connect 4 0 6 1; #X connect 6 0 3 0; #X connect 7 0 8 0; #X connect 8 0 13 0; #X connect 9 0 7 0; #X connect 11 0 1 0; #X connect 11 0 14 0; #X connect 13 0 14 1; #X connect 14 0 12 0;
http://at.or.at/hans/