• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

Instruments in javax.sound.midi

 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think December a year ago is the last time some one posted about a topic from this package, javax.sound.midi.*
I'm trying to expand on the work and examples provided in Head First Java by Sierra-Bates.
The Beat Box program that is built incremently in the book provides Drums. But how are the various drums determined. I cannot find any documentation on the types of instruments, be it piano, guitar, or drum.
How are the ints matched to drums? For instance, 35 seems to be a piano key, but it can also be a sax? Is there a list of instruments?
Thanks,
Tim
 
Ranch Hand
Posts: 925
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
you need to read about system exclusive commands. and read your midi expander handbook sc-88 et al.
 
Timothy Stone
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Simon Lee:
you need to read about system exclusive commands. and read your midi expander handbook sc-88 et al.


Okay...thank you for the reply, but it is very cryptic. System exclusive commands? MIDI expander Handbook, SC-88?
Extrapolating here, but I assume there is some documentation on the JAVA_HOME/jre/lib/audio/soundbank.gm that is default? If there is, I can't find it and it seemed to be a mystery to Sierra-Bates, as they don't explain it in the book, just provide examples of working code.

Where's the legend to what 32 (Line 2) means when played in channel 1 vs. channel 9? I understand that the note scale runs from 0 thru 127 (Lines 7 & 12).
The Java Sound pages at http://java.sun.com/products/java-media/sound/index.html has nothing, that I can find. It seems strangely undocumented. I'm not a sound engineer, I'm not a musican, I'm just a guy that wants to know the "why" something works.
Thanks,
Tim
 
Timothy Stone
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Thanks for assisting however...
Tim
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I know that it's a 2003 thread.

Where is the list of what instruments are all available under the third argument of setMessage:

Yes, I've looked at FAQ_MIDI (here and here).
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic