dequeue_midi_event   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/libs/external/midi.xtm

Implementation

(bind-func dequeue_midi_event
  (let ((head 0) (tail 0))
    (lambda ()
      (set! tail (enqueue_midi_event.tail:i64))
      (if (< (+ head XTM_MIDI_EVENT_QUEUE_SIZE) tail)
          (begin (println "Warning: MIDI overrun (head:" head "tail:" tail ") events dropped")
                 (set! head tail)))
      (if (< head tail)
          (let ((res (aref-ptr XTM_MIDI_EVENT_QUEUE (% head XTM_MIDI_EVENT_QUEUE_SIZE))))
            (set! head (+ head 1))
            res)
          null)))) ;; underrun


Back to Index

Similar Entries

  • *midioffset*    scheme
  • PmEvent_cc_p    xtlang
  • PmEvent_note_off_p    xtlang
  • PmEvent_note_on_p    xtlang
  • Pm_Event_Channel    xtlang
  • Pm_Event_Data1    xtlang
  • Pm_Event_Data2    xtlang
  • Pm_Event_Message    xtlang
  • Pm_Event_Timestamp    xtlang
  • Pm_Event_Type    xtlang
  • available_midi_events    xtlang
  • dequeue    xtlang
  • enqueue_midi_event    xtlang
  • event_poll    xtlang
  • get-midi-device-names-alist    scheme
  • get-midi-input-device-names-alist    scheme
  • get-midi-output-device-names-alist    scheme
  • get_midi_evt_a    xtlang
  • get_midi_evt_b    xtlang
  • get_midi_evt_channel    xtlang
  • get_midi_evt_clocktime    xtlang
  • get_midi_evt_timestamp    xtlang
  • get_midi_evt_type    xtlang
  • get_midi_in    xtlang
  • get_midi_out    xtlang
  • glfw_poll_events    xtlang
  • homo-play-midi-note    scheme
  • homo-play-midi-note    scheme
  • midi-cc    scheme
  • midi-loop    scheme
  • midi-loop    scheme
  • midi-note-off    scheme
  • midi-note-on    scheme
  • midi2frq    scheme
  • midi_cc    xtlang
  • midi_cc    xtlang
  • midi_cc    xtlang
  • midi_cc    xtlang
  • midi_high_shelf    xtlang
  • midi_input_polling    xtlang
  • midi_input_port_id    xtlang
  • midi_low_shelf    xtlang
  • midi_lower_mid    xtlang
  • midi_msg    xtlang
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • midi_note_off    xtlang
  • midi_note_on    xtlang
  • midi_note_on    xtlang
  • midi_note_on    xtlang
  • midi_output_port_id    xtlang
  • midi_read_loop    xtlang
  • midi_read_msg    xtlang
  • midi_upper_mid    xtlang
  • play-midi-note    scheme
  • play-midi-note    scheme
  • print_midi_devices    xtlang
  • rtmidi_default_callback:RtMidiCCallback    xtlang
  • rtmidi_print_ports    xtlang
  • rtmidi_process_message    xtlang
  • rtmidi_register_callback    xtlang
  • rtmidi_send    xtlang
  • run_main_event_loop    xtlang
  • sampler-parse-midinote-filename    scheme
  • scheme-midi-listener    scheme
  • scientific-pitch-notation-to-midi-number    scheme
  • send-midi-cc    scheme
  • set_midi_in    xtlang
  • set_midi_out    xtlang
  • start_midi    xtlang
  • start_midi_scheduler    xtlang