You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Nils 031c560ca3 new cbox 3 years ago
..
drvjunk Use some magic that looks like static files as template 5 years ago
experiments update template 5 years ago
py new cbox 3 years ago
.gitignore update template 3 years ago
API Use some magic that looks like static files as template 5 years ago
AUTHORS Use some magic that looks like static files as template 5 years ago
COPYING Use some magic that looks like static files as template 5 years ago
ChangeLog Use some magic that looks like static files as template 5 years ago
INSTALL Use some magic that looks like static files as template 5 years ago
Makefile.am Use some magic that looks like static files as template 5 years ago
NEWS Use some magic that looks like static files as template 5 years ago
README Use some magic that looks like static files as template 5 years ago
README.md Use some magic that looks like static files as template 5 years ago
adhoc_example.py Use some magic that looks like static files as template 5 years ago
app.c Use some magic that looks like static files as template 5 years ago
app.h Use some magic that looks like static files as template 5 years ago
appmenu.c update template 5 years ago
autogen.sh Use some magic that looks like static files as template 5 years ago
auxbus.c Use some magic that looks like static files as template 5 years ago
auxbus.h Use some magic that looks like static files as template 5 years ago
background_example.py Use some magic that looks like static files as template 5 years ago
biquad-float.h Use some magic that looks like static files as template 5 years ago
blob.c Use some magic that looks like static files as template 5 years ago
blob.h Use some magic that looks like static files as template 5 years ago
cboxrc-example Use some magic that looks like static files as template 5 years ago
chorus.c Use some magic that looks like static files as template 5 years ago
cleanpythonbuild.sh cbox update and out support in the template 3 years ago
cmd.c Use some magic that looks like static files as template 5 years ago
cmd.h Use some magic that looks like static files as template 5 years ago
compressor.c Use some magic that looks like static files as template 5 years ago
config-api.c Use some magic that looks like static files as template 5 years ago
config-api.h Use some magic that looks like static files as template 5 years ago
configure.ac update template 3 years ago
delay.c Use some magic that looks like static files as template 5 years ago
distortion.c Use some magic that looks like static files as template 5 years ago
dom.c Use some magic that looks like static files as template 5 years ago
dom.h Use some magic that looks like static files as template 5 years ago
dspmath.h Update calfbox 3 years ago
engine.c Use some magic that looks like static files as template 5 years ago
engine.h Use some magic that looks like static files as template 5 years ago
envelope.h update template 5 years ago
eq.c Use some magic that looks like static files as template 5 years ago
eq.h update template 3 years ago
errors.c Use some magic that looks like static files as template 5 years ago
errors.h Use some magic that looks like static files as template 5 years ago
example.py Use some magic that looks like static files as template 5 years ago
fbr.c Use some magic that looks like static files as template 5 years ago
fifo.c Use some magic that looks like static files as template 5 years ago
fifo.h Use some magic that looks like static files as template 5 years ago
fluid.c Update calfbox 3 years ago
fuzz.c Use some magic that looks like static files as template 5 years ago
fxchain.c Use some magic that looks like static files as template 5 years ago
gate.c Use some magic that looks like static files as template 5 years ago
hwcfg.c Use some magic that looks like static files as template 5 years ago
hwcfg.h Use some magic that looks like static files as template 5 years ago
instr.c Use some magic that looks like static files as template 5 years ago
instr.h Use some magic that looks like static files as template 5 years ago
io.c Use some magic that looks like static files as template 5 years ago
io.h Use some magic that looks like static files as template 5 years ago
ioenv.h Use some magic that looks like static files as template 5 years ago
jack_api_example.py Use some magic that looks like static files as template 5 years ago
jack_audio_routing.py Use some magic that looks like static files as template 5 years ago
jack_output_routing.py Use some magic that looks like static files as template 5 years ago
jack_scene_routing.py Use some magic that looks like static files as template 5 years ago
jackinput.c Use some magic that looks like static files as template 5 years ago
jackio.c update template 3 years ago
layer.c Use some magic that looks like static files as template 5 years ago
layer.h Use some magic that looks like static files as template 5 years ago
limiter.c Use some magic that looks like static files as template 5 years ago
main.c Use some magic that looks like static files as template 5 years ago
master.c Use some magic that looks like static files as template 5 years ago
master.h Use some magic that looks like static files as template 5 years ago
menu.c update template 5 years ago
menu.h Use some magic that looks like static files as template 5 years ago
menuitem.c Use some magic that looks like static files as template 5 years ago
menuitem.h Use some magic that looks like static files as template 5 years ago
meter.c Use some magic that looks like static files as template 5 years ago
meter.h Use some magic that looks like static files as template 5 years ago
midi.c Use some magic that looks like static files as template 5 years ago
midi.h Use some magic that looks like static files as template 5 years ago
mididest.c Use some magic that looks like static files as template 5 years ago
mididest.h Use some magic that looks like static files as template 5 years ago
module.c Use some magic that looks like static files as template 5 years ago
module.h Use some magic that looks like static files as template 5 years ago
novabox.py Use some magic that looks like static files as template 5 years ago
onepole-float.h Use some magic that looks like static files as template 5 years ago
onepole-int.h Use some magic that looks like static files as template 5 years ago
pattern-maker.c Use some magic that looks like static files as template 5 years ago
pattern-maker.h Use some magic that looks like static files as template 5 years ago
pattern.c Use some magic that looks like static files as template 5 years ago
pattern.h Use some magic that looks like static files as template 5 years ago
phaser.c Use some magic that looks like static files as template 5 years ago
prefetch_pipe.c Use some magic that looks like static files as template 5 years ago
prefetch_pipe.h Use some magic that looks like static files as template 5 years ago
recsrc.c Use some magic that looks like static files as template 5 years ago
recsrc.h Use some magic that looks like static files as template 5 years ago
reverb.c Use some magic that looks like static files as template 5 years ago
rt.c Use some magic that looks like static files as template 5 years ago
rt.h Use some magic that looks like static files as template 5 years ago
sampler.c update template 3 years ago
sampler.h update template 3 years ago
sampler_api_example.py Use some magic that looks like static files as template 5 years ago
sampler_api_example2.py update template 3 years ago
sampler_api_example4.py Use some magic that looks like static files as template 5 years ago
sampler_api_example5.py update template 3 years ago
sampler_api_load_stress_test.py cbox update and out support in the template 3 years ago
sampler_api_test.py update template 5 years ago
sampler_channel.c update template 3 years ago
sampler_gen.c Use some magic that looks like static files as template 5 years ago
sampler_impl.h update template 5 years ago
sampler_layer.c new cbox 3 years ago
sampler_layer.h update template 5 years ago
sampler_nif.c update template 5 years ago
sampler_prevoice.c update template 5 years ago
sampler_prg.c new cbox 3 years ago
sampler_prg.h new cbox 3 years ago
sampler_rll.c update template 3 years ago
sampler_voice.c update template 5 years ago
scene.c Use some magic that looks like static files as template 5 years ago
scene.h Use some magic that looks like static files as template 5 years ago
scripting.c Use some magic that looks like static files as template 5 years ago
scripting.h Use some magic that looks like static files as template 5 years ago
send_pattern_to_midi_out_example.py cbox update and out support in the template 3 years ago
seq-adhoc.c Use some magic that looks like static files as template 5 years ago
seq.c Use some magic that looks like static files as template 5 years ago
seq.h Use some magic that looks like static files as template 5 years ago
setup.py update template 3 years ago
sfzloader.c new cbox 3 years ago
sfzloader.h Use some magic that looks like static files as template 5 years ago
sfzparser.c update template 3 years ago
sfzparser.h Use some magic that looks like static files as template 5 years ago
skel.c Use some magic that looks like static files as template 5 years ago
song.c Use some magic that looks like static files as template 5 years ago
song.h Use some magic that looks like static files as template 5 years ago
song_api_example.py Use some magic that looks like static files as template 5 years ago
song_api_example2.py Use some magic that looks like static files as template 5 years ago
stm.h Use some magic that looks like static files as template 5 years ago
streamplay.c Use some magic that looks like static files as template 5 years ago
streamrec.c Use some magic that looks like static files as template 5 years ago
synthbass.sfz Use some magic that looks like static files as template 5 years ago
tarfile.c New cbox 3 years ago
tarfile.h update template 3 years ago
test.py Use some magic that looks like static files as template 5 years ago
tests.c update template 5 years ago
tests.h Use some magic that looks like static files as template 5 years ago
tonectl.c Use some magic that looks like static files as template 5 years ago
tonewheel.c Use some magic that looks like static files as template 5 years ago
track.c Use some magic that looks like static files as template 5 years ago
track.h Use some magic that looks like static files as template 5 years ago
ui.c Use some magic that looks like static files as template 5 years ago
ui.h Use some magic that looks like static files as template 5 years ago
usb_api_example.py Use some magic that looks like static files as template 5 years ago
usbaudio.c Use some magic that looks like static files as template 5 years ago
usbio.c Use some magic that looks like static files as template 5 years ago
usbio_impl.h Use some magic that looks like static files as template 5 years ago
usbmidi.c Use some magic that looks like static files as template 5 years ago
usbprobe.c Use some magic that looks like static files as template 5 years ago
wavebank.c New cbox 3 years ago
wavebank.h Use some magic that looks like static files as template 5 years ago

README.md

Calfbox

Website: https://github.com/kfoltman/calfbox

Calfbox, the "open source musical instrument", offers assorted music-related code.

Originally intended as a standalone instrument for Linux and embedded devices (USB TV Sticks) it can be used as Python module as well.

Packaging

If you are a packager and want to create a binary package for your distribution please package only the python module. The binary executable is not maintained and untested at the moment. It should not be used by anyone.

Calfbox as Python Module

Calfbox can be used as a Python module that can be imported to create short scripts or full fledged programs ( https://www.laborejo.org/software ).

Most notably it features a midi sequencer and an audio sampler (for sfz files and sf2 via fluidsynth).

Building

A convenience script cleanpythonbuild.py has been supplied to quickly build and install the cbox python module.

make clean
rm build -rf
sh autogen.sh
./configure
make
python3 setup.py build
sudo python3 setup.py install

How to write programs with cbox

You can find several .py files in the main directory, such as sampler_api_example.py or song_api_example.py.

Also there is a directory /experiments which contains a small example framework.

Using Calfbox as standalone instrument

Using Calfbox as standalone instrument requires a .cfg config file.

This part of the program is currently unmaintained and untested. Please do not use it.

License

This code 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.

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 General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

For the full license see the file COPYING