INNER CODE UNIT · C

t

1oom-fork/1oom · src/fmt_mus.c:62

    uint32_t t = t_now + duration;
    int8_t i = xmid_find_free_noteoff(s);
    noteoff_t *n;
    if (i < 0) {
        log_error("XMID: BUG noteoff tbl full!\n");
        return false;
    }
    n = &(s->tbl[i]);
    n->next = -1;
    n->t = t;
    n->ch = data[0] & 0x8f; /* 9x -> 8x */
    n->note = data[1];

    if (s->top < 0) {
        s->top = i;
    } else {
        int j, k;
        j = s->top;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…