IEEE single precision float values

2005-02-11 Thread Mario Lang
Hi. While trying to implement a elisp library for a binary network protocol which uses IEEE 32-bit float data types I realized Emacs Lisp does not have any way to generate or interpret those. I came up with the following two functions below. I think they are generically useable for network IO an

[in progress] midi.el -- Editing standard MIDI files with Emacs

2005-04-25 Thread Mario Lang
Hi. I am currently working on a pet project of mine, midi.el, a mode for editing standard midi files with GNU Emacs. The parser is already wirtten and working, and some experimental code for drawing the resulting event list in a buffer is also already done. NoteOn/NoteOff events are combined int

Faster binary IO, please?

2005-09-15 Thread Mario Lang
Hi. Through the last 4 years of Emacs Lisp coding, I've come across the need to read and/or write binary data from time to time. Mostly when doing network process IO, but recently also reading binary data from a buffer. I've managed to solve all obstacles so far, and wrote the necessary utility f