Women in Technology

Hear us Roar



Article:
  Java and Sound, Part 2
Subject:   this example on ubuntu 9.04
Date:   2009-07-27 03:59:22
From:   nickleus
Response to: this example on ubuntu 9.04

also, why the use of "else if"s? why wouldn't you let the user define the bpm, instrument AND output file? why only let them define one of them? i would take away the else's in the main method...
Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • this example on ubuntu 9.04
    2009-07-27 04:14:15  nickleus [View]

    nerd alert! ok he he, oops, i think maybe the bpm and instrument are irrelevant for the output midi file =)
    • this example on ubuntu 9.04
      2009-07-27 04:19:29  nickleus [View]

      but again, if you only want to hear the output and not save to file then you should remove the else in front of the -t:
      else if (args[a].equals("-t")) {
      like this:
      if (args[a].equals("-t")) {
      so you can effect both the instrument and the bpm. not so nerdy after all eh? =)