3 |
* LinuxSampler - modular, streaming capable sampler * |
* LinuxSampler - modular, streaming capable sampler * |
4 |
* * |
* * |
5 |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
* Copyright (C) 2003,2004 by Benno Senoner and Christian Schoenebeck * |
6 |
* Copyright (C) 2005-2009 Christian Schoenebeck * |
* Copyright (C) 2005-2021 Christian Schoenebeck * |
7 |
* Copyright (C) 2009-2012 Grigor Iliev * |
* Copyright (C) 2009-2012 Grigor Iliev * |
8 |
* * |
* * |
9 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
221 |
q.key = itNote->cause.Param.Note.Key; //itNoteOffEvent->Param.Note.Key; <- using note object instead, since note nr might been modified by script |
q.key = itNote->cause.Param.Note.Key; //itNoteOffEvent->Param.Note.Key; <- using note object instead, since note nr might been modified by script |
222 |
|
|
223 |
// MIDI note-on velocity is used instead of note-off velocity |
// MIDI note-on velocity is used instead of note-off velocity |
224 |
q.vel = itNote->cause.Param.Note.Velocity; //pChannel->pMIDIKeyInfo[q.key].Velocity; <- using note object instead, since velocity might been modified by script |
q.vel = pChannel->pMIDIKeyInfo[q.key].Velocity; |
225 |
itNoteOffEvent->Param.Note.Velocity = q.vel; |
itNoteOffEvent->Param.Note.Velocity = q.vel; |
226 |
|
itNote->cause.Param.Note.Velocity = q.vel; |
227 |
|
|
228 |
q.bend = pChannel->Pitch; |
q.bend = pChannel->Pitch; |
229 |
q.bpm = 0; |
q.bpm = 0; |