Usage in robotics

 

The Bol Processor produces timed events: notes and sound-objects with a date, a duration, an instrument, and parameters that change during each event. Nothing in this description is specific to sound. A robot moving its joints in time with music, a puppet, a kinetic sculpture or a drone show also needs events that start at precise dates, last for a given time, and drive parameters from one value to another. Polymetric structures, which keep several voices in sync, are just as useful for the joints of a robot as for the parts of a musical piece.

This page reviews the languages and protocols used to send instructions to robots, and finds which of them are closest to what the Bol Processor already produces, as a basis for a simple demonstration.

What the Bol Processor produces, seen from a robot

In real-time output, each note is sent at its date with its duration, its instrument and the values of its parameters. A continuous parameter, such as the volume (_volume()), the pitchbend, the panoramic, or an additional parameter of an instrument (_value(name,…)), is given by its value at the beginning of the note and its value at the end, sometimes with intermediate values when it follows a curve.

For a robot, the same event reads: at time t, move actuator X from position A to position B in D seconds. This is a keyframe: a position to reach at a given time. Most robot motion interfaces work with keyframes, so the correspondence is direct:

Bol ProcessorRobot
instrument (_ins())joint, motor or actuator
date of the notestart of a movement
duration of the noteduration of the movement
start and end values of a parameterstart and target positions (angle, distance…)
intermediate values of a continuous parameterintermediate keyframes: a curved trajectory
velocityforce or speed of a strike
polymetric structure {…, …}several joints moving together in sync

Robot command languages and protocols

The table below lists the main families, from the closest to the furthest from the output of the Bol Processor.

FamilyExamplesTransportHow close to the Bol Processor
MIDI-driven robotsMusical robots (drums, pianos), animatronics, MIDI-to-servo boards, an Arduino set up as a USB-MIDI deviceUSB-MIDI, DINIdentical. They are driven by the real-time MIDI output of the Bol Processor. A note is a strike or a gesture, its velocity a force, and controllers give positions. Well suited to triggered actions, but a position has only 7 bits (or 14 with the pitchbend).
OSC (Open Sound Control)Show control, ESP32 or Arduino boards over Wi-Fi, TouchDesigner, bridges to ROSUDPVery close. The Bol Processor already sends each note at its date with its duration and the start and end values of its parameters (real-time OSC). A receiver only needs to map each instrument to a joint and each value to a position.
Timed keyframe interfacesROS 2 (JointTrajectory, points with a time_from_start), humanoid robots NAO and Pepper (angleInterpolation(names, angles, times)) and their Choregraphe timelines, drone light showsDDS (ROS 2), rosbridge (WebSocket and JSON), TCPClose in spirit. They are scores of positions at given times. A translator is needed, either reading the real-time OSC stream or converting a complete score (Csound score or event list) for exact timing.
Servo bus protocolsDynamixel Protocol 2.0, Pololu Maestro, PCA9685 boards, Firmata (whose messages follow the format of MIDI)Serial, I²CLow-level targets: a position, and sometimes a speed or a time to reach it. They are the layer below one of the families above.
Industrial robot languagesURScript (Universal Robots, text lines sent over TCP), RAPID (ABB), KRL (KUKA)TCP, or programs loaded on the controllerImperative motion languages. A movement can be given a duration (e.g. movej(…, t=2.0) in URScript), but they are designed for path planning and safety, not for timing. They are not suited to a demonstration.
G-code3D printers, pen plotters, small robot armsSerialThe furthest. Movements are given a feed rate, not a date, and the controller queues them without a clock. Keeping a musical timing is very difficult.

The two closest families, MIDI and OSC, are already outputs of the Bol Processor, so a demonstration needs no new output format. OSC is the better candidate: it carries the duration of each movement and the start and end values of each parameter, while MIDI gives only a key, a velocity and controller values. The real-time OSC page describes the messages.

Packaging actions as time-objects

Mapping each simple action to a note, as above, is enough to drive the joints one movement at a time. But a robot, like a musician, works with gestures: waving, clapping, striking a drum, bowing. A gesture is a sequence of simple actions on one or several joints, with its own internal timing, and it must fit into the flow of other gestures.

The Bol Processor has a construct designed for this: the sound-object, more generally a time-object. Its content is a sequence of MIDI events or the lines of a Csound score (Csound objects). It can even have no content at all (silent sound-objects). Each object is a terminal symbol of an alphabet, so a grammar handles gestures such as wave, clap or bow as words of a vocabulary, combines them in sequences and polymetric structures, and changes their tempo.

For a robot, the content of a Csound object is a small score in which each line moves one joint: its instrument is the joint and its parameters are the start and end positions. In real-time OSC, each line of the object is sent at its date as a /bp/note message to its own instrument, exactly like a note. A single object can therefore move several joints in a coordinated way, for instance raising an arm while turning the head.

What makes time-objects more than macros is that each time-object prototype carries metrical and topological properties. They tell the Bol Processor how the object may be placed, stretched or shortened in time, and how it may relate to its neighbours. When the structure is performed, the time-setting algorithm places all objects so that these constraints are met, moving objects if necessary. Many of these properties correspond directly to physical constraints of a robot.

Metrical properties: the object and time

  • Pivot. The point of the object that is placed on its date in the structure: its beginning, middle or end, its first NoteOn, the middle of its NoteOns and NoteOffs, its last NoteOff, or a position set by the user. For a robot, this is the instant that must fall on the beat: the impact of a drumstick, or the moment two hands meet in a clap. The motion leading to it (raising the stick, opening the arms) then starts before the beat, as a musician's does.
  • Pre-roll and post-roll. The parts of the object played before its date and after its end, given in milliseconds or as a percentage of its duration: the preparation of a movement and its follow-through.
  • Striated or smooth. An object with a reference duration (Tref > 0) is striated: it follows the tempo and is stretched or compressed with it. An object with no reference duration is smooth: it keeps its own durations whatever the tempo, as does a movement whose speed is fixed by the mechanics.
  • Rescaling. An object may accept being expanded, compressed, both or neither, within a minimum and maximum ratio. This is the speed limit of a motor: a gesture may be performed more slowly, but not faster than the robot can move. The ratio can also be sent to a controller, so that the robot knows how much its gesture was stretched.
  • Relocation. An object may accept being delayed or moved forward, up to a maximum, when the constraints of the structure cannot be met at its exact date.
  • Break tempo. When the constraints cannot be met otherwise, all the beats after this object may be delayed. The whole structure then waits, as the voices of an organum wait for a held note, adding time between objects rather than stretching them. A gesture that needs more time holds the performance back instead of being rushed.
  • Cyclic objects. An object may be repeated to fill its duration, if necessary with an integer number of cycles: a walking step or a waving hand performed for as long as the structure requires.
  • Accepted controls. Each object accepts or refuses performance controls such as transposition, volume, velocity or articulation, so that a gesture can be protected from changes that would make no sense for it.

Topological properties: the object and its neighbours

  • Cover. Whether the beginning or end of the object may be covered by the preceding or following object of the same sequence, and by how much. Two gestures of the same arm cannot overlap, since the arm cannot be in two places at once, so they refuse to be covered. A gesture of the head may overlap the end of another head movement if the transition stays smooth.
  • Continuity. Whether a gap is allowed before or after the object, and how large it may be. Steps of a walk, or the phases of a pick-and-place movement, must follow each other without a pause.
  • Truncation. Whether the beginning or end of the object may be cut, and by how much, to make room for its neighbours. A grasp must be performed completely, so it refuses truncation. An ornamental sway of the body may be shortened.

When these constraints conflict, the time-setting algorithm searches for a solution by relocating the objects that allow it. As a last resort, it releases some of the topological properties. A choreography can therefore be written at the level of gestures and their physical constraints, while the Bol Processor works out the exact dates of each elementary movement. The same constraints that keep a tabla stroke or a sitar ornament in place make a robot's gestures physically consistent.

Property of the time-objectMeaning for a robot
pivotthe instant of the gesture that falls on the beat (impact, contact)
pre-roll, post-rollpreparation and follow-through of the gesture
smooth (no Tref)duration fixed by the mechanics, independent of tempo
expand / compress limitsspeed limits of the motors
relocationtolerance on the timing of the gesture
cyclic objectrepeated motion: walking, waving
no covertwo gestures of the same limb cannot overlap
continuitychained movements with no pause
no truncationa gesture that must be completed (grasp, strike)

Note: This page was entirely composed by Claude Opus 5.5 on 23 November 2026.

Leave a Reply

Your email address will not be published. Required fields are marked *

« Translate