Glad to hear its working. Was getting a little worried there. Are you running 64 bits?<br><br>I&#39;ve a waveform display done, so yes that&#39;s no problem. And it just involves plotting<br>the sample amplitude vs sample position.. so that&#39;s easy. The spectogram you mentioned<br>
is my version of a nightmare, with FFT&#39;s and what not floating around the place ;-)<br><br>I&#39;ll see how things go with the waveform, it should be ok to do the playhead you talk bout,<br>the regions shouldnt be too much work either.. so Yup i will do those. in 2 weeks r so. <br>
I&#39;m going on holidays today :-)<br><br>Cheers, -Harry<br><br><br><div class="gmail_quote">On Thu, Aug 5, 2010 at 7:21 AM, Niels Mayer <span dir="ltr">&lt;<a href="mailto:nielsmayer@gmail.com">nielsmayer@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">After installing &#39; waf.noarch 0:1.5.18-1.fc12&#39; and rebuilding, it runs!<br>
<br>
It&#39;s works very nice and all, and it&#39;s good to know I can build a jack<br>
app this easily... so how would you go about adding a<br>
spectrogram/waveform display for the samples you display, e.g.<br>
<a href="http://www.mega-nerd.com/libsndfile/tools/#spectrogram" target="_blank">http://www.mega-nerd.com/libsndfile/tools/#spectrogram</a> . And then<br>
using that as a visual reference, be able to zoom and drag out regions<br>
on-top of the waveform or spectrogram. Then use the dimensions of the<br>
regions to play in the loop, preferably, animating a cursor in<br>
real-time as the sound plays. Of course you should be able to create<br>
and destroy these loopers as independent &quot;UI units&quot; within a scrolling<br>
region that can hold an infinite number of playing loops... as well as<br>
dynamically collapse the &quot;view&quot; of the loop data to include a polar<br>
spectrogram display, ala<br>
<a href="http://freewheeling.sourceforge.net/shots.shtml" target="_blank">http://freewheeling.sourceforge.net/shots.shtml</a> but without the<br>
reptilian GUI.<br>
<br>
.........................................<br>
<br>
gnulem-120-.../Vala/PreHear&gt; delete -rf build/<br>
gnulem-121-.../Vala/PreHear&gt; ./waf configure<br>
<div class="im"><br>
Setting build options &amp; flags...<br>
Initializing WAF build system...<br>
</div><div class="im">Configuring the build enviroment...<br>
Checking for program gcc or cc           : /usr/bin/gcc<br>
Checking for program cpp                 : /usr/bin/cpp<br>
Checking for program ar                  : /usr/bin/ar<br>
Checking for program ranlib              : /usr/bin/ranlib<br>
Checking for gcc                         : ok<br>
Checking for program valac               : /usr/bin/valac<br>
Checking for gobject-2.0                 : yes<br>
Checking for gthread-2.0                 : yes<br>
Checking for program version valac &gt;= 0.1.6 : ok 0.8.1<br>
Checking for gtk+-2.0 &gt;= 2.10.0             : yes<br>
Checking for jack &gt;= 0.100                  : yes<br>
Checking for sndfile                        : yes<br>
</div>&#39;configure&#39; finished successfully (0.154s)<br>
<div class="im"><br>
gnulem-122-.../Vala/PreHear&gt; ./waf<br>
<br>
</div><div class="im">Setting build options &amp; flags...<br>
Initializing WAF build system...<br>
</div>Waf: Entering directory `/home/npm/Vala/PreHear/build&#39;<br>
<div class="im">Building the sources to objects...<br>
[1/6] valac: sample.vala -&gt; build/default/sample.c<br>
build/default/sample.h build/default/sample.vapi<br>
build/default/sample.deps<br>
[2/6] valac: main.vala -&gt; build/default/main.c<br>
[3/6] cc: build/default/sample.c -&gt; build/default/sample_1.o<br>
[4/6] cc: build/default/main.c -&gt; build/default/main_2.o<br>
default/main.c: In function ‘_vala_main’:<br>
</div>default/main.c:587: warning: assignment from incompatible pointer type<br>
<div class="im">[5/6] static_link: build/default/sample_1.o -&gt; build/default/libsample.a<br>
[6/6] cc_link: build/default/main_2.o -&gt; build/default/main<br>
</div>Waf: Leaving directory `/home/npm/Vala/PreHear/build&#39;<br>
&#39;build&#39; finished successfully (1.147s)<br>
<br>
gnulem-106-~/Documents&gt; ~/Vala/PreHear/run.sh<br>
Attempting to connect to JACK...                        Done!<br>
WARNING: Sample not loaded. Possible uncompatible file?<br>
currentSample.play()<br>
WARNING: Sample not loaded. Possible uncompatible file?<br>
currentSample.play()<br>
currentSample.play()<br>
currentSample.play()<br>
currentSample.playXY(0,0)<br>
currentSample.play()<br>
currentSample.playXY(0,0)<br>
currentSample.play()<br>
currentSample.playX(10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.playXY(10,10)<br>
currentSample.play()<br>
<br>
.............<br>
<br>
Note:<br>
<br>
gnulem-124-.../Vala/PreHear&gt; git diff<br>
diff --git a/wscript b/wscript<br>
index f85ec3e..8678e23 100755<br>
--- a/wscript<br>
+++ b/wscript<br>
@@ -23,6 +23,7 @@ def configure(conf):<br>
<br>
        #conf.env.append_value(&#39;CFLAGS&#39;, [&#39;-O2&#39;, &#39;-g&#39;, &#39;-Wall&#39;])<br>
        #conf.env.append_value(&#39;VALAFLAGS&#39;, &#39;--thread&#39;)<br>
+       conf.env.append_value(&#39;VALAFLAGS&#39;, &#39;--vapidir=/home/npm/Vala/vapi/&#39;)<br>
<br>
        #conf.check_cfg(package=&#39;glib-2.0&#39;, uselib_store=&#39;GLIB&#39;,<br>
atleast_version=&#39;2.10.0&#39;, mandatory=1, args=&#39;--cflags --libs&#39;)<br>
        conf.check_cfg(package=&#39;gtk+-2.0&#39;, uselib_store=&#39;GTK&#39;,<br>
atleast_version=&#39;2.10.0&#39;, mandatory=1, args=&#39;--cflags --libs&#39;)<br>
<br>
..............<br>
<br>
Niels<br>
<a href="http://nielsmayer.com" target="_blank">http://nielsmayer.com</a><br>
</blockquote></div><br>