Skip to content

Instantly share code, notes, and snippets.

View christo's full-sized avatar
💭
follows you

Chris Mountford christo

💭
follows you
View GitHub Profile
#!/usr/bin/env groovy
import javax.sound.midi.*
def synth = MidiSystem.getSynthesizer()
synth.open()
def channel = synth.getChannels()[9]
// midi note for cowbell is 56
channel.noteOn(56, 96)
Thread.sleep(100)