[LAU] Loading soundfonts from a script (LS or FluidSynth)
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Tue Aug 18 21:51:18 UTC 2015
Begin forwarded message:
Date: Tue, 18 Aug 2015 23:40:23 +0200
From: Ralf Mardorf
To: "F. Silvain"
Subject: Re: [LAU] Loading soundfonts from a script (LS or FluidSynth)
On Tue, 18 Aug 2015 23:02:25 +0200 (CEST), F. Silvain wrote:
>>> You could send bank select/program change using amidi -P... -S... .
>Slight flaw: my amidi doesn't support -P, which I assume, is to send
>to an ALSA sequencer device.
My apologies, it's "-p". At the moment I'm running a Linux were it isn't
installed, but I checked it running systemd-nspawn now [1].
Regarding man amidi "amidi - read from and write to ALSA RawMIDI
ports", so I suspect it can't be used to send MIDI events to fluidsynth.
It was faulty memory.
I never used midish, but you did ;), IOW likely midish could be used to
send the bank select and program change:
"{ xpc {} 21 1234 } # match patch 21 on bank 1234"
- http://www.midish.org/manual.html#chan
Regards,
Ralf
[1]
[weremouse at moonstudio ~]$ sudo systemd-nspawn -qD /mnt/archlinux
[sudo] password for weremouse:
Failed to create directory /mnt/archlinux/sys/fs/selinux: Read-only
file system Failed to create directory /mnt/archlinux/sys/fs/selinux:
Read-only file system [root at archlinux ~]# grep
amidi /usr/local/bin/matrix-1000 instead. In verbose mode e.g. the
amidi command is amidi -p "hw:$mx_port" -S "$mx_v $1 $2"
echo "amidi -p hw:$mx_port -S \"$mx_v $1 $2\""
amidi -p "hw:$mx_port" -S "$mx_header 06 $2 $mx_v $eox"
echo -e -n "# Single patch data format byte $1\namidi -p"
amidi -p "hw:$mx_port" -S "$mx_panic"
echo "amidi -p hw:$mx_port -S \"$mx_panic\""
[root at archlinux ~]# amidi --help
Usage: amidi options
-h, --help this help
-V, --version print current version
-l, --list-devices list all hardware ports
-L, --list-rawmidis list all RawMIDI definitions
-p, --port=name select port by name
-s, --send=file send the contents of a (.syx) file
-r, --receive=file write received data into a file
-S, --send-hex="..." send hexadecimal bytes
-d, --dump print received data as hexadecimal bytes
-t, --timeout=seconds exits when no data has been received
for the specified duration
-a, --active-sensing don't ignore active sensing bytes
[root at archlinux ~]# logout
[weremouse at moonstudio ~]$
--
Full text of "Guerilla Open Access Manifesto"
http://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt
More information about the Linux-audio-user
mailing list