hey,
just a small info what i am working for.
i have improved the sampleeditor with rubberband.
now you can fit your resulting sample length to beats.

i don't use the lib-rubberband. to many problems here.
i use the rubberband executable. you only have to install the rubberband bin on 
your system.
available installer for windows, mac osx and linux packages.
http://www.breakfastquay.com/rubberband/

in the final versions you can edit the path to your personal rubberband-bin 
from h2 preferences dialog.

if you don't have installed a rubberband-bin h2 will ignore all settings in 
sampleditor for the rubber function and inform you that you have no rubberband 
executable configured.

what ever,
the sampleeditor calculate the duration ratio by the current bpm.
in moment you have to recalculate manual if you change the bpm. in final 
version h2 can do this automatically if tempo changes. you will find a button 
near the main bpm widget to enable this.
than all samples with rubber flag will put into a recalculate queue. i use the 
rubberband exact option to re size the samples. that means rubberband dont work 
in realtime mode.
so after tempochange it needs some time to finish the recalculate queue. 
rubberband use threads. so all cpus will work here. the results are great.

status in moment:

ready..
rubberband backend in sample.cpp
sampleeditor can manage the backend. on/off and fit to "X" beats. (stretch 
range = 1/64beat up to 32 beats) 

in work...
save the rubberband vectors in songfile and restore all settings by loading a 
song.
the bpm change recalculate queue.

second version using the librubberband (hmmm?) is also in work.

see this demo:
its a video without any extras, only a simple desktop movie. no 
comments/subtitles or speech inside. 

this is a link to a temp upload file. my upload is very slow. 
http://popez.org/~wolke/hydrogen/video/rubberband.avi.part
later in maybe in 3-4 hours you can see the whole video here:
http://popez.org/~wolke/hydrogen/video/rubberband.avi

greetings wolke.

oh, one thing left.
if you agree i will commit this into trunk. i know there are many work left, 
but i don't prefer to checkin one big changeset. i prefer to commit the work 
step by step into the unstable branch 

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Hydrogen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/hydrogen-devel

Reply via email to