<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ca">
	<id>http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Alsa_Utilities</id>
	<title>Alsa Utilities - Historial de revisió</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.joanillo.org/index.php?action=history&amp;feed=atom&amp;title=Alsa_Utilities"/>
	<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Alsa_Utilities&amp;action=history"/>
	<updated>2026-08-30T08:40:41Z</updated>
	<subtitle>Historial de revisió per a aquesta pàgina del wiki</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>http://wiki.joanillo.org/index.php?title=Alsa_Utilities&amp;diff=250477&amp;oldid=prev</id>
		<title>Joan: Es crea la pàgina amb «*http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-utils.html  The ALSA Utilities package contains various utilities which are useful for controlling your sou...».</title>
		<link rel="alternate" type="text/html" href="http://wiki.joanillo.org/index.php?title=Alsa_Utilities&amp;diff=250477&amp;oldid=prev"/>
		<updated>2013-04-23T21:43:31Z</updated>

		<summary type="html">&lt;p&gt;Es crea la pàgina amb «*http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-utils.html  The ALSA Utilities package contains various utilities which are useful for controlling your sou...».&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Pàgina nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;*http://www.linuxfromscratch.org/blfs/view/svn/multimedia/alsa-utils.html&lt;br /&gt;
&lt;br /&gt;
The ALSA Utilities package contains various utilities which are useful for controlling your sound card. &lt;br /&gt;
&lt;br /&gt;
Short Descriptions&lt;br /&gt;
&lt;br /&gt;
*'''aconnect''': is a utility for connecting and disconnecting two existing ports in the ALSA sequencer system.&lt;br /&gt;
*'''alsaconf''': is a configuration tool which tries to detect the sound cards on your system and write a suitable configuration file for ALSA. This program is incompatible with udev and hotplug.&lt;br /&gt;
*'''alsactl''': is used to control advanced settings for the ALSA sound card drivers.&lt;br /&gt;
*'''alsamixer''': is an ncurses-based mixer program for use with the ALSA sound card drivers.&lt;br /&gt;
*'''amidi''': is used to read from and write to ALSA RawMIDI ports.&lt;br /&gt;
*'''amixer''': allows command-line control of the mixers for the ALSA sound card drivers.&lt;br /&gt;
*'''aplay''': is a command-line soundfile player for the ALSA sound card drivers.&lt;br /&gt;
*'''aplaymidi''': is a command-line utility that plays the specified MIDI file(s) to one or more ALSA sequencer ports.&lt;br /&gt;
*'''arecord''': is a command-line soundfile recorder for the ALSA sound card drivers.&lt;br /&gt;
*'''arecordmidi''': is a command-line utility that records a standard MIDI file from one or more ALSA sequencer ports.&lt;br /&gt;
*'''aseqdump''': is a command-line utility that prints the sequencer events it receives as text.&lt;br /&gt;
*'''aseqnet''': is an ALSA sequencer client which sends and receives event packets over a network.&lt;br /&gt;
*'''iecset''': is a small utility to set or dump the IEC958 (or so-called “S/PDIF”) status bits of the specified sound card via the ALSA control API.&lt;br /&gt;
*'''speaker-test''': is a command-line speaker test tone generator for ALSA.&lt;br /&gt;
&lt;br /&gt;
==aconnect==&lt;br /&gt;
is a utility for connecting and disconnecting two existing ports in the ALSA sequencer system.&lt;br /&gt;
&lt;br /&gt;
ja l'he utilitzat profusament per connectar clients ALSA&lt;br /&gt;
==alsaconf==&lt;br /&gt;
&lt;br /&gt;
==alsactl==&lt;br /&gt;
is used to control advanced settings for the ALSA sound card drivers. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ alsa --help&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
El fitxer de configuració està per defecte a: /var/lib/alsa/asound.state&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ cat /var/lib/alsa/asound.state&lt;br /&gt;
state.ICH6 {&lt;br /&gt;
	control.1 {&lt;br /&gt;
		comment.access 'read write'&lt;br /&gt;
		comment.type BOOLEAN&lt;br /&gt;
		comment.count 1&lt;br /&gt;
		iface MIXER&lt;br /&gt;
		name 'Master Playback Switch'&lt;br /&gt;
		value true&lt;br /&gt;
	}&lt;br /&gt;
	control.2 {&lt;br /&gt;
		comment.access 'read write'&lt;br /&gt;
		comment.type INTEGER&lt;br /&gt;
		comment.count 2&lt;br /&gt;
...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  store   &amp;lt;card #&amp;gt; save current driver setup for one or each soundcards&lt;br /&gt;
                   to configuration file&lt;br /&gt;
  restore &amp;lt;card #&amp;gt; load current driver setup for one or each soundcards&lt;br /&gt;
                   from configuration file&lt;br /&gt;
  init	  &amp;lt;card #&amp;gt; initialize driver to a default state&lt;br /&gt;
  names   &amp;lt;card #&amp;gt; dump information about all the known present (sub-)devices&lt;br /&gt;
                   into configuration file (DEPRECATED)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ sudo alsactl store 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
guarda la configuració del driver de la targeta #0 al fitxer /var/lib/alsa/asound.state&lt;br /&gt;
&lt;br /&gt;
Per carregar la configuració del driver:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ alsactl restore 0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==alsamixer==&lt;br /&gt;
is an ncurses-based mixer program for use with the ALSA sound card drivers.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ alsamixer --help&lt;br /&gt;
AlsaMixer v1.0.18&lt;br /&gt;
Usage: alsamixer [-h] [-c &amp;lt;card: 0...7&amp;gt;] [-D &amp;lt;mixer device&amp;gt;] [-g] [-s] [-V &amp;lt;view&amp;gt;] [-a &amp;lt;abst&amp;gt;]&lt;br /&gt;
&lt;br /&gt;
$ alsamixer&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Apareix una interfície gràfica basada amb ncurses, i amb el cursor es pot canviar els valors.&lt;br /&gt;
&lt;br /&gt;
==amidi==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ amidi --help&lt;br /&gt;
Usage: amidi options&lt;br /&gt;
&lt;br /&gt;
-h, --help             this help&lt;br /&gt;
-V, --version          print current version&lt;br /&gt;
-l, --list-devices     list all hardware ports&lt;br /&gt;
-L, --list-rawmidis    list all RawMIDI definitions&lt;br /&gt;
-p, --port=name        select port by name&lt;br /&gt;
-s, --send=file        send the contents of a (.syx) file&lt;br /&gt;
-r, --receive=file     write received data into a file&lt;br /&gt;
-S, --send-hex=&amp;quot;...&amp;quot;   send hexadecimal bytes&lt;br /&gt;
-d, --dump             print received data as hexadecimal bytes&lt;br /&gt;
-t, --timeout=seconds  exits when no data has been received&lt;br /&gt;
                       for the specified duration&lt;br /&gt;
-a, --active-sensing   don't ignore active sensing bytes&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Està documentat a [[Amidi:_enviar_missatges_MIDI_des_de_la_shell]], on s'aprèn a enviar missatges MIDI des de la línia de comandes. A més, s'explica què són els ports midi virtuals i se'n configura un per fer sonar el que envio a través de la línia de comandes al fluidsynth.&lt;br /&gt;
&lt;br /&gt;
==amixer==&lt;br /&gt;
allows command-line control of the mixers for the ALSA sound card drivers. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ amixer --help&lt;br /&gt;
Usage: amixer &amp;lt;options&amp;gt; [command]&lt;br /&gt;
&lt;br /&gt;
Available options:&lt;br /&gt;
  -h,--help       this help&lt;br /&gt;
  -c,--card N     select the card&lt;br /&gt;
  -D,--device N   select the device, default 'default'&lt;br /&gt;
  -d,--debug      debug mode&lt;br /&gt;
  -n,--nocheck    do not perform range checking&lt;br /&gt;
  -v,--version    print version of this program&lt;br /&gt;
  -q,--quiet      be quiet&lt;br /&gt;
  -i,--inactive   show also inactive controls&lt;br /&gt;
  -a,--abstract L select abstraction level (none or basic)&lt;br /&gt;
  -s,--stdin      Read and execute commands from stdin sequentially&lt;br /&gt;
&lt;br /&gt;
Available commands:&lt;br /&gt;
  scontrols       show all mixer simple controls&lt;br /&gt;
  scontents	  show contents of all mixer simple controls (default command)&lt;br /&gt;
  sset sID P      set contents for one mixer simple control&lt;br /&gt;
  sget sID        get contents for one mixer simple control&lt;br /&gt;
  controls        show all controls for given card&lt;br /&gt;
  contents        show contents of all controls for given card&lt;br /&gt;
  cset cID P      set control contents for one control&lt;br /&gt;
  cget cID        get control contents for one control&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==aplay==&lt;br /&gt;
is a command-line soundfile player for the ALSA sound card drivers.&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==aplaymidi==&lt;br /&gt;
is a command-line utility that plays the specified MIDI file(s) to one or more ALSA sequencer ports. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ aplaymidi --help&lt;br /&gt;
Usage: aplaymidi -p client:port[,...] [-d delay] midifile ...&lt;br /&gt;
-h, --help                  this help&lt;br /&gt;
-V, --version               print current version&lt;br /&gt;
-l, --list                  list all possible output ports&lt;br /&gt;
-p, --port=client:port,...  set port(s) to play to&lt;br /&gt;
-d, --delay=seconds         delay after song ends&lt;br /&gt;
&lt;br /&gt;
$ aplaymidi -l&lt;br /&gt;
 Port    Client name                      Port name&lt;br /&gt;
 14:0    Midi Through                     Midi Through Port-0&lt;br /&gt;
128:0    TiMidity                         TiMidity port 0&lt;br /&gt;
128:1    TiMidity                         TiMidity port 1&lt;br /&gt;
128:2    TiMidity                         TiMidity port 2&lt;br /&gt;
128:3    TiMidity                         TiMidity port 3&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Fem sonar un MIDI:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ aplaymidi -p128:0 /home/joan/midis/beatles-carrythatweight.mid&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
i efectivament sona.&lt;br /&gt;
&lt;br /&gt;
==arecord==&lt;br /&gt;
is a command-line soundfile recorder for the ALSA sound card drivers. &lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
&lt;br /&gt;
==arecordmidi==&lt;br /&gt;
is a command-line utility that records a standard MIDI file from one or more ALSA sequencer ports.&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
==aseqdump==&lt;br /&gt;
is a command-line utility that prints the sequencer events it receives as text.&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
==aseqnet==&lt;br /&gt;
is an ALSA sequencer client which sends and receives event packets over a network.&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
==iecset==&lt;br /&gt;
is a small utility to set or dump the IEC958 (or so-called “S/PDIF”) status bits of the specified sound card via the ALSA control API.&lt;br /&gt;
&lt;br /&gt;
TBD&lt;br /&gt;
==speaker-test==&lt;br /&gt;
is a command-line speaker test tone generator for ALSA. &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ speaker-test&lt;br /&gt;
&lt;br /&gt;
speaker-test 1.0.18&lt;br /&gt;
&lt;br /&gt;
Playback device is default&lt;br /&gt;
Stream parameters are 48000Hz, S16_LE, 1 channels&lt;br /&gt;
Using 16 octaves of pink noise&lt;br /&gt;
Rate set to 48000Hz (requested 48000Hz)&lt;br /&gt;
Buffer size range from 192 to 2097152&lt;br /&gt;
Period size range from 64 to 699051&lt;br /&gt;
Using max buffer size 2097152&lt;br /&gt;
Periods = 4&lt;br /&gt;
was set period_size = 524288&lt;br /&gt;
was set buffer_size = 2097152&lt;br /&gt;
 0 - Front Left&lt;br /&gt;
Time per period = 10,978441&lt;br /&gt;
 0 - Front Left&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Se sent un soroll de fregit. Per fer un test dels dos canals (esquerra i dreta):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ speaker-test -c2 -D plughw:UA25EX -twav&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Autor}}, maig 2009&lt;br /&gt;
[[Category: Informàtica Musical]]&lt;br /&gt;
[[Category: Ubuntu Studio]]&lt;/div&gt;</summary>
		<author><name>Joan</name></author>
		
	</entry>
</feed>