Quick Sign In:  

Forum: General Discussion

Topic: Chain Command
J J ZrnPRO InfinityMember since 2019
I have an action written that i only want to work when the song is color coded a certain color.

Im pretty sure i would use the operator "?" but im unsure of how to write the words stating that i only want the action to take place if the song is coded the color i choose from the tag editor.

For example
song red ? goto_cue 'BEAT LOOP V' & loop_load 'BEAT LOOP V' & & sampler_bank 'BEATS "

I would also like to add it to play a sampler in a particular sampler bank..Like the second sampler in the BEATS sampler bank.
i know song red is not right....how would i write that? as well as the particular sampler from a certain bank.
Thanks for all your help!


 

Posted Sun 13 Jun 21 @ 9:59 am
locoDogPRO InfinityModeratorMember since 2013
param_equal `get_loaded_song color` 'red' ? TRUE : FALSE

to call the bank
sampler_bank "NAME" or sampler_bank X
x being index number

to call the sample
sampler_play X
 

Posted Sun 13 Jun 21 @ 10:22 am
NicotuxHome userMember since 2014
depending on song:
get_loaded_song color
get_browsed_song color
param_equal `get_browsed_song 'color'` "red" ?

 

Posted Sun 13 Jun 21 @ 10:27 am
J J ZrnPRO InfinityMember since 2019
Worked perfect!..thanks fellas...how can i just make the sampler for the deck and not the master?...so when i activate that sampler its only for the deck that plays with that loop and when i reduce the deck volume the sample volume is also reduced.

Thanks again!
 

Posted Sun 13 Jun 21 @ 10:40 am
NicotuxHome userMember since 2014
prepend command with "sampler_output"
or specify deck for the output
deck n sampler_output

This is effective until another output is selected

possible choices :
deck n sampler_output
sampler_output "headphones"
sampler_output master
sampler_output "trigger"
sampler_output "popup"

 

Posted Sun 13 Jun 21 @ 11:09 am