<div dir="ltr">> <span style="font-size:12.8000001907349px">The Cream examples I looked at, only used create, not move and color.</span><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Indeed, you can't change the color or move a graphical object like tk does. In fact I'm not sure that this operations are really optimized (it depends on the OS) and I think this is mostly a kind of "shortcut" (whatever you do, tk has to redraw all the changed area). I've try wavesel~, and my approach would be to create a layer for the rectangle selection, a layer for the whole waveform, a layer for the colored (selected) waveform. If you change the buffer, you have to invalidate all the layers but if you change only the selection, you just have to redraw the selection rectangle and the selected waveform. You can use translation (with matrix) to facilitate and perhaps optimize the drawing. One thing that can be useful is to save paths but it isn't already implemented in the Cicm Wrapper (I'll try to look at it if you want).</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">> If the object gets reasonable complete, I will rename it waveform~, and</span><br style="font-size:12.8000001907349px"><span style="font-size:12.8000001907349px">> add it to cyclone. But it still can be added to other libraries too.</span><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">This is only a suggestion, I was thinking of making Cream a GUI library only. That why wavesel~ and filterview~ would have been a really good addition to the library. Perhaps a duplicate would bring confusing for users and since Deken has been published I use cyclone so I will be able to enjoy your externals even if they're not in the cream library :)</span><br></div><div><span style="font-size:12.8000001907349px"><br></span></div><div><span style="font-size:12.8000001907349px">Cheers</span></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-07-07 22:12 GMT+02:00 Fred Jan Kraan <span dir="ltr"><<a href="mailto:fjkraan@xs4all.nl" target="_blank">fjkraan@xs4all.nl</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
For the curious, I added a screenshot of the help-patch:<br>
<a href="http://puredata.info/Members/fjkraan/software/wavesel-help/view" rel="noreferrer" target="_blank">http://puredata.info/Members/fjkraan/software/wavesel-help/view</a> and an<br>
ogg movie<br>
(<a href="http://puredata.info/Members/fjkraan/software/wavesel-demo/at_download/file" rel="noreferrer" target="_blank">http://puredata.info/Members/fjkraan/software/wavesel-demo/at_download/file</a>),<br>
alas without sound. This version 0.6 works better than 0.5, but still is<br>
not based on the Cicm Wrapper.<br>
<span class=""><br>
> Hi,<br>
> Great !<br>
> If you need any advice for the Cicm Wrapper, feel free to ask. We can<br>
<br>
</span>Well, I was wondering how modifying a fixed set of graphical objects is<br>
handled. The wavesel object is made up out of a range of vertical lines,<br>
representing the maximum value of the samples they represent. Selecting<br>
them is changing the color and moving and resizing a rectangle behind them.<br>
<br>
The Cream examples I looked at, only used create, not move and color.<br>
Are these supported?<br>
<span class=""><br>
<br>
> also think to include your objects in the Cream library if you want. In<br>
> this case, I can give you the access to the GitHub repository.<br>
<br>
</span>If the object gets reasonable complete, I will rename it waveform~, and<br>
add it to cyclone. But it still can be added to other libraries too.<br>
<br>
><br>
> Cheers,<br>
> Pierre<br>
<br>
Greetings,<br>
<br>
Fred Jan<br>
</blockquote></div><br></div>