midremot Remote Opcodes midremot midremot An opcode which can be used to implement a remote midi orchestra. This opcode will send midi events from a source machine to one destination. Description With the midremot and midglobal opcodes you are able to perform instruments on remote machines and control them from a master machine. The remote opcodes are implemented using the master/client model. All the machines involved contain the same orchestra but only the master machine contains the information of the midi score. During the performance the master machine sends the midi events to the clients. The midremot opcode will send events from a source machine to one destination if you want to send events to many destinations (broadcast) use the midglobal opcode instead. These two opcodes can be used in combination. Syntax midremot idestination, isource, instrnum [,instrnum...] Initialization idestination -- a string that is the intended host computer (e.g. 192.168.0.100). This is the destination host which receives the events from the given instrument. isource -- a string that is the intended host computer (e.g. 192.168.0.100). This is the source host which generates the events of the given instrument and sends it to the address given by idestination. instrnum -- a list of instrument numbers which will be played on the destination machine Examples Here is an example of the midremot opcode. It uses the files insremot.csd. Example of the insremot opcode. The example shows a Bach fugue played on 4 remote computers. The master machine is named "192.168.1.100", client1 "192.168.1.101" and so on. Start the clients on each machine (they will be waiting to receive the events from the master machine) and then start the master. Here is the command on linux to start a client (csound -dm0 -odac -+rtaudio=alsa midremot.csd -+rtmidi=Null), and the command on the master machine will look like this (csound -dm0 -odac -+rtaudio=alsa midremot.csd -F midremot.mid). See the sections Real-time Audio and Command Line Flags for more information on using command line flags. See also Remote Opcodes Credits Author: Simon Schampijer 2006 New in version 5.03