shithub: pokecrystal

ref: 3e5b6322e1167758fedaec5b3930eadaeaa8ec33
dir: /docs/music_commands.md/

View raw version
# Music Commands

## `musicheader` *n*, *index*, *address*

## `cry_header` *n*, *index*, *address*

## `note` *pitch*, *octave*

## `sound` *pitch*, *octave*, *intensity*, *frequency*

## `noise` *pitch*, *duration*, *intensity*, *frequency*

## `$D0`−`$D7`: `octave` *n*

## `$D8`: `notetype` *length*[, *intensity*]

## `$D9`: `pitchoffset` *octave*, *key*

## `$DA`: `tempo` *tempo*

## `$DB`: `dutycycle` *duty_cycle*

## `$DC`: `intensity` *intensity*

## `$DD`: `soundinput` *input*

## `$DE`: `sound_duty` *a*, *b*, *c*, *d*

## `$DF`: `togglesfx`

## `$E0`: `slidepitchto` *duration*, *octave*, *pitch*

## `$E1`: `vibrato` *delay*, *extent*

## `$E2`: `unknownmusic0xe2` *unknown*

## `$E3`: `togglenoise` *id*

## `$E4`: `panning` *tracks*

## `$E5`: `volume` *volume*

## `$E6`: `tone` *tone*

## `$E7`: `unknownmusic0xe7` *unknown*

## `$E8`: `unknownmusic0xe8` *unknown*

## `$E9`: `tempo_relative` *value*

## `$EA`: `restartchannel` *address*

## `$EB`: `newsong` *id*

## `$EC`: `sfxpriorityon`

## `$ED`: `sfxpriorityoff`

## `$EE`: `unknownmusic0xee` *address*

## `$EF`: `stereopanning` *tracks*

## `$F0`: `sfxtogglenoise` *id*

## `$F1`: `music0xf1`

## `$F2`: `music0xf2`

## `$F3`: `music0xf3`

## `$F4`: `music0xf4`

## `$F5`: `music0xf5`

## `$F6`: `music0xf6`

## `$F7`: `music0xf7`

## `$F8`: `music0xf8`

## `$F9`: `unknownmusic0xf9`

## `$FA`: `setcondition` *condition*

## `$FB`: `jumpif` *condition*, *address*

## `$FC`: `jumpchannel` *address*

## `$FD`: `loopchannel` *count*, *address*

## `$FE`: `callchannel` *address*

## `$FF`: `endchannel`