Re: [LAU] Loading soundfonts from a script (LS or FluidSynth)

From: Ralf Mardorf <ralf.mardorf@email-addr-hidden-dsl.net>
Date: Wed Aug 19 2015 - 00:51:18 EEST

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@email-addr-hidden ~]$ 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@email-addr-hidden ~]# 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@email-addr-hidden ~]# 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@email-addr-hidden ~]# logout
[weremouse@email-addr-hidden ~]$

-- 
Full text of "Guerilla Open Access Manifesto"
http://archive.org/stream/GuerillaOpenAccessManifesto/Goamjuly2008_djvu.txt
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Wed Aug 19 04:15:01 2015

This archive was generated by hypermail 2.1.8 : Wed Aug 19 2015 - 04:15:02 EEST