Glad to hear its working. Was getting a little worried there. Are you running 64 bits?<br><br>I've a waveform display done, so yes that's no problem. And it just involves plotting<br>the sample amplitude vs sample position.. so that's easy. The spectogram you mentioned<br>
is my version of a nightmare, with FFT's and what not floating around the place ;-)<br><br>I'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'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"><<a href="mailto:nielsmayer@gmail.com">nielsmayer@gmail.com</a>></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 ' waf.noarch 0:1.5.18-1.fc12' and rebuilding, it runs!<br>
<br>
It's works very nice and all, and it'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 "UI units" within a scrolling<br>
region that can hold an infinite number of playing loops... as well as<br>
dynamically collapse the "view" 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> delete -rf build/<br>
gnulem-121-.../Vala/PreHear> ./waf configure<br>
<div class="im"><br>
Setting build options & 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 >= 0.1.6 : ok 0.8.1<br>
Checking for gtk+-2.0 >= 2.10.0 : yes<br>
Checking for jack >= 0.100 : yes<br>
Checking for sndfile : yes<br>
</div>'configure' finished successfully (0.154s)<br>
<div class="im"><br>
gnulem-122-.../Vala/PreHear> ./waf<br>
<br>
</div><div class="im">Setting build options & flags...<br>
Initializing WAF build system...<br>
</div>Waf: Entering directory `/home/npm/Vala/PreHear/build'<br>
<div class="im">Building the sources to objects...<br>
[1/6] valac: sample.vala -> build/default/sample.c<br>
build/default/sample.h build/default/sample.vapi<br>
build/default/sample.deps<br>
[2/6] valac: main.vala -> build/default/main.c<br>
[3/6] cc: build/default/sample.c -> build/default/sample_1.o<br>
[4/6] cc: build/default/main.c -> 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 -> build/default/libsample.a<br>
[6/6] cc_link: build/default/main_2.o -> build/default/main<br>
</div>Waf: Leaving directory `/home/npm/Vala/PreHear/build'<br>
'build' finished successfully (1.147s)<br>
<br>
gnulem-106-~/Documents> ~/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> 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('CFLAGS', ['-O2', '-g', '-Wall'])<br>
#conf.env.append_value('VALAFLAGS', '--thread')<br>
+ conf.env.append_value('VALAFLAGS', '--vapidir=/home/npm/Vala/vapi/')<br>
<br>
#conf.check_cfg(package='glib-2.0', uselib_store='GLIB',<br>
atleast_version='2.10.0', mandatory=1, args='--cflags --libs')<br>
conf.check_cfg(package='gtk+-2.0', uselib_store='GTK',<br>
atleast_version='2.10.0', mandatory=1, args='--cflags --libs')<br>
<br>
..............<br>
<br>
Niels<br>
<a href="http://nielsmayer.com" target="_blank">http://nielsmayer.com</a><br>
</blockquote></div><br>