[PD] how to prevent midi endless loops?

Roman Haefeli reduzierer at yahoo.de
Sun Feb 27 17:38:52 CET 2005


ciao

AFAIT the problem is, that both, your doepfer midi device and your patch
has a 'thru'-function. on the pd-side you can avoid this by using a [set
<float>(-msg, to set  the slider to certain value without sending the
value to [ctlout 7 1].
this may look like this:

[ctlin 7 1]
|
[set $1(
|
[hslider blablablabla]
|
[ctlout 7 1]

this works only if you can switch off the midi thru mode of the doepfer.
if this is not possible, the slider behaves quite nasty, because always
you move it, it is set to the value it had before. see attached patch to
solve this.

cheers
roman

----- Original Message -----
From: "wolfgang schwarzenbrunner" <schwarz at gen-control.com>
To: "pd-list" <pd-list at iem.at>
Sent: Sunday, February 27, 2005 2:28 PM
Subject: [PD] how to prevent midi endless loops?


> hi
>
> maybe a quiet simple question.... i need to use a midiinterface
(doepfer
> pocket dial) to control slidervalues in pd (windows -- xp 0.37). the
> problem is that i also want to change the values using the sliders in
the
> patch and having this data being sent back to the controller so that
there
> are no jumps in value when switching from screen to hardware
controller and
> back...
>
> finally i built up a very simple t b f b and spigot combination to
prevent
> stackoverflows within pd. this works pretty fine as long as i don`t
use
> mididata to control the sliders... attached is a little patch that
should
> explain...
>
> any help needed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smoothsliderwithmidictrl.pd
Type: application/octet-stream
Size: 691 bytes
Desc: not available
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20050227/7bc4ba64/attachment.obj>


More information about the Pd-list mailing list