Skip to content

This provides a set of basic extensions to the C64 for controlling an MPU401 unit.

License

Notifications You must be signed in to change notification settings

brijohn/mpu401-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MPU401 Basic Extensions

This is a program for the C64 that will extend basic to support controlling a mpu401 unit via a MIF-C64 cartridge adapter.

Build

make will build mpu401.prg and mpu401.d64 in the build directory.

Extended Basic Commands

  • mpu <command>
    Send a command to the MPU unit.
    example: mpu 63: REM put the mpu into UART mode
  • mpu in <numeric variable>
    Read incoming midi byte into a variable. A value of 244 means no data in queue.
    example: mpu in MV: REM Read next midi in value into variable MV
  • midi voice on <note>,<channel>,<velocity>
    Send midi noteon command
    example: midi voice on 60,2,70: REM Turn on middle C on channel 2 with velocity of 70
  • midi voice off <note>,<channel>,<velocity>
    Send midi noteoff command
    example: midi voice off 60,2,70: REM Turn off middle C on channel 2 with velocity of 70
  • midi program <program>,<channel>
    Send midi program change command
    example: midi program 43,2: REM Change program on channel 2 to patch number 43
  • midi ctrl <control>,<channel>,<value>
    Send midi control change command
    example: midi ctrl 34,2,87: REM Change value of control 34 on channel 2 to 87
  • midi pitch <pitch>,<channel>
    Send midi pitch bend change command
    example: midi pitch 8448,2: REM Change pitch bend for channel 2 to 8448

About

This provides a set of basic extensions to the C64 for controlling an MPU401 unit.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published