Syntax for calling a function with a parameter on live.object

Andrew Sblendorio's icon

This should be a pretty quick question...like the title states: what is the syntax for a message to live.object which is set to a ClipSlot and I am calling the fire function AND I want to use the optional launch quantization parameter??? I have tried many variations of "call fire launch_quantization Global" or "call fire launch_quantization 16th". I get various errors posted to the console depending on exactly what I try. What is the correct syntax????

Andrew Sblendorio's icon

One of the main errors seems to be that I try "call fire 0" and it is saying that I can 'only fire record_length to empty slots' even though I have ensured I am on a playing slot. There are two possible parameters here: one is record length for a blank clip slot and one is for launch quantization for a filled slot. It thinks I am trying to do the first parameter but I am trying to pass an argument to the second parameter. How can I specificy this second parameter?

broc's icon

Generally parameters of call messages are plain numbers. In this case, the first is length in beats and the second is an index of the global quantization menu I think. Just try different values.

Andrew Sblendorio's icon

Thanks for your reply Broc, I was ultimately able to figure out a few things. The fire function seems to require both parameters to work. You were exactly right that they were simply integers. Also I was mistaken about the exact functionality of fire in this context, it seems to only be used to start recording in an empty clip slot. It does not seem to take an existing clip and override the global or (I was hoping) the clip launch quantization.