# ChangeScoreProgram

Changes the MIDI program for a channel.

### Synopsis

`Err ChangeScoreProgram( ScoreContext *ScoreCon,int32 Channel, int32 ProgramNum )`

### Description

This function changes the current MIDI program used to play notes in a MIDI channel. It's the equivalent of a MIDI program change message.

### Arguments

ScoreCon
  Pointer to a ScoreContext data structure controlling playback.

Channel
  The number of the MIDI channel for which to change the program.

ProgramNum
  The number of the new MIDI program to use for the channel.

### 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

score.h, music.lib

### See Also

``ChangeScoreControl`(), ChangeScorePitchBend(), InterpretMIDIMessage(), StartScoreNote(), StopScoreNote()`