Menu

#1 fifo support

open
nobody
None
5
2012-11-02
2012-11-02
No

From a mail sent to the mailinglist earlier:

This enables *fast* workflow of loading samples.
Therefore, as soon as I discovered petri-foo, I wrote this patch:

http://pastie.org/5169247 (*)
http://kn0r.dev.mannetje.org/temp/fifo.h
http://kn0r.dev.mannetje.org/temp/fifo.c

* = my knowledge of cmake is 0%, so I did a quickndirty #include "fifo.c" for the time being :)

What it does

it starts a fifo-thread which creates & listens to /tmp/petri-foo.fifo

By doing so, any C-code, controller, keyboardshortcut, could load samples into a certain patch of the running instance:

bash-snippet

echo "load sample '/foo/bar/Foo 12.wav' 1" > /tmp/petri-foo.fifo

C-snippet

system("echo \"load sample '/foo/bar/Foo 12.wav' 1\" > /tmp/petri-foo.fifo");

Keyboard shortcut

~/.inputrc: "\C-x1":"echo \"load sample '/foo/bar/Foo 12.wav' 1\" > /tmp/petri-foo.fifo\C-M"

For me this is great, it kind of gives me the power of linuxsampler's LSCP in an unobtrusive way.
I use extra usb (custom painted) keyboards (some of them using http://lsmi-all.sourceforge.net/\),
so now I can change samples while playing live.
I also have a customized filebrowser which lets me navigate thru my sample(folders) without the mouse.
(It can write the selected file to a fifo..hence the fifo-feature).

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.