Jump to content
Gibson Brands Forums
Sign in to follow this  
Scoox

Script to blink LED to the beat?

Recommended Posts

I'm trying to script an LED that blinks to the beat. Ideally I want the LED to be ON during the first 1/4 of each beat, and off during the remaining 3/4 of the beat. Something like this:

[attachment=23790:001.png]

The closest I can get to this is using the BEAT_ID_A/B/C/D command, the result looks like this:

[attachment=23791:002.png]

If there is currently no way to do this, would it be possible to add the following commands?:

[code]BAR_POSITION_A // set does nothing, get returns bar position value (0...1 scale)
BAR_POSITION_B
BAR_POSITION_C
BAR_POSITION_D[/code]

I've written "set does nothing" but in my ideal world set could be used to forcibly adjust bar position.

To make things simpler (perhaps), this could be merged with BEAT_ID_A/B/C/D, and instead of returning values [1, 2, 3, 4], return a value between 0.0 and 1.0, then Beat 1 = 0.0, Beat 2 = 0.25, Beat 3 = 0.5 and Beat 4 = 0.75, plus all the values in between.

Furthermore, it would be even nicer if the "set" action could be used to force the track to jump to a specific bar position, which would allow users to bar-align two tracks. At the moment this is the one thing I'm missing most from Traktor, everything else is pretty damn good.

On a slightly related note, what is the difference between [B]SEEK_A[/B] and [B]TRACK_POSITION_A[/B]?

Thanks! Edited by Scoox

Share this post


Link to post
Share on other sites
[quote name='Scoox' timestamp='1520503109' post='1922403']
On a slightly related note, what is the difference between [B]SEEK_A[/B] and [B]TRACK_POSITION_A[/B]?
[/quote]
In terms of the "get" function they are the same. In the past there was a difference.

Share this post


Link to post
Share on other sites
Cool, thanks [thumbup] Regarding the BAR_POSITION_A/B/C/D, set() does nothing and get() returns the position within the bar, would that be easier to do?

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...