35 |
return errorResult(0); |
return errorResult(0); |
36 |
} |
} |
37 |
|
|
38 |
if (duration < -1) { |
if (duration < -2) { |
39 |
errMsg("play_note(): argument 4 must be a duration value of at least -1 or higher"); |
errMsg("play_note(): argument 4 must be a duration value of at least -2 or higher"); |
40 |
return errorResult(0); |
return errorResult(0); |
41 |
} |
} |
42 |
|
|
55 |
return errorResult(0); |
return errorResult(0); |
56 |
} |
} |
57 |
e.Param.Note.ParentNoteID = m_vm->m_event->cause.Param.Note.ID; |
e.Param.Note.ParentNoteID = m_vm->m_event->cause.Param.Note.ID; |
58 |
|
// check if that requested parent note is actually still alive |
59 |
|
NoteBase* pParentNote = |
60 |
|
pEngineChannel->pEngine->NoteByID( e.Param.Note.ParentNoteID ); |
61 |
|
// if parent note is already gone then this new note is not required anymore |
62 |
|
if (!pParentNote) |
63 |
|
return successResult(0); |
64 |
} |
} |
65 |
|
|
66 |
const note_id_t id = pEngineChannel->ScheduleNoteMicroSec(&e, 0); |
const note_id_t id = pEngineChannel->ScheduleNoteMicroSec(&e, 0); |