Piano and associated music theory

Q:请教个问题,今天有人讨论音调,频率和正弦波的问题。钢琴发音原理与每个按键的关系,听到的音色不同是什么原因导致的?和旋是什么东西?和频率有什么关系?估计你是懂得,麻烦普及一下哈:-D

A:钢琴是按照十二平均律定弦的 在一个八度内 以C大调为例有

(1)C大调的do,音名为c.

(2)ri音名为d, 音高,也就是频率是c的6√2 (全音关系)

(3)中央c频率为440Hz

(4)对这里所说的频率。如果用频谱分析仪测定钢琴的某个音,在功率(y)-频谱(x)坐标系上最大能量(y值最大),同时也是最小频率(x值最小)的谐波。钢琴的每个音有很多谐波,每个谐波是大体上的正弦波。每个谐波与最低谐波和谐(频率是倍数关系或者(n+1/m)这种形式,其中n和m都是正整数)

(5)和弦就是一组和谐的三个音(频率是倍数关系或者(n+1/m)这种形式,其中n和m都是正整数),但是并不是所有满足这种条件的和谐的音组都好听。

(6)在一个八度内有do,ri,mi.fa,so,la,ti七个音。其中全音关系有do和ri,ri和mi,fa和so,so和la,la和ti,半音关系有mi和fa,ti和la.

比如全音关系的do和ri,ri的频率是do的6√2;半音关系的mi和fa,fa的频率是mi的12√2。

这样一来do是高八度的do的频率的1/2(五个6√2与两个12√2相乘)

(7)由上一条,在更高八度内,所有的音都与本八度内对应音成2倍频率关系

(8)和弦例子,以最简单的和弦,在一个八度内的do,mi,so为例,假定do是c大调的中央c,其频率为440hz, 则mi是440*3√2=554.4hz, so是440*3√2*12√2*6√2=660hz.

很明显他们是一组和谐的音

(9)继续上一条,单按钢琴中央c,得到一组谐波,基频440; 按do,mi,so得到另外一组谐波,基频同样是440,但是谐波成分更加丰富。所以和弦比单音表达更饱满,音色也不同。

(10)震动与弦上张力和弦的粗细,还有弦的材料有关。钢琴的每个音(按键)对饮一组弦,而不是像弦乐器只有一根弦。低音部分大概每个对应四根弦,高音部分三根(记不清了,反正不同)。现代钢琴为了使声音大,采用了增加弦上张力同时加粗弦的措施。

(11)调式有24种,每个八度内有十二个音(do,do#,ri,ri#,mi,fa,fa#,so,so#,la,la#,ti),这十二个音相邻成半音关系,即12√2倍频。所以称为12平均律。大调从do开始(do,ri,mi,fa,so,la,ti),小调从la开始(la,ti,do,ri,mi,fa,so)。

(12)还有其他的定弦和调式,但是不如十二平均律这么常用。比如中国民乐在一个八度内只有五个音:宫、商、角、徵、羽。在近代经过改编后(古代没有绝对音高,就是说宫的频率在每个地方都是不同的,所以古代很少不同乐器合奏,因为不能和谐),分别对应1、2、3、5、6。可以看到,这里五个音任意组合,都是和谐的。

(13)附件 Music Composition for Dummies 一书,看前面一点就明白了

 

Here’s to the crazy ones.

The misfits.
The rebels.
The troublemakers.
The round pegs in the square holes.
The ones who see things differently.
They’re not fond of rules.
And they have no respect for the status quo.
You can quote them, disagree with them, glorify or vilify them.
About the only thing you can’t do is ignore them.
Because they change things.
They push the human race forward.
And while some see them as the crazy ones,
We see genius.
Because the people who are crazy enough to think
they can change the world,
Are the ones who do.

QQ in Pidgin

By default, QQ is not supported by Pidgin for the old qq protocol of it. You need to install qq2008 or newer protocol.

(1) Download newest Pidgin from http://www.pidgin.im/download/ubuntu/

(2) Install libqq-2010

sudo add-apt-repository ppa:lainme/libqq

sudo apt-get update

sudo apt-get install libqq-pidgin

(3)Restart Pidgin

 

 

 

Ubuntu: no title bar

All the windows get no title bar, thus, you can’t move them. You may meet this after you change your ubuntu appearance or login window.

This my due to the metacity failure. Ttry this to fix it:

sudo metacity –replace

淫荡的时光为我们的灵魂松绑(11)

你们听见有话说:‘当爱你的邻舍,恨你的仇敌。’ 只是我告诉你们:要爱你们的仇敌,为那逼迫你们的祷告。

马太福音5:43

不可报仇、也不可埋怨你本国的子民、欲要爱人如己。

利未记19:18

躺着也中枪

写了三年的博客被以无法理解的原因完全删除,GFW显然是立了大功的。这让我感觉生存的环境又受到了挤压。于是我有仇恨,但这仇恨的源头,却不是某个具体的人,而又可以是这环境中实体的每一个人,包括我自己。

在一个邪恶的制度下,是非是混淆的,价值观错位,精神四分五裂。没有谁是真正清白纯洁,人们都怒气冲冲,任何一件小事都可能成为发泄口。大家都觉得自己是受害者,但在这侵犯别人的利益这件事上却乐此不疲,争先恐后。因此,反过来,这种邪恶的制度又是大家罪有应得。你不能指望让这样的人群去享受民主,清洁的空气,好的福利制度——他们只会破坏它。必须明白,实现美好人生,无论个人或社会的,都是没有捷径的。要拥有美好人生,我们必须拥有智慧、自制和同情。这是一个数量的问题,一个逐渐改良、早期训练、教育实验的问题。促使人们相信剧然改良之可能的,只是急躁情绪而已。而一旦这种急躁成为主流,灾难将是必然的预期——没有一场暴力革命或者剧然改良实现了当初宣传的目的,而流行的成功学宣传,内容则像邪教一样空洞乏力,那些追随者,耗费了时光,只能得到惩罚。

上帝寻找志同道合的人,求索仁爱;魔鬼则搜索奴隶,勒令服从。我们身边搜索奴隶的魔鬼随处可见。你不难看到这样的论调——坚决拥护XXX的领导,铁心跟XXX走……;你不难看到D性跟人性的对立——那是魔鬼与人的对立;你不难看到魔鬼张牙舞爪,貌似法力无边了——可上九天揽月,可下五洋捉鳖,与天斗,其乐趣穷!人性有爱、有恨;有勤奋、有懒惰。一个不考虑人性“缺陷“的制度设计是不人性的,没有竞争力的,必然失败的。但是这样制度培育出的人,却又是斯德哥尔摩综合征患者,成了它的拥护者。于是我们看到这种制度得到保留、继承。成为了一种不需要问存在理由的天然。但是人性的解放必是不可阻止,魔鬼和人都明白这一点。于是魔鬼恐惧了,张狂了。而我们,只需要一点等待。

MPRAGE

MPRAGE is short for Magnetization Prepared Rapid Gradient Echo. It’s a fast 3D gradient echo pulse sequence using a magnetization preparation pulse like TurboFLASH. Only one segment or partition of a 3D data record is obtained per inversion preparation pulse. After the acquisition, for all rows a delay time (TD) is used to prevent saturation effects.

MPRAGE is designed for rapid acquisition with T1 weighted dominance. Fast gradient echoes are characterized by their rapid sampling time, high signal intensity and image contrast while approaching steady state (the echo is collected during the time when tissues are experiencing T1 relaxation). The rapid speed of the acquisition makes it an excellent alternative to breath-hold abdominal imaging, neuro, dynamic bolus, MR angiography and cardiac imaging. (from http://www.mr-tip.com/serv1.php?type=db1&dbs=Magnetization%20Prepared%20Rapid%20Gradient%20Echo)

Continue reading

Cluster Report

Wen Miao @ Mar 30, 2011

A Matlab script for MRI image Cluster Report is available here:http://www.nitrc.org/projects/cluster_report/

The zip packet contains no help file. And the script is also lack of comments. Thus, it’s hard to get it work with your data.

After its download, uncompress it in your computer, say /media/DATA1/program/cluster. Start matlab and add this path to matlab path.

The image to analyze must meet the following conditions:

(1)MNI152 space

(2)Volexs: 91*109*91

(3)Dimentions: 2*2*2 mm

(4)data format: Analyze(.img .hdr)

The first condition is satisfied for the most of the time, if not , you can normalize it to a MNI152 template using SPM. For the condition (2) and (3), SPM’s reslice tool can help you. Active SPM’s reslice tool and load a image of MNI152space(eg. aal.nii), and then your file. Reslice  the second img using nearest neighbor . The result file start with prefix ‘r_’, following the original filename.

Convert this file to img formart using mri_convert to make it meet condition (4).

Create a new folder and move the img file to it(Important, if not, you’ll fail or get a wrong result).

Now it’s ready to start Matlab and run Rubes_cluster_report in the command window.