/[svn]/linuxsampler/trunk/src/engines/gig/Voice.cpp
ViewVC logotype

Log of /linuxsampler/trunk/src/engines/gig/Voice.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (download) (annotate)
Sticky Revision:

Revision 796 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 30 08:35:13 2005 UTC (18 years, 5 months ago) by persson
File length: 45061 byte(s)
Diff to previous 791 , to selected 239
* fixed voice stealing - stolen voices weren't killed


Revision 791 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 16 14:50:20 2005 UTC (18 years, 5 months ago) by persson
File length: 44678 byte(s)
Diff to previous 783 , to selected 239
* Filter tuning: calculation of cutoff frequency and bandwidth
  improved. Removed use of "BasicBPFilter". Changed bandpass filter
  from constant peak to constant skirt. Use gig parameter Resonance if
  no resonance controller is set. Removed keyboard tracking influence
  on resonance.


Revision 783 - (view) (download) (annotate) - [select for diffs]
Modified Sun Oct 2 14:40:52 2005 UTC (18 years, 5 months ago) by persson
File length: 44798 byte(s)
Diff to previous 781 , to selected 239
* EG fixes: the length of "attack hold" stage was wrong. Release stage
  can now start before attack stage ends. Cancel release didn't work
  when sustain was zero.


Revision 781 - (view) (download) (annotate) - [select for diffs]
Modified Mon Sep 26 10:17:00 2005 UTC (18 years, 6 months ago) by schoenebeck
File length: 44740 byte(s)
Diff to previous 770 , to selected 239
* fixed event handling bug which was introduced by the recent synthesis
  optimizations (events were only processed for the first active voice)
* added global volume attenuation of -9 dB (0.35f) to prevent clipping
  which can be overridden with --enable-global-attenuation


Revision 770 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 11 15:56:29 2005 UTC (18 years, 6 months ago) by schoenebeck
File length: 44822 byte(s)
Diff to previous 769 , to selected 239
* synthesis core optimizations


Revision 769 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 3 11:14:30 2005 UTC (18 years, 6 months ago) by schoenebeck
File length: 42959 byte(s)
Diff to previous 768 , to selected 239
* fixed endless loop which occured on MIDI control change
  and pitch bend events


Revision 768 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 2 20:11:55 2005 UTC (18 years, 6 months ago) by persson
File length: 42932 byte(s)
Diff to previous 738 , to selected 239
* bug fixes for the new EG implementation


Revision 738 - (view) (download) (annotate) - [select for diffs]
Modified Tue Aug 16 17:14:25 2005 UTC (18 years, 7 months ago) by schoenebeck
File length: 43019 byte(s)
Diff to previous 729 , to selected 239
* extensive synthesis optimization: reimplementation of EGs and LFO(s),
  removed synthesis parameter prerendering and the synthesis parameter
  matrix in general, splitting each audio fragment into subfragments now
  where each subfragment uses constant synthesis parameters
  (everything's still very buggy ATM)


Revision 729 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 26 11:18:46 2005 UTC (18 years, 8 months ago) by persson
File length: 49925 byte(s)
Diff to previous 716 , to selected 239
* improved filter cutoff calculation by adding support for the
  following gig parameters: Cutoff freq (used when no cutoff
  controller is defined), Control invert, Minimum cutoff, Velocity
  curve and Velocity range. The keyboard tracking now also scales
  cutoff frequency, not just resonance.


Revision 716 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jul 24 06:57:30 2005 UTC (18 years, 8 months ago) by iliev
File length: 48993 byte(s)
Diff to previous 696 , to selected 239
* Added configure option --enable-process-muted-channels
which can be used to enable the processing of muted channels


Revision 696 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jul 16 19:37:52 2005 UTC (18 years, 8 months ago) by persson
File length: 48519 byte(s)
Diff to previous 687 , to selected 239
* fine tuning of the EG modulation parameters


Revision 687 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jul 12 22:37:21 2005 UTC (18 years, 8 months ago) by schoenebeck
File length: 48407 byte(s)
Diff to previous 669 , to selected 239
* minor efficiency fix (LFO preprocessing was performed even though the
  respective LFO was disabled by the instrument patch)


Revision 669 - (view) (download) (annotate) - [select for diffs]
Modified Tue Jun 21 13:33:19 2005 UTC (18 years, 9 months ago) by schoenebeck
File length: 46441 byte(s)
Diff to previous 630 , to selected 239
* fixed minor issue with null/silence samples
  (those stole voices even though they don't need a voice at all which
  resulted in "voice stealing didn't work out" messages)


Revision 630 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 11 14:51:49 2005 UTC (18 years, 9 months ago) by persson
File length: 52965 byte(s)
Diff to previous 617 , to selected 239
* volume of release triggered samples now depends on note-on velocity,
  note length and gig parameter "release trigger decay" instead of
  note-off velocity.


Revision 617 - (view) (download) (annotate) - [select for diffs]
Modified Wed Jun 8 21:00:06 2005 UTC (18 years, 9 months ago) by schoenebeck
File length: 52463 byte(s)
Diff to previous 614 , to selected 239
* hand-crafted assembly optimization code can be disabled with
  './configure --disable-asm' (definitely not recommended)


Revision 614 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jun 6 16:54:20 2005 UTC (18 years, 9 months ago) by persson
File length: 52449 byte(s)
Diff to previous 563 , to selected 239
* support for the gig parameters for "release velocity response"
  curves, which means the decay and release times now depends on
  velocity. The softer velocity, the longer release.
* fine tuning of the envelope curves. Decay1 and release now have two
  parts, first linear and then exponential at the end.


Revision 563 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 22 20:43:32 2005 UTC (18 years, 10 months ago) by schoenebeck
File length: 52012 byte(s)
Diff to previous 554 , to selected 239
* (re)implemented voice stealing algorithm "oldestvoiceonkey" and made it
  the default voice stealing algorithm
* added new LSCP command "GET SERVER INFO" which currently returns
  description and version about this sampler
* added some API documentation comments
* minor cleanup


Revision 554 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 19 19:25:14 2005 UTC (18 years, 10 months ago) by schoenebeck
File length: 51798 byte(s)
Diff to previous 460 , to selected 239
* All compile time options are now centrally alterable as arguments to the
  ./configure script. All options are C Macros beginning with CONFIG_
  prefix and will be placed into auto generated config.h file.


Revision 460 - (view) (download) (annotate) - [select for diffs]
Modified Mon Mar 14 22:35:44 2005 UTC (19 years ago) by schoenebeck
File length: 51657 byte(s)
Diff to previous 438 , to selected 239
* spawning layered voices now within a loop instead of recursively (fixes
  segmentation fault under heavy voice count load and reduces stress on the
  stack)
* voice stealing operates on all engine channels now
* limit voice stealing to MAX_AUDIO_VOICES thefts per audio fragment cycle
* fixed keygroup handling (layered voices could kill each other)


Revision 438 - (view) (download) (annotate) - [select for diffs]
Modified Wed Mar 9 22:12:15 2005 UTC (19 years ago) by persson
File length: 51825 byte(s)
Diff to previous 425 , to selected 239
* 24-bit decompression now supports the 20 and 18 bit formats
* support for "random" and "round robin" dimensions
* removed a warning printout for empty samples during instrument
  loading


Revision 425 - (view) (download) (annotate) - [select for diffs]
Modified Sat Mar 5 07:27:48 2005 UTC (19 years ago) by persson
File length: 51276 byte(s)
Diff to previous 411 , to selected 239
* fixed a bug that sometimes caused clicks at the beginning of samples
* added denormal number elimination for CPUs with SSE2 support


Revision 411 - (view) (download) (annotate) - [select for diffs]
Modified Sat Feb 26 02:01:14 2005 UTC (19 years, 1 month ago) by schoenebeck
File length: 51039 byte(s)
Diff to previous 407 , to selected 239
* design change: using now one sampler engine instance and one disk thread
  instance for all sampler channels that are connected to the same audio
  output device (and are using the same engine type of course)
* added EngineFactory / EngineChannelFactory to remove the annoying build
  dependencies e.g. of the lscpserver to the actual sampler engine
  implementations
* bumped version to 0.3.0 (current CVS state is still quite broken,
  previous, stable CVS version was tagged as "v0_2_0" and is also available
  as source tarball)


Revision 407 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 23 19:14:14 2005 UTC (19 years, 1 month ago) by persson
File length: 50532 byte(s)
Diff to previous 368 , to selected 239
* added support for sample parameter 'attenuation'


Revision 368 - (view) (download) (annotate) - [select for diffs]
Modified Fri Feb 11 13:13:54 2005 UTC (19 years, 1 month ago) by schoenebeck
File length: 50485 byte(s)
Diff to previous 361 , to selected 239
* some fixes regarding the filter (fixes the "silence" bug which occured
  occasionally, caused by random biquad parameters which lead to unstable
  filter equation and thus to infinit filter output results)


Revision 361 - (view) (download) (annotate) - [select for diffs]
Modified Wed Feb 9 01:22:18 2005 UTC (19 years, 1 month ago) by schoenebeck
File length: 50328 byte(s)
Diff to previous 354 , to selected 239
* bunch of fixes for OSX (patch by Stephane Letz)


Revision 354 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 29 15:17:59 2005 UTC (19 years, 2 months ago) by schoenebeck
File length: 50206 byte(s)
Diff to previous 348 , to selected 239
* support for keyswitching
* ignore if no sample was defined for region(s) or dimension region(s)
(patch by Andreas Persson)


Revision 348 - (view) (download) (annotate) - [select for diffs]
Modified Sun Jan 23 21:24:16 2005 UTC (19 years, 2 months ago) by schoenebeck
File length: 50039 byte(s)
Diff to previous 335 , to selected 239
* another crossfade fix (honoring AttenuationController for case 0,0,0,0,
  fixed cases in_start = in_end = CrossfadeControllerValue, fixed curve for
  cases out_start < CrossfadeControllerValue < out_end, honoring
  InvertAttenuationController parameter)
* support for up to 8 dimensions as introduced by Gig V3
(patch by Andreas Persson)


Revision 335 - (view) (download) (annotate) - [select for diffs]
Modified Mon Jan 3 02:48:25 2005 UTC (19 years, 2 months ago) by senkov
File length: 50100 byte(s)
Diff to previous 332 , to selected 239
* Fixed pitch calculation. FineTune needs to be taken as is
 without multiplying it by 10.


Revision 332 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jan 1 03:06:06 2005 UTC (19 years, 3 months ago) by senkov
File length: 50105 byte(s)
Diff to previous 330 , to selected 239
* Initialize the synthesis mode bitmask properly


Revision 330 - (view) (download) (annotate) - [select for diffs]
Modified Wed Dec 29 01:14:15 2004 UTC (19 years, 3 months ago) by schoenebeck
File length: 50054 byte(s)
Diff to previous 325 , to selected 239
* fixed endless loop at the end of sample playback
  (patch by Andreas Persson)


Revision 325 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 21 04:54:37 2004 UTC (19 years, 3 months ago) by senkov
File length: 49636 byte(s)
Diff to previous 324 , to selected 239
* Added some profiling capabilities, bugs.


Revision 324 - (view) (download) (annotate) - [select for diffs]
Modified Sat Dec 18 18:54:46 2004 UTC (19 years, 3 months ago) by senkov
File length: 49882 byte(s)
Diff to previous 323 , to selected 239
* Applied patch from Andreas Persson and made a few other small
 changes to fix a bug in the filter code.


Revision 323 - (view) (download) (annotate) - [select for diffs]
Modified Tue Dec 14 00:32:21 2004 UTC (19 years, 3 months ago) by schoenebeck
File length: 49882 byte(s)
Diff to previous 322 , to selected 239
* fixed bug which caused samples not to be played back to their actual end
  (patch by Andreas Persson, added a small extra fix)


Revision 322 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 13 03:33:59 2004 UTC (19 years, 3 months ago) by senkov
File length: 49262 byte(s)
Diff to previous 319 , to selected 239
* fixed CalculateBiquadParameters() to set parameters for
 both right and left, not just left.


Revision 319 - (view) (download) (annotate) - [select for diffs]
Modified Mon Dec 13 00:46:42 2004 UTC (19 years, 3 months ago) by schoenebeck
File length: 49056 byte(s)
Diff to previous 287 , to selected 239
* introduced 'synthesis mode' to reduce the amount of code and conditionals
  for the current synthesis case in the main synthesis loop
* support for MMX and SSE(1) in the core synthesis algorithms (CPU feature
  detection at runtime, only x86 so far)


Revision 287 - (view) (download) (annotate) - [select for diffs]
Modified Sat Oct 16 17:38:03 2004 UTC (19 years, 5 months ago) by schoenebeck
File length: 50637 byte(s)
Diff to previous 285 , to selected 239
* fixed segfault which occured whenever a voice stole a voice and was in
  turn killed in the same audio fragment, to fix that the MIDI key
  informations are now updated only after all voices were processed


Revision 285 - (view) (download) (annotate) - [select for diffs]
Modified Thu Oct 14 21:31:26 2004 UTC (19 years, 5 months ago) by schoenebeck
File length: 50226 byte(s)
Diff to previous 271 , to selected 239
* bunch of bugfixes (e.g. segfault on voice stealing)


Revision 271 - (view) (download) (annotate) - [select for diffs]
Modified Fri Oct 8 20:51:39 2004 UTC (19 years, 5 months ago) by schoenebeck
File length: 49959 byte(s)
Diff to previous 247 , to selected 239
* libgig: fixed panorama value in DimensionRegion (invalid conversion
  from signed 7 bit to signed 8 bit)
* src/linuxsampler.cpp: stacktrace is now automatically shown on fatal
  errors (that is  segmentation faults, etc.), gdb should be installed for
  this to work
* gig::Voice: tiny accuracy fix of pan calculation
* replaced old pool classes by completely new ones which now offer
  Iterator abstraction


Revision 247 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 19 23:44:23 2004 UTC (19 years, 6 months ago) by senkov
File length: 49675 byte(s)
Diff to previous 246 , to selected 239
* Small fix to pan coeff. calculation.
* (LS was silent with gigs where pan was 0).


Revision 246 - (view) (download) (annotate) - [select for diffs]
Modified Sun Sep 19 14:12:55 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 49657 byte(s)
Diff to previous 245 , to selected 239
just tidied up event type specific parameters (that is note-on specific
parameters, controle change specific parameters, etc.) in Event class


Revision 245 - (view) (download) (annotate) - [select for diffs]
Modified Sat Sep 18 14:12:36 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 49438 byte(s)
Diff to previous 244 , to selected 239
* support patch panorama info


Revision 244 - (view) (download) (annotate) - [select for diffs]
Modified Fri Sep 17 01:01:11 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 52393 byte(s)
Diff to previous 242 , to selected 239
* added support for scale tuning via MIDI GS system exclusive message


Revision 242 - (view) (download) (annotate) - [select for diffs]
Modified Wed Sep 15 13:59:08 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 52350 byte(s)
Diff to previous 239
* added support for release trigger dimension (that is voices which are
  spawned when a key was released)
* libgig: bugfix in dimension region switching


Revision 239 - (view) (download) (annotate) - [selected]
Modified Sun Sep 12 14:48:19 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 51972 byte(s)
Diff to previous 236
* implemented key groups (a.k.a exclusive groups) which is important for
  drum patches and monphonic instruments
* src/engines/gig/Engine.cpp: bugfix in ProcessNoteOn() - did not always
  stick the note on event to the respective key's own event list although
  e.g. the EGADRS expects it to find there


Revision 236 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 9 18:44:18 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 51184 byte(s)
Diff to previous 233 , to selected 239
* added support for crossfades
* support sample playback start offset


Revision 233 - (view) (download) (annotate) - [select for diffs]
Modified Tue Sep 7 09:32:21 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 48490 byte(s)
Diff to previous 230 , to selected 239
* added support for layers
* fixed initial pitch calculation which did not honor the sample's own
  sample rate


Revision 230 - (view) (download) (annotate) - [select for diffs]
Modified Thu Sep 2 21:52:29 2004 UTC (19 years, 6 months ago) by schoenebeck
File length: 48007 byte(s)
Diff to previous 225 , to selected 239
* src/engines/gig/Voice.cpp: dimension region selection takes current
  MIDI controller values into account


Revision 225 - (view) (download) (annotate) - [select for diffs]
Modified Sun Aug 22 14:46:47 2004 UTC (19 years, 7 months ago) by schoenebeck
File length: 43756 byte(s)
Diff to previous 111 , to selected 239
* set default volume to 1.0 in Gigasampler engine (was 0.0)
* implemented "SET CHANNEL AUDIO_OUTPUT_CHANNEL" LSCP command
* fixed "GET ENGINE INFO" LSCP command
* fixed "GET CHANNEL INFO" LSCP command
* src/network/lscp.y: fixed 'stringval' rule (returned string with formal
  apostrophes), fixed 'dotnum' rule (ignored position after decimal point)


Revision 111 - (view) (download) (annotate) - [select for diffs]
Modified Sat Jun 5 20:55:50 2004 UTC (19 years, 9 months ago) by schoenebeck
File length: 44058 byte(s)
Diff to previous 84 , to selected 239
* LSCP allows now comment lines, that is lines starting with a hash ('#')
  character
* src/engines/gig/Voice.cpp: fixed "SET CHANNEL VOLUME" bug


Revision 84 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 23 20:17:31 2004 UTC (19 years, 10 months ago) by schoenebeck
File length: 44034 byte(s)
Diff to previous 80 , to selected 239
forgot to remove a redundant assignment (only a small efficiency issue)


Revision 80 - (view) (download) (annotate) - [select for diffs]
Modified Sun May 23 19:16:33 2004 UTC (19 years, 10 months ago) by schoenebeck
File length: 44091 byte(s)
Diff to previous 64 , to selected 239
* biquad filter parameters are now calculated outside the interpolate
  loop for better performance
* couple of loop unroll optimizations
* filter is now enabled by default
* cubic interpolation is now enabled by default
* reduced debug level to 1 to lower verbosity
* raised default limit for voices to 128
* raised default limit for streams to 150
* added some compiler optimization flags (-ffast-math -march -mcpu)


Revision 64 - (view) (download) (annotate) - [select for diffs]
Modified Thu May 6 20:06:20 2004 UTC (19 years, 10 months ago) by schoenebeck
File length: 41850 byte(s)
Diff to previous 56 , to selected 239
* src/Sampler.cpp: fixed 3 stupid but fatal bugs that left in the rush (in
  method SamplerChannels(), CreateAudioOutputDevice() and
  CreateMidiInputDevice())
* src/network/lscpserver.cpp: implemented LSCP command
  'SET CHANNEL MIDI_INPUT_CHANNEL'
* src/Sampler.h: moved enums 'audio_output_type_t', 'midi_input_type_t'
  and 'engine_type_t' into the respective base classes
  ('AudioOutputDevice', 'MidiInputDevice', 'Engine')


Revision 56 - (view) (download) (annotate) - [select for diffs]
Modified Tue Apr 27 09:21:58 2004 UTC (19 years, 11 months ago) by schoenebeck
File length: 41850 byte(s)
Diff to previous 53 , to selected 239
updated copyright header for 2004


Revision 53 - (view) (download) (annotate) - [select for diffs]
Added Mon Apr 26 17:15:51 2004 UTC (19 years, 11 months ago) by schoenebeck
File length: 41850 byte(s)
Diff to selected 239
* completely restructured source tree
* implemented multi channel support
* implemented instrument manager, which controls sharing of instruments
  between multiple sampler engines / sampler channels
* created abstract classes 'AudioOutputDevice' and 'MidiInputDevice' for
  convenient implementation of further audio output driver and MIDI input
  driver for LinuxSampler
* implemented following LSCP commands: 'SET CHANNEL MIDI INPUT TYPE',
  'LOAD ENGINE', 'GET CHANNELS', 'ADD CHANNEL', 'REMOVE CHANNEL',
  'SET CHANNEL AUDIO OUTPUT TYPE'
* temporarily removed all command line options
* LSCP server is now launched by default


This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

  ViewVC Help
Powered by ViewVC