PD help

Marc Nostromo [M-.-n] EMAIL HIDDEN
Tue Nov 15 16:49:36 CET 2011


Thanks for that. Googling your terms made me find the "change" module that
does exactly what you describe !

2011/11/15 Martin Naef <mnaef at navisto.ch>

> On 15.11.2011 16:27, Marc Nostromo [M-.-n] wrote:
>
>> I'm trying to do some basic stuff in Pd and it turns hairy. Right now
>> I'm recieving a continuous signal that I restrict to 0 and 1's so my
>> stream now looks like
>>
>> 000001111000100100111111000000**00
>>
>> I would like to send a midi note on only when there's a change 0->1 &
>> 1->0. Any idea on how to achieve that ?
>>
>
> It's been a while since I did this kind of thing in Max, but I remember I
> had a similar issue when I wanted to filter out excessive data.
>
> My idea would go along those lines:
>
> Use a comparison operator that outputs a bang when left value != right
> value
>
> The bang triggers your midi
> The same bang also triggers an update of the right value in the comparator
> (in a sort of feedback loop)
>
> This works nicely because most operators only output when the left input
> has changed, not the right one (or the other way around...). Otherwise, a
> set X message usually works as well (it only sets the value, but doesn't
> trigger)
>
> How to store the last value to update the comparator? Use a value object
> that receives your input data, but prefix the data message with a SET so
> the value object doesn't output whenever it changes. Trigger the value
> instead with the output of the comparator.
>
> Does that help? It's hard to describe without having Max running in front
> of me...
>
> Martin
>
>
>
> ______________________________**_________________
> music-bar mailing list
> music-bar at lists.music-bar.org
> http://lists.music-bar.org/**cgi-bin/mailman/listinfo/**music-bar<http://lists.music-bar.org/cgi-bin/mailman/listinfo/music-bar>
>



-- 
http://nostromo.noisepages.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.music-bar.org/pipermail/music-bar/attachments/20111115/33e917be/attachment-0002.html>


More information about the music-bar mailing list