RMusic is a small "tool" (read "toy") that reads an arbitrary source of data and
generate MIDI notes from it. It is designed to be able to read any data source
as it reads only a byte stream and not any structured data. Besides, the default
data source is /dev/urandom (random source - on Linux system at least).
The data source is read by chunks of 4 bytes: the first is the note itself, the
second the duration, the third the velocity and the fourth the pan (unused at
the time I write these lines). It is then possible to write a kind of partition
even if it is not the original goal.
rmusic [OPTIONS] [RANDOM_SOURCE]
where RANDOM_SOURCE is a file, and OPTIONS one or more of the following
options:
Although you probably already have the sources if you read this, you can get them from here.
sigaction() and usleep());
gcc
libasound2-dev
make
pkg-config
$ make
This should produce a rmusic executable in the same folder. That’s all for
the build itself, and RMusic is usable right now by running it:
$ ./rmusic
rmusic executable where you want to see
it, but there’s a easy way to do so. The build system provides an install
target that installs the executable where you want. By default, it is installed
in the UNIX’s standard system-wide binary add-ons, /usr/local/bin.
To make this target, simply call, with the appropriate right for the target
destination:
# make install
You can change the base destination directory, e.g. if you want to install it in
the UNIX’s standard binary tools path, /usr/bin, just make the above target
but with specifying a custom value to the PREFIX variable:
# make install PREFIX=/usr
Uninstalling RMusic is exactly the same as installing it, but it
is done by making the uninstall target.
RMusic is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
RMusic 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 for more details.
You should have received a copy of the GNU General Public License along with RMusic. If not, see http://www.gnu.org/licenses/.