# InitJuggler

Initializes the Juggler mechanism for controlling events.

### Synopsis

`int32 InitJuggler( void )`

### Description

This function initializes the Juggler scheduling system for controlling arbitrary events. Note that the Juggler must be initialized before calling any object-oriented, Juggler, or MIDI playback functions.

See the chapter "Playing Juggler Objects" in the Portfolio Programmer's Guide for more information about the Juggler and how it works.

### Arguments

None.

### Return Value

This function returns 0 if successful or an error code (a negative value) if an error occurs.

### Implementation

Library call implemented in music.lib V20.

### Associated Files

juggler.h, music.lib

### See Also

``TermJuggler`(), BumpJuggler()`