visual Metronom

For general discussion related FlowStone
Post Reply
mccy
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

visual Metronom

Post 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
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: visual Metronom

Post 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.
Attachments
metronom1.fsm
(28.04 KiB) Downloaded 932 times
mccy
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

Re: visual Metronom

Post 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
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: visual Metronom

Post 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.
mccy
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

Re: visual Metronom

Post by mccy »

Wow! You are so nice!!!
mccy
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

Re: visual Metronom

Post 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...
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: visual Metronom

Post 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
mccy
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

Re: visual Metronom

Post by mccy »

This is the first try... just easy putting things together in green...

http://www.derknott.de/visumet01b.zip
Attachments
visumet.fsm
(35.34 KiB) Downloaded 903 times
visumet01.zip
(1.79 MiB) Downloaded 883 times
Post Reply