Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add support for the fontsound loop mode | Chris Robinson | 2013-12-29 | 6 | -4/+24 |
| | |||||
* | Ensure the soundfont version is 2.x | Chris Robinson | 2013-12-28 | 1 | -2/+28 |
| | |||||
* | Add alLoadSoundfontSOFT to load a soundfont via callback | Chris Robinson | 2013-12-28 | 6 | -0/+1309 |
| | | | | | | | | | | | | | | | | | | | | | Some hefty caveats: This function is not thread-safe. In particular, the current context affecting the thread must not be changed, and the provided soundfont must not be altered while the function is executing. Ideally, this will be fixed. Error handling is poor. Some RIFF structure errors may not be caught (e.g. sub- chunks with sizes greater than the parent chunk allows for), and generated AL errors are ignored, possibly leading to resource leaks in certain situations. These should be fixed in time. There is minimal error checking on the provided soundfont ID. It does not ensure a valid ID has been provided, nor does it ensure the provided soundfont can be modified. These short-comings should be fixed eventually. Proper cleanup is the responsibility of the caller. The caller must get the preset objects from the soundfont before deleting it, and the fontsound objects from each preset before deleting them, to make sure all resources are properly deleted. | ||||
* | Allow loading multiple soundfonts with FluidSynth | Chris Robinson | 2013-12-27 | 1 | -21/+50 |
| | |||||
* | Create a custom fluid_sfloader_t loader | Chris Robinson | 2013-12-27 | 1 | -4/+299 |
| | | | | | | | This allows us to load and use soundfont objects the app specifies (the first one, at least), rather than having to load from a file. It doesn't sound that good since modulators and most generators aren't yet available, but this will steadily improve. | ||||
* | Add a method to set and get soundfonts | Chris Robinson | 2013-12-27 | 8 | -8/+145 |
| | | | | | The main purpose of this is to select soundfonts for playback, eventually, instead of the existing method that takes a filename. | ||||
* | Allow specifying all 4 sample types | Chris Robinson | 2013-12-27 | 1 | -1/+1 |
| | | | | ROM-based types will be specified with a separate property | ||||
* | Allow specifying some fontsound sample properties | Chris Robinson | 2013-12-26 | 2 | -1/+113 |
| | |||||
* | Remove the generator list | Chris Robinson | 2013-12-26 | 2 | -63/+16 |
| | |||||
* | Allow specifying key and velocity ranges on fontsounds | Chris Robinson | 2013-12-26 | 3 | -0/+140 |
| | |||||
* | Add methods to set and get sounds on a preset | Chris Robinson | 2013-12-25 | 3 | -0/+67 |
| | |||||
* | Store a list of sounds in the preset | Chris Robinson | 2013-12-25 | 2 | -0/+11 |
| | |||||
* | Remove the zone, sample, and instrument object types | Chris Robinson | 2013-12-25 | 6 | -413/+0 |
| | |||||
* | Add methods to add generators and modulators to fontsounds | Chris Robinson | 2013-12-25 | 2 | -0/+73 |
| | |||||
* | Add a new fontsound object type | Chris Robinson | 2013-12-25 | 6 | -0/+245 |
| | | | | This is basically a combined preset and intrument zone with sample header. | ||||
* | Do not allow deleting preset or instrument ID 0 | Chris Robinson | 2013-12-24 | 2 | -6/+0 |
| | |||||
* | Allow querying the soundfont sample length and format type | Chris Robinson | 2013-12-24 | 2 | -0/+9 |
| | |||||
* | Do not accept preset or instrument ID 0 as valid | Chris Robinson | 2013-12-23 | 2 | -4/+2 |
| | |||||
* | Unlock the soundfont earlier after switching preset lists | Chris Robinson | 2013-12-23 | 1 | -2/+1 |
| | |||||
* | Add methods to get and set presets on a soundfont | Chris Robinson | 2013-12-23 | 3 | -2/+103 |
| | |||||
* | Add methods to get and set a preset object's preset and bank numbers | Chris Robinson | 2013-12-23 | 5 | -2/+117 |
| | |||||
* | Make sure key and velocity ranges are the first two generators | Chris Robinson | 2013-12-21 | 1 | -0/+28 |
| | |||||
* | Free thunk entry in the object destructor | Chris Robinson | 2013-12-20 | 4 | -9/+4 |
| | |||||
* | Better protect against improper alSoundfontSamplesSOFT calls | Chris Robinson | 2013-12-20 | 3 | -9/+22 |
| | |||||
* | Use a different autowah filter range | Chris Robinson | 2013-12-20 | 1 | -1/+1 |
| | | | | Still just guesses, but this seems to avoid math problems with low peak gains. | ||||
* | Add functions to set a soundfont's sample data | Chris Robinson | 2013-12-19 | 5 | -1/+94 |
| | |||||
* | Fix compiling without FluidSynth | Chris Robinson | 2013-12-19 | 1 | -5/+4 |
| | |||||
* | Allow creating instrument objects | Chris Robinson | 2013-12-19 | 5 | -0/+172 |
| | |||||
* | Call the right delete method when generating presets fails | Chris Robinson | 2013-12-19 | 1 | -2/+2 |
| | |||||
* | Rename some ALsoundfont fields | Chris Robinson | 2013-12-19 | 2 | -7/+7 |
| | |||||
* | Move the soundfont and preset extension functions to separate sources | Chris Robinson | 2013-12-19 | 4 | -253/+284 |
| | |||||
* | Add methods to create and destroy presets | Chris Robinson | 2013-12-19 | 4 | -0/+155 |
| | |||||
* | Properly initialize and cleanup the soundfont map | Chris Robinson | 2013-12-18 | 3 | -0/+33 |
| | |||||
* | Make alIsSoundfontSOFT check soundfont IDs | Chris Robinson | 2013-12-18 | 2 | -7/+6 |
| | |||||
* | Add a new ALsoundfont object type | Chris Robinson | 2013-12-18 | 5 | -66/+485 |
| | | | | | Includes a basic hierarchy for presets, instruments, samples, zones, generators, and modulators. | ||||
* | Fix header guard and remove duplicate code | Chris Robinson | 2013-12-18 | 2 | -101/+3 |
| | |||||
* | Add an option to use the HRTF time delay measured from the dataset | Chris Robinson | 2013-12-18 | 1 | -13/+82 |
| | |||||
* | Move the base MidiSynth to a separate file | Chris Robinson | 2013-12-17 | 9 | -236/+364 |
| | |||||
* | Move the dummy MIDI handler to a separate file | Chris Robinson | 2013-12-17 | 4 | -118/+134 |
| | |||||
* | Move FluidSynth to its own file | Chris Robinson | 2013-12-17 | 4 | -335/+380 |
| | |||||
* | Make MidiSynth's methods non-static | Chris Robinson | 2013-12-17 | 2 | -51/+33 |
| | |||||
* | Update the midi soundfont config option | Chris Robinson | 2013-12-16 | 1 | -2/+2 |
| | |||||
* | Render some MIDI samples even when stopped | Chris Robinson | 2013-12-15 | 1 | -3/+4 |
| | | | | | Because stopping MIDI playback puts any playing notes into release phase, they should be rendered. Ideally it could stop rendering once output goes silent. | ||||
* | Use macros for MIDI controller values | Chris Robinson | 2013-12-15 | 1 | -3/+9 |
| | |||||
* | Don't explicitly set reverb or chorus | Chris Robinson | 2013-12-13 | 1 | -2/+0 |
| | |||||
* | Add a alMidiResetSOFT method to reset the synth | Chris Robinson | 2013-12-13 | 3 | -7/+28 |
| | | | | | Playback is stopped, the queue is flushed, the clock is reset to 0, and the MIDI system is reset to power-up status. | ||||
* | Update behavior for alMidiStopSOFT | Chris Robinson | 2013-12-13 | 2 | -3/+44 |
| | | | | | | | | | alMidiStopSOFT now has the following behavior: * All pending MIDI events up to the current time are processed first, before the queue is flushed. * All channels then receive an All Notes Off event so that notes go through their release phase. Controllers are *NOT* reset. * Clock time is reset to 0, like before. | ||||
* | Fix retrieving source properties | Chris Robinson | 2013-12-09 | 1 | -6/+6 |
| | |||||
* | Fix leak if inserting a sysex event fails | Chris Robinson | 2013-12-08 | 1 | -5/+7 |
| | |||||
* | Fix numeric constant type (double->float) | Chris Robinson | 2013-12-08 | 1 | -2/+2 |
| |