cubieboard:machinasson
Différences
Ci-dessous, les différences entre deux révisions de la page.
— | cubieboard:machinasson [2024/02/09 17:10] (Version actuelle) – créée - modification externe 127.0.0.1 | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
+ | ======= Machinasson ======= | ||
+ | Suite à la collaboration avec Dominique Leroy j'ai travaillé sur la Cubie pour en faire une machine simple à mettre en place, installer, ré-installer, | ||
+ | La particularité est un paramétrage de .asoundrc pour avoir 4 voix en sortie et 1 entrée micro son avec 3 carte son USB, sans avoir recours à jackd. | ||
+ | |||
+ | Méthode d' | ||
+ | * un GNU/Linux Debian armhf | ||
+ | * pd-extended | ||
+ | * un alsa configuré pour 2 cartes son USB, d'ou 4 sorties | ||
+ | * un patch fait par Dominique Leroy pour une installation sonore | ||
+ | * un bureau fluxbox accessible par vnc sur le réseau montrant le patch en fonction | ||
+ | * un xpad pour laisser des annotations sur l' | ||
+ | * 2 alsamixer | ||
+ | |||
+ | ===== L' | ||
+ | |||
+ | **ATTENTION**, | ||
+ | |||
+ | à venir | ||
+ | ===== Installation ===== | ||
+ | - booter sur la SD | ||
+ | - la led verte clignote tant que l' | ||
+ | - attendre un certain temps | ||
+ | - les leds bleu et verte s' | ||
+ | - enlever la SD | ||
+ | - connecter les 2 cartes usb audio ( optionnel ) | ||
+ | - rallumer, vous devriez entendre du son au bout de 1 min | ||
+ | |||
+ | ===== Paramètres ===== | ||
+ | * utlisateurs et accès | ||
+ | * **root** , pass = toor | ||
+ | * **debian** , pass = debian | ||
+ | * **vncviewer: | ||
+ | * **ssh root@192.168.1.46** pass = toor | ||
+ | * accès réseau | ||
+ | * une adresse ip fixe 192.168.1.46 , écrite en dur dans le fichier / | ||
+ | * une adresse ip venant de votre serveur DHCP si présent | ||
+ | |||
+ | ==== Lancements automatiques ==== | ||
+ | pd-extended , xpad et alsamixer sont lancés par / | ||
+ | |||
+ | - / | ||
+ | - vncserver qui lance | ||
+ | - ~./ | ||
+ | - xpad | ||
+ | - alsamixer 2 fois | ||
+ | - pd-extended | ||
+ | - ouvre le patch | ||
+ | |||
+ | ~./ | ||
+ | < | ||
+ | #!/bin/sh | ||
+ | |||
+ | xrdb $HOME/ | ||
+ | xsetroot -solid grey | ||
+ | # | ||
+ | # | ||
+ | # Fix to make GNOME work | ||
+ | export XKL_XMODMAP_DISABLE=1 | ||
+ | #/ | ||
+ | xterm -e "/ | ||
+ | xterm -e " | ||
+ | xterm -e " | ||
+ | xpad & | ||
+ | fluxbox | ||
+ | </ | ||
+ | Attention , les entrées micro ici doivent être en mute, pd la gére directement. | ||
+ | ==== Paramètres des cartes audio USB ==== | ||
+ | === le .asoundrc === | ||
+ | Il y a 3 cartes son usb connectées | ||
+ | < | ||
+ | more / | ||
+ | 0 [Device | ||
+ | C-Media USB Audio Device at usb-sw-ohci-1, | ||
+ | 1 [sun4isndhdmi | ||
+ | sun4i-sndhdmi | ||
+ | 2 [Device_1 | ||
+ | Generic USB Audio Device at usb-sw-ehci-1.2, | ||
+ | 3 [Device_2 | ||
+ | Generic USB Audio Device at usb-sw-ehci-1.4, | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | # .asoundrc create a virtual four-channel device with two sound devices: | ||
+ | # his is in fact two interleaved stereo streams in | ||
+ | # different memory locations, so JACK will complain that it | ||
+ | # cannot get mmap-based access. see below. | ||
+ | |||
+ | pcm.usb1 { | ||
+ | type hw | ||
+ | card " | ||
+ | channels 2 | ||
+ | } | ||
+ | pcm.usb2 { | ||
+ | type hw | ||
+ | card " | ||
+ | channels 2 | ||
+ | } | ||
+ | pcm.usb3 { | ||
+ | type hw | ||
+ | card " | ||
+ | channels 2 | ||
+ | } | ||
+ | pcm.multi { | ||
+ | type multi; | ||
+ | slaves.a.pcm " | ||
+ | slaves.a.channels 2; | ||
+ | slaves.b.pcm " | ||
+ | slaves.b.channels 2; | ||
+ | bindings.0.slave a; | ||
+ | bindings.0.channel 0; | ||
+ | bindings.1.slave a; | ||
+ | bindings.1.channel 1; | ||
+ | bindings.2.slave b; | ||
+ | bindings.2.channel 0; | ||
+ | bindings.3.slave b; | ||
+ | bindings.3.channel 1; | ||
+ | } | ||
+ | |||
+ | # JACK will be unhappy if there is no mixer to talk to, so we set | ||
+ | # this to card 0. This could be any device but 0 is easy. | ||
+ | |||
+ | ctl.multi { | ||
+ | type hw; | ||
+ | card 0; | ||
+ | } | ||
+ | |||
+ | # This creates a 4 channel interleaved pcm stream based on | ||
+ | # the multi device. JACK will work with this one. | ||
+ | |||
+ | pcm.ttable { | ||
+ | type route; | ||
+ | slave.pcm " | ||
+ | slave.channels 4; | ||
+ | ttable.0.0 1; | ||
+ | ttable.1.1 1; | ||
+ | ttable.2.2 1; | ||
+ | ttable.3.3 1; | ||
+ | } | ||
+ | # see above. | ||
+ | ctl.ttable { | ||
+ | type hw; | ||
+ | card 0; | ||
+ | } | ||
+ | |||
+ | |||
+ | </ | ||
+ | |||
+ | pd-extended est lancé avec l' | ||
+ | |||
+ | Le fichier .pdextended | ||
+ | < | ||
+ | audioapi: 1 | ||
+ | noaudioin: False | ||
+ | audioindev1: | ||
+ | noaudioout: False | ||
+ | audiooutdev1: | ||
+ | audiobuf: 100 | ||
+ | rate: 44100 | ||
+ | callback: 0 | ||
+ | blocksize: 64 | ||
+ | nomidiin: True | ||
+ | nomidiout: True | ||
+ | path1: / | ||
+ | npath: 30 | ||
+ | standardpath: | ||
+ | verbose: 0 | ||
+ | loadlib1: Gem | ||
+ | loadlib2: cyclone | ||
+ | loadlib3: zexy | ||
+ | loadlib4: creb | ||
+ | loadlib5: cxc | ||
+ | loadlib6: iemlib | ||
+ | loadlib7: list-abs | ||
+ | loadlib8: mapping | ||
+ | loadlib9: markex | ||
+ | loadlib10: maxlib | ||
+ | loadlib11: mjlib | ||
+ | loadlib12: motex | ||
+ | loadlib13: oscx | ||
+ | loadlib14: pddp | ||
+ | loadlib15: pdogg | ||
+ | loadlib16: pmpd | ||
+ | loadlib17: sigpack | ||
+ | loadlib18: smlib | ||
+ | loadlib19: unauthorized | ||
+ | loadlib20: pan | ||
+ | loadlib21: hcs | ||
+ | loadlib22: jmmmp | ||
+ | loadlib23: ext13 | ||
+ | loadlib24: ggee | ||
+ | loadlib25: iem_anything | ||
+ | loadlib26: ekext | ||
+ | loadlib27: flatgui | ||
+ | loadlib28: chaos | ||
+ | loadlib29: pdp | ||
+ | nloadlib: 29 | ||
+ | defeatrt: 0 | ||
+ | flags: | ||
+ | </ |