Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java MIDI API

Name: Anonymous 2011-05-19 4:59

Hey there,

anyone got some experience with the Java MIDI API?
I'm working on something like virtual Piano at the moment. But it's not only supposed to be a piano you should be able to choose the instrument you want to play.
And here the trouble starts. I know how to retrieve the soundbank from the synthesizer but i just don't get how to change the instrument that's played.

Any tipps or good tutorials on this specific topic? I already read the Oracle tutorial but it didn't really help.

Name: Anonymous 2011-05-19 5:00

Any tipps or good tutorials on this specific topic?
http://mitpress.mit.edu/sicp/

Name: Anonymous 2011-05-19 5:02

Although that looks quite interesting something a little less general would be appreciated.

Name: Anonymous 2011-05-19 5:02

>>2
go choke on a buttplug, faggot

Name: Anonymous 2011-05-19 6:03

I know fuck all about Java's MIDI API, but program change messages is the intended way to change the program(!).

Name: Anonymous 2011-05-19 14:05

why would anyone use java for something which can be done with a avr mcu?
or anything else for that matter...

Name: Anonymous 2013-03-23 19:32


#lang racket

(define (rps-val n)
    (cond ((= n 0) 'r)
          ((= n 1) 'p)
          ((= n 2) 's)))

(rps-val (random 3))

(define (rps* a b)
    (cond ((and (eq? a 'r) (eq? b 's)) "You win! Rock beats scissors.")
          ((and (eq? a 'p) (eq? b 'r)) "You win! Paper beats rock.")
          ((and (eq? a 's) (eq? b 'p)) "You win! Scissors beats paper.")
          (else "YOU LOSE FAGGOTFACE!!!")))

(define (rps n)
    (rps* n (rps-val (random 3))))

(list (rps 'r) (rps 'p) (rps 's))

Don't change these.
Name: Email:
Entire Thread Thread List