Skip to content

samer--/plmidi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plmidi

Access to Mac OS X MIDI input and output for SWI Prolog

This module allows Prolog code to send and receive MIDI events using the CoreMIDI framework on Mac OS X.

USAGE

:- use_module(library(plmidi)).

bing :-
	midi_endpoint(outlet(Id, Name, _, _)),
	format('Connecting to MIDI endpoint "~w".\n',[Name]),
	midi_mk_outlet(Id,Ref),

	% play middle C in 1 second for 2 seconds
	get_time(T),
	midi(Ref,T+1,note(0,60,70,2)).

About

Access to Mac OS X MIDI input and output

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published