Page 1 of 1

visual Metronom

Posted: Sat Jan 03, 2015 10:27 pm
by mccy
It should be easy for the experts, wouldn't it, to build a simple bouncing or rythmical flashing thing, which would serve as a visual feedback of Metrum for live usage? Any idea how to start?

thanks

Martin

Re: visual Metronom

Posted: Sun Jan 04, 2015 1:46 am
by KG_is_back
It is very easy indeed...

The best way would be to write the thing in ruby. In manual you can read abut events. Basically an event can send data with trigger to any output or input with any delay time, which will trigger new event.

Here's a quick schematic that does precisely what you want in the most simple way. The clock is a ruby module, hopefully with reading the manual and little programing skills it will not be hard to realize what's happening. Basically it sends a trigger every beat. The next module is a little stock red led that alternates on/off every time it receives a trigger.

It is even possible to write/make your own GUI of the metronome - both in Ruby or in flowstone green/view connectors.

Re: visual Metronom

Posted: Mon Jan 05, 2015 12:22 am
by mccy
Thanks!!!! This looks simple, indeed, but will take some time for me to understand exactly :-)
It was easy to add vst tempo, but I just realized that it won't be synchronized with onbeats...

1000 Thanks

Martin

Re: visual Metronom

Posted: Mon Jan 05, 2015 2:10 am
by KG_is_back
Actually there is primitive,called "BarStart", that sends stream pulses in sync with the host playback and also a primitive called "PPQposition", that outputs bar position (increasing 1 each beat) in sync with the host playback. You my use them and use mono to green with ticker, to extract the value and redraw GUI based on that, if you are looking for a plugin that pulses in sync with the DAW.

Re: visual Metronom

Posted: Mon Jan 05, 2015 11:05 am
by mccy
Wow! You are so nice!!!

Re: visual Metronom

Posted: Mon Jan 05, 2015 1:31 pm
by mccy
O.K. got it ...
Now I have to deal with that numbers out of the modules...
Is there a possibility to round stream (blue) to full numbers staying blue? That way I could translate that numbers in a continuous movement between 0-1, so to build a real looking metronome...

Re: visual Metronom

Posted: Mon Jan 05, 2015 4:15 pm
by KG_is_back
I recommend using the code component. There is a whole section in manual dedicated to it. You may use "rndint(x)" to round a number to integer and you can use modulo "x % y" to output remainer of division division.

For example:

Code: Select all

streamin x;
streamout round;
streamout mod;
round=rndint(x-0.49999); //rounds down to integer value
mod=x%1; //outputs remainer after division of 1. basically extracts the decimal part of the number in this case

Re: visual Metronom

Posted: Mon Jan 05, 2015 10:05 pm
by mccy
This is the first try... just easy putting things together in green...

http://www.derknott.de/visumet01b.zip