SCRIPTS: Minor sandbox changes

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
SCRIPTS: Better (analytical) method for generator direct phase control

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Added an assert on index

This may prevent weird crashes when i is assigned a negative value:
being unsigned, this leads to some really weird stuff.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Added a GetFirst function, similar to GetLast

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Various comment/style fixes

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Added a RotateOnLeft function, similar to RotateOnRight

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
COMMON: Added a Sample normalization function based on their length

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
TESTS: Exposed RotateOnRight function

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
TESTS: Added a helper fucntion for checking Sample continuity

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
TESTS: Minor comment fixes

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Added scalar processing method for most generators

This is actually useful for shifting Sample inner content.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Better (analytical) method of phase control

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Now all generators begin at a null phase

This change is also reported on Python prototypes.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
SCRIPTS: Now also testing phase accumulator direct phase control

Signed-off-by: Gama <misept.dieseneuf@gmail.com>
GENERATORS: Updated direct phase control tests

These now check the signal continuity at transition.

Signed-off-by: Gama <misept.dieseneuf@gmail.com>