Scripts
title: NoteOn - NoteOff
author: VMM Team
date: 2006-09-01
description:
This is probably one of the easiest scripts to write in VMM.
Using the NoteOn and NoteOff function.
code
// Include the file stdmidi.vmm to make the MIDI functions work
#include "stdmidi.vmm"
proc main()
{
// Play a NOTE ON with values MIDI channel 1, pitch 60, velocity 127.
NoteOn(1,60,127);
// sleep 2,5 seconds
sleep(2500);
// NOTE OFF
NoteOff(1,60);
}
#include "stdmidi.vmm"
proc main()
{
// Play a NOTE ON with values MIDI channel 1, pitch 60, velocity 127.
NoteOn(1,60,127);
// sleep 2,5 seconds
sleep(2500);
// NOTE OFF
NoteOff(1,60);
}
There's no sound file available yet.