WildMidi_...ferToMidi(3)

πŸ“¦
version 0.4.6 Β· 2 versions
  • 0.4.6 Β· debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 0.5.0 Β· arch rolling, nixpkgs unstable
, in debian bookworm, debian trixie, fedora 43, fedora 44, nixos 26.05, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’– WildMidi_...ferToMidi(3) πŸ’–

okay bestie, so this page lives in the WildMidi Programmer's Manual, and the title got cutely truncated to WildMidi_...ferToMidi(3) because the full name is a whole mouthful. no cap, we're talking about WildMidi_ConvertBufferToMidi today and she is so useful. πŸ¦‹


✨ NAME ✨

WildMidi_ConvertBufferToMidi β€” takes a MIDI-like buffer and turns it into a brand new MIDI buffer. it's giving glow-up, fr fr. πŸ’…


πŸ“š LIBRARY πŸ“š

libWildMidi


🌸 SYNOPSIS 🌸

#include <wildmidi_lib.h>

WildMidi_ConvertBufferToMidi (uint8_t *in, uint8_t insize, uint8_t
**out, uint32_t *outsize)

πŸŽ€ DESCRIPTION πŸŽ€

so basically: you hand her a MIDI-like memory buffer, and she tries to detect, convert, and write it out into a memory buffer in actual MIDI format. she's out here doing the detective work and the formatting work, main character energy honestly. πŸ‘‘

  • in β€” the input buffer, and it's holding MIDI-like content. specifically: XMI or MUS. that's the vibe check it's running on. 🎡
  • insize β€” the size of the input buffer. just tell her how big in is so she doesn't go wandering off the end. πŸ™ˆ
  • out β€” the output buffer. lowkey important: it gets allocated with malloc() for you, and the caller has to free() it when it's no longer needed. yes, you, bestie. she's not doing that part. don't ghost that free() or it's a leak and we're not doing leaks. 😭
  • outsize β€” the size of the output buffer. she fills this in so you know how much MIDI goodness you got back. ✨

πŸ‘€ SEE ALSO πŸ‘€

like, the whole friend group. go say hi. 🫢


🫢 AUTHOR 🫢

Chris Ison <chrisisonwildcode@gmail.com> and Bret Curtis <psi29a@gmail.com>. legends, periodt. πŸ’œ


Copyright (C) WildMidi Developers 2001-2016

This file is part of WildMIDI.

WildMIDI is free software: you can redistribute and/or modify the player under the terms of the GNU General Public License and you can redistribute and/or modify the library under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the licenses, or (at your option) any later version.

WildMIDI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License and the GNU Lesser General Public License for more details.

You should have received a copy of the GNU General Public License and the GNU Lesser General Public License along with WildMIDI. If not, see <http://www.gnu.org/licenses/>.

This manpage is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.

okay so legally speaking this is the part where you actually read it, not just scroll past it. no skimming bestie, it's giving binding. πŸ’€

and that's the whole page!! this one's from the WildMidi Programmer's Manual, dated 10 March 2016, and yeah the footer still says WildMidi_...ferToMidi(3) because she's committed to the abbreviation bit. bye ily, go free() your buffers πŸŒˆπŸ’–βœ¨