Using BPM Control |
Print Previous Next |
Functions Provided For Setting The Speed The following table provides an overview of all functions to modify the speed:
Remarks Each effect which uses the BPM Control will interpret the speed in its own way. However, other effects apply the range of BPM values differently. Just try the BPM slider to get a feeling for how the effects interpret the speed. Please note that both the BPM and the BPM pitch are floating-point values. Thus, you can create very slow effects, if you use values between 0 and 1.
Deprecated Functions Deprecated functions are outdated functions and should not be used anymore.
This sample macro causes the BPM slider to stick to multiples of 60 BPM. It works with the »SCE Color Change effect, for example. @scriptname=""; @author=""; @version=""; @description="";
const float step = 60.0; // use multiples of 60 BPM float internalBpm = 0.0; float previousBpm = 0.0;
void InitEffect() { internalBpm = GetBpm(); previousBpm = internalBpm; }
void PreRenderEffect() { internalBpm += (GetBpm() - previousBpm); // WriteText("internalBpm: " + (string)internalBpm);
int times = (int)round(internalBpm / step); SetBpm((float)times * step);
previousBpm = GetBpm(); }
void PostRenderEffect() {
}
void MatrixSizeChanged() { InitEffect(); }
|
MADRIX Version: 3.6j | Script Version: 2.22 |
[Ctrl & +/-] = Zoom In/Out | [Ctrl & 0] = 100% |
Print Previous Next |