Hello,
Here is the problem : I need to display a playback cursor and 2 loop end/start indicator over a waveform displayed in an array. For that I use 3 two pix wide canvas of the height of the array (250 px in my case). In order to move the cursor during playback I sync it to the [phasor~] I connected to the [tabread4~] to play the sound. (datas are transmitted to the cursors (canvas) via foo_rcv as shown on the help patch for the gui elements).
It works perfectly, but when I load a new sound into the array :
[openpanel] | [read -resize $1 fooArray( | [soundfiler]
The array displaying the waveform goes foreground, so my nice loop indicators and the playback cursor go behind the waveform display...
The only solution I found was to cut/paste the loop indicators + playback cursor. Not very userfriendly when you need to load a file on stage in front of a public...
If anybody has an idea to solve this foreground/background problem or another idea to create those loop indicators and playback cursor... I already tried the idea to put [hsl] at array bottom or top but it is not very practical !
Thanks !
Jean-Martin
Hallo, jean-martin barbut hat gesagt: // jean-martin barbut wrote:
If anybody has an idea to solve this foreground/background problem or another idea to create those loop indicators and playback cursor... I already tried the idea to put [hsl] at array bottom or top but it is not very practical !
You could also use data structures for this instead of a cnv. For an example check out the help-files for the mean-calculating objects in the [list]-abs collection: [list-mean], [list-geometric-mean] and [list-arithmetic-mean] and [list-centroid]
The trick is to hide a [pd ...] subpatch with GOP enabled behind the array. GOP subpatches with data structures inside are a bit tricky: You should manually set the Properties of the subpatch with the context menu to use a 1/1 mapping of ranges to pixels like:
X range: 0 to 200 size: 200 Y range: 0 to 140 size: 140
The numbers in range and size (200 rsp. 140) should be the same for a 1/1 mapping.
Frank Barknecht _ ______footils.org__