[haiku-bugs] Re: [Haiku] #9920: BSynth upgrade

  • From: "bonefish" <trac@xxxxxxxxxxxx>
  • Date: Tue, 23 Sep 2014 09:02:58 -0000

#9920: BSynth upgrade
-----------------------------+-------------------------
   Reporter:  Pete           |      Owner:  korli
       Type:  enhancement    |     Status:  new
   Priority:  normal         |  Milestone:  R1
  Component:  Kits/Midi Kit  |    Version:  R1/alpha4.1
 Resolution:                 |   Keywords:
 Blocked By:                 |   Blocking:
Has a Patch:  1              |   Platform:  All
-----------------------------+-------------------------

Comment (by bonefish):

 Replying to [comment:35 jackburton]:
 > The midi preflet (or the view in the media preflet) which I already
 started writing will present a list of the soundfonts found in those
 directories, plus (if needed, I don't have a strong opinion on this, but I
 guess it could be handy) an "Import Soundfont" button, to be able to
 choose a soundfont from any location, which will be then copied into
 /home/config/non-packaged/data/synth.
 > The user could then choose the preferred soundfont, and the preflet will
 write a setting file into /home/config/settings.
 > BSoftSynth will parse this setting file and load the user selected font.
 If the file is not present, it will load the system settings file (if
 present). Otherwise it will load a "default" system soundfont.
 > How the "default" system soundfont (the one loaded when there is no
 settings" could be determined by a symbolic link in
 /boot/system/data/synth. This is what big_synth.sy does now. Since it
 doesn't seem to be used anywhere, I'd even rename this to"default.sf2".
 This link would be created by the soundfont packages. The last installed
 soundfont could owerwrite the default preference, or could leave it
 untouched, I don't know.

 No, please. In the same way installing a font shouldn't change any global
 setting, installing a sound font shouldn't do that either. If no one uses
 the global system sound font symlink anyway, let's just omit it. A per-
 user setting suffices. If there isn't a user setting yet, just use some
 heuristic to pick one. If we provide TimSoundFont by default with Haiku,
 then try that one first. If it isn't there, use the oldest one, the one
 with the funniest name, or simply first one found in any sound font
 directory. At that point write the setting, so it remains stable until the
 user chooses a new one (or uninstalls the selected one).

--
Ticket URL: <https://dev.haiku-os.org/ticket/9920#comment:36>
Haiku <https://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: