Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Instrument Control

Once in a while, you may need to reinitialize an instrument while it’s running. This is done using the reinit opcode. The reinitialization can be done for all of the instrument code or only for a selected portion of the code. During the reinitialization, all of the i-time values that are set forth within the designated code lines will be recalculated. Envelope generators will start over from their starting points. The phase of oscillators will be reset.

The syntax of reinit is simple:


  reinit label

As the manual explains, during a reinitialization pass, performance is temporarily suspended (without any effect on the audio output, unless the reinitialization itself causes an effect or takes so long that the output buffer is emptied) while an initialization pass is run. This pass begins at the label specified as the argument to reinit and continues either to the end of the instrument or to an earlier point in the code designated by a rireturn statement. Performance is then resumed at the point where it left off.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint