Commit Graph

66 Commits

Author SHA1 Message Date
Humdinger
97a5f78d9f Use driver settings API for the MIDI settings
Suggested by Adrien, to make the MIDI settings more future proof when
more settings will be added, and to make manual editing less error prone.
Moved the settings from B_USER_SETTINGS_DIRECTORY/midi to
B_USER_SETTINGS_DIRECTORY/Media/midi_settings.
2016-11-06 15:17:01 +01:00
Humdinger
c9275bf517 Fix loading of MIDI SoundFonts with spaces in filename 2016-11-03 10:45:09 +01:00
Jérôme Duval
7e9b90f7e4 Midi: use fluidlite as fluidsynth replacement.
* SF3 support.
2016-11-01 08:50:03 +01:00
Stefano Ceccherini
d6039d2b23 Midi: Remove some duplicated code
Introduced new private read/write_midi_settings() and used them
in MidiSettingsView and SoftSynth.
2015-08-27 11:51:57 +02:00
Stefano Ceccherini
65b4405ecc BSoftSynth: Fixed auto selection of soundfont.
When no midi settings file was available, BSoftSynth should use the well known
TimGM6mb.sf2 soundfont. This wasn't working, since the code looked in the wrong
path (we have to append "synth" to the path returned by find_directory).
In case this SF is not present, now we try harder not to fail, and look for any
soundfont available in the system and user directories.
Fixes ticket #12325 although the selected soundfont is not written to the
user settings file.
2015-08-24 10:04:17 +02:00
JackBurton
437386ee10 Don't check for big_synth.sy, since it shouldn't exist anymore 2015-03-17 21:10:34 +01:00
Stefano Ceccherini
611ef1414f BSoftSynth: Select the soundfont from the settings file 2014-09-28 18:23:57 +02:00
Stefano Ceccherini
d3c865ecd8 BSoftSynth: Also look for softsynth in B_SYSTEM_SETTINGS_DIRECTORY and B_SYNTH_DIRECTORY.
Note that this will probably we changed again as we introduce a setting file
to locate the softsynth.
2014-09-23 06:31:57 +02:00
Stefano Ceccherini
1d5966ca12 BSoftSynth: Revert to Pete's original code
When you change code that you don't understand correctly... just DON'T.
Fixes a crash.
2014-09-22 07:24:16 +02:00
Stefano Ceccherini
d553b90c86 BSynth/BSoftSynth: implemented GetAudio().
Patch by Pete Goodeve (modified by me, hopefully for the better and
without introducing bugs) which implements BSynth::GetAudio().
2014-09-21 19:46:04 +02:00
Stefano Ceccherini
b2e8d9627a Style fixes 2014-09-21 19:21:34 +02:00
Stefano Ceccherini
94bfc1f561 BSoftSynth: pointer style, 80 column limit 2014-09-21 17:40:10 +02:00
Stefano Ceccherini
f511367b33 BSoftSynth::SetInstrumentsFile(): Check if file exists. 2014-09-20 19:57:03 +02:00
Stefano Ceccherini
c0622eb3d3 Fix spacing 2014-09-20 19:21:23 +02:00
Stefano Ceccherini
bd68cd0517 Midi Kit: SoftSynth: Implement reverb (patch by Pete Goodeve)
Applied patch by Pete Goodeve which implements reverb in the soft synthesizer.
2014-09-20 19:19:12 +02:00
Stefano Ceccherini
6cd948da2a Midi Kit: Actually look in /home/config/settings/synth/synth.sf2 2014-09-20 19:08:34 +02:00
Stefano Ceccherini
bee3de4dbb Midi Kit: Made it possible for the user to use a soundfont different
from the one supplied by default.
Since the PM move, it was not possible anymore to use a different soundfont,
since the /boot/system/data folder became read only.
Now the user has to put the soundfont (or, better,  a symbolic link to it)
into /home/config/settings/synth.sf2
In the future we'll supply a preflet to select the soundfont.
2014-09-20 19:01:41 +02:00
Oliver Tappe
220d040227 Use libstdc++, libsupc++ and libgcc from gcc_syslibs.
* Instead of faking libstdc++.so from libstdc++.a, use libstdc++.so
  from the gcc_syslibs build feature for everything except x86_gcc2.
* Use libgcc_s.so from the gcc_syslibs build feature for everything but
  x86_gcc2 (which still carries libgcc as part of libroot.so).
* Drop filtering of libgcc objects for libroot, as that is no longer
  necessary since we're only using libgcc-as-single-object for libroot
  with x86_gcc2, where the filtered object file doesn't exist. Should
  the objects that used to be filtered cause any problems as part of
  libgcc_s.so, we can always filter them as part of the gcc build.
* Use libsupc++.so from the gcc_syslibs build feature for everything but
  x86_gcc2.
* Adjust all Jamfiles accordingly.
* Deactivate building of faked libstdc++.so for non-x86-gcc2. For
  x86_gcc2, we still build libstdc++.so from the sources in the Haiku
  source tree as part of the Haiku build .
* Put gcc_syslibs package onto the image, when needed.
2014-08-13 13:32:44 +02:00
Oliver Tappe
1a7bcf6962 Lots of B_PRI... insertions to fix errors with DEBUG=1. 2014-06-02 02:00:28 +02:00
Ingo Weinhold
225b638263 Support building most system libraries for secondary arch
Also adjust the HaikuImageGet[Private]SystemLibs rules to support to
return the library targets matching the current architecture.
2013-08-06 00:45:22 +02:00
Jérôme Duval
01c5671de8 midi kit, media_addon_server, mail_server: fixes 64 bit warnings 2013-05-09 18:11:19 +02:00
Jérôme Duval
d61187a1f3 Patch from Pete Goodeve (ticket #7581): MIDI Pitchbend scaled wrongly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41777 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-27 18:29:07 +00:00
Jérôme Duval
bccbe7a7b9 Patch from Pete with changes by myself (bug #7558): BMidiSynth destructor should delete be_synth.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41717 a95241bf-73f2-0310-859d-f6bbb57e9c96
2011-05-24 18:39:04 +00:00
Stefano Ceccherini
51b3623ee6 Fix warnings
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37446 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-07-09 19:54:18 +00:00
Jérôme Duval
beb0419df1 Patch from Pete Goodeve: add MidiPortGlue to have old midikit endpoints registered in new midikit (#5625).
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@36019 a95241bf-73f2-0310-859d-f6bbb57e9c96
2010-04-01 18:35:48 +00:00
Oliver Tappe
16d5c24e53 * merged 32bit-wchar_t branches of buildtools and haiku back into
the respective trunk

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@31443 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-07-07 10:30:09 +00:00
Jérôme Duval
6c1399c4b0 fixed looping mode, and bug #1730
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@23940 a95241bf-73f2-0310-859d-f6bbb57e9c96
2008-02-10 21:03:34 +00:00
Jérôme Duval
77f879871f added back previous copyright notices, they were mysteriously replaced by our own copyright notice
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18046 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-06 08:56:18 +00:00
Jérôme Duval
b523823433 off all notes when stopping
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18006 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-02 11:55:43 +00:00
Jérôme Duval
e2e2e542ed fix a crash in SetVolume, fix debug build
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@18005 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-07-02 11:15:18 +00:00
Jérôme Duval
4810cdcdbc code style update to match ours (kind of)
license header update
minor clean up


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17876 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-19 13:24:04 +00:00
Jérôme Duval
2df2b98416 clean up
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17866 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-17 14:56:25 +00:00
Jérôme Duval
bafde775b9 made midi server beos compatible
fix binary compatibility for several classes (I missed this before)
the soft synth loads by default /boot/beos/etc/synth/big_synth.sy (which I locally linked to a General Midi sf2 bank
tested with MidiSynth 1.6 on Haiku


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17864 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-17 14:04:46 +00:00
Jérôme Duval
2af5dee4b4 minor fix
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17854 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-15 23:54:12 +00:00
Jérôme Duval
98c9e9e897 some fixes for dano
fix SoftSynth::PlayHandler, offset and incr are counted in samples


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17853 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-15 23:41:26 +00:00
Jérôme Duval
e3a74a24bd an untested work in progress of BSoftSynth using fluidsynth (it's a try out and could be reverted if we feel like it)
libfluidsynth.so isn't on the image yet


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17844 a95241bf-73f2-0310-859d-f6bbb57e9c96
2006-06-15 16:03:18 +00:00
Ingo Weinhold
65f512e089 Fixed gcc 4 build.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15010 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-11-17 22:53:30 +00:00
Ingo Weinhold
338b8dc301 Merged changes from branch build_system_redesign at revision 14573.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@14574 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-10-29 16:27:43 +00:00
Axel Dörfler
7142b1a749 Fixed warnings.
Applied our coding style a bit, but the class members should be renamed.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13526 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-07-07 12:42:57 +00:00
mahlzeit
d1c4420ee5 Added preliminary support for using TiMidity++ as softsynth.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11678 a95241bf-73f2-0310-859d-f6bbb57e9c96
2005-03-11 16:48:12 +00:00
Jérôme Duval
32081c1ebb added a link in develop/lib
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8199 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-27 22:20:06 +00:00
mahlzeit
e4aca0a646 Actually, I changed my mind. gcc warns that these variables may be
used uninitialized, but by not initializing them I assert that they
won't. Ha, so there!


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-25 08:36:07 +00:00
mahlzeit
a3f1540388 Fixed compiler warnings.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@8151 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-06-25 08:30:38 +00:00
mahlzeit
f9b2179cb2 Instruments (patches) are now correctly recognized.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7573 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-14 07:46:19 +00:00
mahlzeit
b178e1905b Implemented BMidiSynthFile.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7571 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 19:54:00 +00:00
mahlzeit
d1c8cf1d2f Hey Axel, I changed it to use a BPath ;-)
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7568 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 17:32:42 +00:00
mahlzeit
b6909aeaba Path to default instruments file wasn't calculated properly.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7567 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 17:06:06 +00:00
mahlzeit
fbaf754a21 Implemented the softsynth support classes and a skeleton for
the synth itself.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7565 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 16:46:06 +00:00
mahlzeit
32ed9cc8c6 The glue classes are now in namespace BPrivate.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7561 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 10:37:14 +00:00
mahlzeit
9138338c72 Fixed warnings on geekgadgets compiler.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7559 a95241bf-73f2-0310-859d-f6bbb57e9c96
2004-05-13 09:44:22 +00:00