available_midi_events   xtlang


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

Implementation

(bind-func available_midi_events
  (lambda ()
    (let ((head (dequeue_midi_event.head:i64))
          (tail (enqueue_midi_event.tail:i64)))
      (if (< (+ head XTM_MIDI_EVENT_QUEUE_SIZE) tail)
          (begin (println "Warning: MIDI overrun - dropping old events")
                 (dequeue_midi_event.head:i64 tail)
                 0)
          (- tail head)))))


Back to Index

Similar Entries

  • *midioffset*    scheme
  • dequeue_midi_event    xtlang
  • enqueue_midi_event    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
  • 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