由 懸鉤子 發表的所有文章

【鼎革‧革鼎】︰ Raspbian Stretch 《六之 G.4 》

黃鐘

 

 

 

 

 

 

韓娥

 

 

 

古琴

列子‧湯問

匏巴鼓琴
匏巴鼓琴而鳥舞魚躍,鄭師文聞之,棄家從師襄游。柱指鈞弦,三年不成章。師襄曰: 『子可以歸矣。』師文舍其琴,歎曰:『文非弦之不能鈞,非章之不能成。文所存者不在弦,所志者不在聲。內不得於心,外不應於器 ,故不敢發手而動弦。且小假之 ,以觀其後。』無幾何,復見師襄。師襄曰:『子之琴何如?』師文曰:『得之矣。請嘗試之。 』於是當春而叩商弦以召南呂,涼風忽至,草木成實。及秋而叩角 弦以激夾鍾,溫風徐迴,草木發榮。當夏而叩羽弦以召黃鐘,霜雪交下,川池暴沍。及冬而叩徵弦以激蕤賓,陽光熾烈,堅冰立散。將終,命宮而總四弦,則景風 翔,慶雲浮,甘露降,澧泉涌。師襄乃撫心高蹈曰:『微矣 !子之彈也!雖師曠之清角,鄒衍之吹律,亡以加之。彼將挾琴執管而從子之後耳。』

韓娥鬻歌
薛譚學謳於秦青,未窮青之技,自謂盡之;遂辭歸。秦青弗止;餞於郊衢,撫節悲歌,聲振林木 ,響遏行雲。薛譚乃謝求反,終身不敢言歸。秦青顧謂其友曰:『昔 韓 娥東之齊,匱糧,過雍門,鬻歌假食。既去而餘音繞梁欐,三日不絕,左右以其人弗去 。過逆旅,逆旅人辱之。韓娥因曼聲哀哭,一里老幼悲愁,垂涕相對,三日不 食。遽而追之。娥還,復為曼聲長歌。一里老幼喜躍抃舞,弗能自禁,忘向之悲也。乃厚賂發之。故雍門之人至今善歌哭,放娥之遺聲。』

高山流水
伯牙善鼓 琴,鍾子期善聽。伯牙鼓琴,志在登高山。鍾子期曰:『善哉!峨峨兮若泰山!』志在流水。鍾子期曰:『善哉!洋洋兮若江河!』伯牙所念,鍾子期必得之。伯牙 游於泰山之陰,卒逢暴雨,止於巖下;心悲,乃援琴而鼓之。初為霖雨之操,更造崩山之音。曲每奏,鍾子期輒窮其趣。伯牙乃舍琴而嘆曰:『善哉,善哉,子之聽 夫!志想象猶吾心也。吾於何逃聲哉?』

─── 《Sonic π 知音?!

 

談到 Sonic π 軟件之寫作理念,當然是以原創者英國劍橋大學 Dr . Sam Aaron 博士說法為准︰

 

據聞聲子派之海洋 Ocean

Examples – rework examples to reflect best practices

 

十分擬真,程式含表頭僅僅四百一十三 Byte ,就能展現浪濤的上下起伏高低變化之聲!

聽過後欲探其玄,故借黑傑克

勇闖新世界︰ W!o《卡夫卡村》變形祭︰品味科學‧教具教材‧ Hi-Jack‧Sonic π 之設定

的儀表究之也。

 

一時歡天喜地,偏偏突如其來如之思緒……

試試聲音知覺量化吧………

過去當人們走過街角之書店,偶然地發現一本吸引人的書,也許會駐足翻閱一番,再決定是否要沉浸於書中的奇異世界。而今人們在網際網路的汪洋裡打撈,篩選過濾無所不在的廣告。曾幾何時世界變成了喧囂的市場?或許因此知覺也早就超載的了!模糊的記憶,想不出如何邂逅上

japa

The JACK & ALSA Audio Perceptual Analyser, is a ‘perceptual’ or ‘psychoacoustic’ audio spectrum analyser.

In contrast to JAAA, this is more an acoustical or musical tool than a purely technical one. Possible uses include spectrum monitoring while mixing or mastering, evaluation of ambient noise, and (using pink noise), equalisation of PA systems.

,一個所謂的『聲音』『知覺』分析儀。依稀記得當初為了弄明白它的『名目』,在大海裡撈針。很高興發現了一篇『通告』︰

JAPA Jack/Alsa Perceptual Analyser initial release

From:   fons adriaensen <fons.adriaensen-AT-skynet.be>
To:   Linix Audio Developers <linux-audio-dev-AT-music.columbia.edu>, Linux Audio Announce <linux-audio-announce-AT-music.columbia.edu>, JACK Developers <jackit-devel-AT-lists.sourceforge.net>
Subject:   [linux-audio-announce] [ANN] JAPA Jack/Alsa Perceptual Analyser
Date:   Sat, 6 Aug 2005 17:24:17 +0200

The first (alpha) release of JAPA is now available at

<http://users.skynet.be/solaris/linuxaudio>>

>From the README:

JAPA is a ‘perceptual’ or ‘psychoacoustic’ audio spectrum
analyser. This means that the filters that are used to
analyse the spectrum have bandwidths that are neither
constant (as in JAAA), nor proportional to the center
frequency (as in a 1/3 octave band analyser), but tuned
to human perception. With the default settings, JAPA uses
a filter set that closely follows the Bark scale.

In contrast to JAAA, this is more an acoustical or musical
tool than a purely technical one. Possible uses include
spectrum monitoring while mixing or mastering, evaluation
of ambient noise, and (using pink noise), equalisation
of PA systems.

JAPA allows you to measure two inputs at the same time,
compare them, store them to memory and compare them to
stored traces. It offers a number of resolutions, speeds,
and various display options. The dual inputs and memories
will find their way into future JAAA versions as well.
This is a source release. You will also need libclalsadrv,
libclthreads (from the same place), and libfftw3f.
Enjoy !


FA

,卻失笑於那個『讀我』 README 之文。畢竟難得天真如愛麗絲,看到『吃我』就『吃』,『喝我』就『喝』的吧!終究那個

… 摘自《勇闖新世界︰ W!o《卡夫卡村》變形祭︰品味科學‧教具教材‧聲音知覺分析儀

 

嘗試選單啟動,竟然無動於衷?終端機察後

 

,怪也哉!?雖然心理 ○○×× ,嘟囔著自寫自讀文字?!莫非又是 Buffer 大小設定、誰先誰後的問題??

 

將如之何耶?★

或用萬古唯一妙計── 試誤法 ── 的乎!☆

 

 

 

 

 

 

 

 

 

【鼎革‧革鼎】︰ Raspbian Stretch 《六之 G.3 》

Listen to Bluetooth Audio on Your Raspberry Pi 3, Pi Zero, or Earlier Pi

YouTube on the Pi

The Raspberry Pi is a handy little computer for so many uses, but Raspbian doesn’t come already set up for listening to audio over Bluetooth headphones or speakers. However, it’s not hard to do, it’s a lot of fun, and it works!. As I’m writing this, I’m listening to 40s Big Band music on my Pi 3 through my Bluetooth headphones.

The instructions in this post are for the February 26, 2016 version of version of Raspbian or Noobs, but they work with all previous versions of Raspbian Jessie. They work for the Raspberry any Pi version, although the Zero and the original Pi are not really powerful enough to stream from the internet. They work great for playing mp3 files with a media player like VLC.

Except for the Pi 3, you’ll need a Bluetooth adapter like the Plugable Bluetooth adapter. For the Pi Zero, you’ll also need a way to connect to the Internet like a Plugable USB-Ethernet adapter or WiFi adapter, along with an OTG cable and a powered hub like the compact Plugable 4-port USB 2.0 hub. Whichever Pi you use, you end up with is a great little music server that opens the door to a lot of fun projects.

───

只不過眼前似乎『踢到鐵板』?之前 OK 的『藍牙喇叭』

IMAG1178

,現在雖不能用『blueman』連接??不是還可用『bluetoothctl』

 

連成功乎!怎 A2DP 聲音會 …… 不忍聞的耶!!

─── 摘自《W!o+ 的《小伶鼬工坊演義》︰樹莓派 3 三兩事之 VLC 篇

 

身處 BlueZ  4→5 大變革的時刻,而且品嚐了

Bluetooth Audio ALSA Backend

With this application (later named as BlueALSA), one can achieve the same goal as with PulseAudio, but with less dependencies and more bare-metal-like. BlueALSA registers all known Bluetooth audio profiles in Bluez, so in theory every Bluetooth device (with audio capabilities) can be connected. In order to access the audio stream, one has to connect to the ALSA PCM device called bluealsa. The device is based on the ALSA software PCM plugin.

 

a2dp 之美聲︰

 

 

 

奈何還難忘懷開機

systemctl status bluetooth

的錯誤耶?

Failed to obtain handles for “Service Changed” characteristic

Sap driver initialization failed.

sap-server: Operation not permitted (1)

 

事實,科技本就來自人性◎

Bluetooth HSP/HFP not working in Raspberry PI 3 #2229

Trying to use a bluetooth mic/speaker in a raspberry pi 3 (headless).

Hardware is Raspberry pi 3, firmware updated today, running raspbian also dist-upgraded today. Using bluez and pulseaudio (system service start mode).

  • The device is trusted, paired and connects/disconnects without problems.
  • When device is initially connected, “pactl list” shows the device is using the profile named “headset_head_unit: Headset Head Unit (HSP/HFP) (sinks: 1, sources: 1, priority: 20, available: yes)”. With this profile, no sound (trying to play with aplay command).
  • When profile is changed to “a2dp_sink: High Fidelity Playback (A2DP Sink) (sinks: 1, sources: 0, priority: 10, available: yes)” (using command pactl set-card-profile), the sound is played correctly.

No error messages seen in any log file.

Moreover, if I “down” (“hciadmin hci0 down”) the internal raspberry bluetooth controller and use instead an external bluetooth controller connected in an usb port, both modes works correctly. Thus, problem seems related with the bluetooth device in raspberry card.

 

bluetoothd sap driver issue

jeeva

Sat Jan 09, 2016 6:15 pm

Hello All,

I quite new to rpi world.. When I try to check the status of my bluetooth, I am getting the Sap driver initialization failed error as shown below. Could someone please help me resolve this issue?

……

Bluetooth issues

M4NOOb

Thu Mar 03, 2016 8:38 pm

Hi everyone,

currently I am trying to connect my raspberry pi 2 with my Android 5.1.1 phone via bluetooth (I am trying with Bluez 5.23). The pairing seems to work, but it always returns “Connected: no”. If I try to connect manually it says “Failed to connect: org.bluez.Error.Failed”.

………

 

新舊換代之間能無大哉辯嘛!

 

 

 

 

 

 

 

 

【鼎革‧革鼎】︰ Raspbian Stretch 《六之 G.2 》

比之於
W!o+ 的《小伶鼬工坊演義》︰樹莓派 3 三兩事之藍牙篇【上】

文本寫作那時,現下的 pi-bluetooth

 

小程式可是方便多了!

 

 

 

不過要是已批配且信賴之藍牙鍵盤與或滑鼠,不能重啟後容易主動連接︰

 

實用上,豈非枉然耶??無怪乎早有『按時輪詢』之議也!!

Connect Bluetooth Keyboard at boot

clonmac

Tue Sep 06, 2016 11:19 pm

I am trying to configure the bluetooth on the RPi3 to automatically connect to my BT keyboard when it boots up, but am unable to get it to work. Currently I am using Raspbian and it boots to the login screen via GUI. Would anyone be able to help me out on how to configure it so it connects at bootup? The device is trusted via bluetoothctl and I can connect to it fine once I am logged in and I connect it manually.

 

 

 

 

 

 

 

 

【鼎革‧革鼎】︰ Raspbian Stretch 《六之 G.1 》

登廬山望石門‧宋鮑照

訪世失隱淪,從山異靈士。
明發振雲冠,升嶠遠棲趾。
高岑隔半天,長崖斷千里。
氛霧承星辰,潭壑洞江汜。
嶄絕類虎牙,巑岏象熊耳。
埋冰或百年,韜樹必千祀。
雞鳴清澗中,猿嘯白雲裏。
瑤波逐穴開,霞石觸峰起。
迴互非一形,參差悉相似。
傾聽鳳管賓,緬望釣龍子。
松桂盈膝前,如何穢城市。

振羽 %e7%be%bd 騰空之時,音聲分明。發芽 %e8%8a%bd 伏藏之際,難得頃聽。

─── 《樹莓派聲音︰頃聽者

 

□ ︰ 為什麼樹莓派自帶之類比一直以來不好?

○ ︰ 因為使用 PWM 之故!

□ ︰ 早有許多 I2S 數位卡,怎麼不改之耶?

○ ︰ 樂求其省又便宜,利於學習和攜帶也。

□ ︰ 不過當今之聲卡既已貴且重矣!!豈至??

○ ︰ 此乃應用在人,藏富於天下者之思。

+ ︰ 胡復何有疑焉◎

 

北斗雖遷仍然指春!古今遺音依舊能解?

念大化川流不息之旨有乎??!!

Bluetooth audio

In Jessie, we used PulseAudio to provide support for audio over Bluetooth, but integrating this with the ALSA architecture used for other audio sources was clumsy. For Stretch, we are using the bluez-alsa package to make Bluetooth audio work with ALSA itself. PulseAudio is therefore no longer installed by default, and the volume plugin on the taskbar will no longer start and stop PulseAudio. From a user point of view, everything should still work exactly as before – the only change is that if you still wish to use PulseAudio for some other reason, you will need to install it yourself.

※ 註

Bluetooth Audio ALSA Backend

This project is a rebirth of a direct integration between Bluez and ALSA. Since Bluez >= 5, the build-in integration has been removed in favor of 3rd party audio applications. From now on, Bluez acts as a middleware between an audio application, which implements Bluetooth audio profile, and a Bluetooth audio device.

The current status quo is, that in order to stream audio from/to a Bluetooth device, one has to install PulseAudio, or use Bluez < 5. However, Bluez version 4 is considered to be deprecated, so the only reasonable way to achieve this goal is to install PulseAudio.

With this application (later named as BlueALSA), one can achieve the same goal as with PulseAudio, but with less dependencies and more bare-metal-like. BlueALSA registers all known Bluetooth audio profiles in Bluez, so in theory every Bluetooth device (with audio capabilities) can be connected. In order to access the audio stream, one has to connect to the ALSA PCM device called bluealsa. The device is based on the ALSA software PCM plugin.

 

想古今世代交替之轉無耶!!??

Better handling of other usernames

The default user account in Raspbian has always been called ‘pi’, and a lot of the desktop applications assume that this is the current user. This has been changed for Stretch, so now applications like Raspberry Pi Configuration no longer assume this to be the case. This means, for example, that the option to automatically log in as the ‘pi’ user will now automatically log in with the name of the current user instead.

One other change is how sudo is handled. By default, the ‘pi’ user is set up with passwordless sudo access. We are no longer assuming this to be the case, so now desktop applications which require sudo access will prompt for the password rather than simply failing to work if a user without passwordless sudo uses them.

 

 

 

 

 

 

 

 

 

【鼎革‧革鼎】︰ Raspbian Stretch 《六之 G 》

祇聽 Mrphs 講完… W!o+ 『拙』於用『巧』 ……,過了沒多久之後 ,便迷上了『先人科技』,愛說什麼︰

古今『 為 用 』為用;乾坤『 借 法 』借法。

痛痛快快的將找得的『前代軟體』給『玩』得個『透』『通』!!因此 W!o+ 認為『借法』,『法生』、『生法』,生生不息!!!

※作者註︰據聞『借法』一詞出自

太乙天尊‧《太一拔罪斬妖護身咒

操天道、化兩儀,生陰陽、轉乾坤,應赦令。

天地無極,乾坤借法;法由心生,生生不息。
太乙天尊,急急如律令!

乾坤無極,風雷受命;龍戰于野,十方俱滅。
太乙天尊,急急如律令!

伏化天王,降定天一;天地玄黄,陰陽妙法。
太乙天尊,急急如律令!

天羅維網,地閻摩羅;慧劍出鞘,斬妖誅精;一切災難化為塵 。
太乙天尊,急急如律令!

── 《W!o+ 的《小伶鼬工坊演義》︰【新春】 復古派 《六》 RetroPie 借法

 

欲言今日 Raspbian Stretch 之 Audio ,先想到了『視、聽』的 kodi ,眼下直須

sudo apt-get install kodi

可也!

 

打算如何擷圖

 

 

 

展示乎?忽爾又憶起乾坤借法

莫非,老矣朽矣!要不怎就突然思接孟子

萬章上

萬章曰:「堯以天下與舜,有諸?」

孟子曰:「否。天子不能以天下與人。」

「然則舜有天下也,孰與之?」

曰:「天與之。」

「天與之者,諄諄然命之乎?」

曰:「否。天不言,以行與事示之而已矣。」

曰:「以行與事示之者如之何?」

曰:「天子能薦人於天,不能使天與之天下;諸侯能薦人於天子,不能使天子與之諸侯;大夫能薦人於諸侯,不能使諸侯與之大夫。昔者堯薦舜於天而天受之,暴之於民而民受之,故曰:天不言,以行與事示之而已矣。」

曰:「敢問薦之於天而天受之,暴之於民而民受之,如何?」

曰:「使之主祭而百神享之,是天受之;使之主事而事治,百姓安之,是民受之也。天與之,人與之,故曰:天子不能以天下與人。舜相堯二十有八載,非人之所能為也,天也。堯崩,三年之喪畢,舜避堯之子於南河之南。天下諸侯朝覲者,不之堯之子而之舜;訟獄者,不之堯之子而之舜;謳歌者,不謳歌堯之子而謳歌舜,故曰天也。夫然後之中國,踐天子位焉。而居堯之宮,逼堯之子,是篡也,非天與也。《太誓》曰:『天視自我民視,天聽自我民聽』,此之謂也。」

 

耶?反倒納罕言語文字意義之變遷,是反映自然還是社會改變哩!