×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    S60 V5 or Symbian 3 : MIDIControl getProgramName

    Hi,

    I try to get the names of the midi instruments availables on the S60V5 or Symbian 3 system...

    Player p = Manager.createPlayer(Manager.MIDI_DEVICE_LOCATOR);
    ...
    MIDIControl control = (MIDIControl) p.getControl("javax.microedition.media.control.MIDIControl");
    ...
    String name = control.getProgramName(-1, 0);

    In name I should have "Piano" returned...

    If I change the bank to 0 or other no change...

    If someone has succeed to retrieve the name of the midi instruments with getProgramName I will be pleased to know how...

    Thanks

  2. #2
    Super Contributor
    Join Date
    Apr 2003
    Location
    USA, CA
    Posts
    7,191

    Re: S60 V5 or Symbian 3 : MIDIControl getProgramName

    Are you getting an empty string?
    "Given bank and program, get name of program. For space-saving reasons, an implementation may return an empty string."

    I do not have detailed information about the implementation though...

    Hartti

  3. #3
    Regular Contributor
    Join Date
    Jan 2004
    Posts
    125

    Re: S60 V5 or Symbian 3 : MIDIControl getProgramName

    In fact, with debugging my code, this is a media exception with a message like "not implemented"... So those methods are not implemented...

    In the "MIDI_And_True_Tones_In_Nokia_Devices_v2_4_en.pdf" (cf page 14) they speak about differents instruments maps... There is the official GM1 Instruments Map (for right syntheiszer) and for Nokia devices, there is two differents maps : one with less instruments (than the GM) and the other with exactly all the instruments of the GM1 map...

    The problem when you want to have the names of the instruments is that it is not possible to know with a java/J2ME command if the device use the first map or the second...

    For instance, in the 5800 Xpress music, this phone seems to use the first map (with not all instruments)...

    I don't find a more recent version of this document (06/27/2005) "MIDI_And_True_Tones_In_Nokia_Devices_v2_4_en.pdf".

    Thanks

Similar Threads

  1. Symbian^2 and/or Symbian^3 updates for S60 5th devices?
    By jaimemistus in forum General Development Questions
    Replies: 2
    Last Post: 2010-01-13, 21:04
  2. Upgrading UI Designer application from S60 v3 to S60 v5
    By pinkhardlionel in forum Symbian User Interface
    Replies: 1
    Last Post: 2009-07-01, 17:34
  3. input in s60 v5
    By ashwin.nath.m in forum Mobile Java General
    Replies: 1
    Last Post: 2009-05-24, 03:10
  4. S60 v5 Accelerometer
    By kiranraj.mdbu in forum Symbian User Interface
    Replies: 2
    Last Post: 2009-05-20, 12:46
  5. VoIP in S60 v5.x
    By craigj in forum VoIP
    Replies: 0
    Last Post: 2009-03-05, 10:39

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×