Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/takikawa/taglib-racket
Racket FFI bindings to taglibc
https://github.com/takikawa/taglib-racket
racket taglib
Last synced: 21 days ago
JSON representation
Racket FFI bindings to taglibc
- Host: GitHub
- URL: https://github.com/takikawa/taglib-racket
- Owner: takikawa
- License: lgpl-3.0
- Created: 2011-10-14T17:08:29.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2016-11-01T03:38:10.000Z (over 8 years ago)
- Last Synced: 2025-01-23T03:08:47.000Z (29 days ago)
- Topics: racket, taglib
- Language: Racket
- Homepage:
- Size: 26.4 KB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
- awesome-racket - taglib - Bindings to the taglib C library, which provides simple access to audio file metadata. (Audio and Music)
README
Taglib Bindings for Racket
==========================[](http://docs.racket-lang.org/taglib/index.html)
This package contains a set of Racket bindings for the
[Taglib](http://developer.kde.org/~wheeler/taglib.html) library for
reading metadata for popular audio formats. The bindings are for the C
library, which only supports the limited abstract API of Taglib.Requires the taglibc library.
This package has been tested on Debian GNU/Linux. If you have taglibc
installed and this FFI binding cannot find it, please e-mail me about
your setup so that I can improve the library.```racket
(require taglib)
``````racket
(struct tag (title artist album comment genre year track)
#:extra-constructor-name make-tag)
title : string?
artist : string?
album : string?
comment : string?
genre : string?
year : exact-nonnegative-integer?
track : exact-nonnegative-integer?
```Represents the Tag class in taglib. Contains common metadata.
```racket
(struct audio-properties (length bitrate samplerate channels)
#:extra-constructor-name make-audio-properties)
length : exact-nonnegative-integer?
bitrate : exact-nonnegative-integer?
samplerate : exact-nonnegative-integer?
channels : exact-nonnegative-integer?
```Represents the AudioProperties class in taglib. Contains audio
properties.```racket
(get-metadata path)
-> (option/c (list/c tag/c audio-properties/c))
path : path-string?
```Extracts the metadata and audio properties of the audio file at the
given path. If unsuccessful, the function returns `#f`.---
Copyright © 2013-2016 Asumu Takikawa
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.This program 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 Lesser General Public License for more
details.You should have received a copy of the GNU Lesser General Public License along
with this program. If not, see http://www.gnu.org/licenses.