rectifiers 整流器
half-wave rectifiers 半波整流器
full-wave rectifiers 全波整流器
diode rectifier 二極體整流器
Information about Electrical, Electronic, Communication and Computer Engineering 電機、電子、通訊、電腦資訊工程的學習筆記
相關資訊~生醫工程:StudyBME
聽力科技相關資訊:電子耳資訊小站
iOS程式語言:Study Swift
樹莓派和Python:Study Raspberry Pi
2017/07/31
2017/07/24
Matlab: Play Demo Sounds
It is very easy to play some demo sounds with Matlab commands using the sound function.
To play a female speaker saying 'Matlab' type:
>> load mtlb
>> sound(mtlb,Fs)
Note that the workspace contains mtlb and Fs, so sound(mtlb,Fs) is called.
You may clear the workspace with the the clear command:
>> clear
To play a snippet of Handel's Hallelujah Chorus, type:
>> load handel
>> sound(y,Fs)
There are also other sounds you may load:
load chirp
load gong
load laughter
load train
References:
Formant Estimation with LPC Coefficients
Record and Play Audio
Sound + FFT
To play a female speaker saying 'Matlab' type:
>> load mtlb
>> sound(mtlb,Fs)
Note that the workspace contains mtlb and Fs, so sound(mtlb,Fs) is called.
You may clear the workspace with the the clear command:
>> clear
To play a snippet of Handel's Hallelujah Chorus, type:
>> load handel
>> sound(y,Fs)
There are also other sounds you may load:
load chirp
load gong
load laughter
load train
References:
Formant Estimation with LPC Coefficients
Record and Play Audio
Sound + FFT
2017/06/13
Vectors 向量
dot product / scalar product / inner product / projection product 點積/內積/純量積 a·b
A·B = |A| |B| cos(θ)
AB = |A| cos(θ)
For vectors a = (a1, a2, ..., an) and b = (b1, b2, ..., bn) ,
a·b = a1b1 + a2b2 + ... + anbn
For example, vectors a = (1, 2, 3) and b = (0, 4, 5),
a·b = 1×0 + 2×4 + 3×5 = 23
Matlab code:
>> a = [1 2 3];
>> b = [0 4 5];
>> dot(a,b)
ans =
23
cross product/vector product 點積/向量積 a×b
參考資料
內積與外積
A·B = |A| |B| cos(θ)
AB = |A| cos(θ)
For vectors a = (a1, a2, ..., an) and b = (b1, b2, ..., bn) ,
a·b = a1b1 + a2b2 + ... + anbn
For example, vectors a = (1, 2, 3) and b = (0, 4, 5),
a·b = 1×0 + 2×4 + 3×5 = 23
Matlab code:
>> a = [1 2 3];
>> b = [0 4 5];
>> dot(a,b)
ans =
23
cross product/vector product 點積/向量積 a×b
參考資料
內積與外積
2017/05/13
Cent and Semitone 音分和半音
cent 音分
semitone/half step/half tone 半音
whole tone 全音
accidental 變音記號
1 semitone = 100 cents
octave 八度音
一個八度音 = 12個半音 = 5個全音 + 2個半音
Twelve-tone equal temperament (十二平均律)
- divide an octave into 12 equal parts
Number of Semitones between Two Frequencies (兩個頻率間相差的半音數):
n = abs(log2(f1/f2)/log2(2(1/12))) = abs(12log2(f1/f2))
Reference
How to find the number of semitones between two frequencies?
semitone/half step/half tone 半音
whole tone 全音
accidental 變音記號
1 semitone = 100 cents
octave 八度音
一個八度音 = 12個半音 = 5個全音 + 2個半音
Twelve-tone equal temperament (十二平均律)
- divide an octave into 12 equal parts
Number of Semitones between Two Frequencies (兩個頻率間相差的半音數):
n = abs(log2(f1/f2)/log2(2(1/12))) = abs(12log2(f1/f2))
Reference
How to find the number of semitones between two frequencies?
2017/04/06
Matlab: Draw a grayscale
>> a = [0 40 80 120 160 200 220 255];
>> b = [a;a;a;a;a;a;a;a];
>> colormap('gray');
>> imagesc(b)
Result:
>> b = [a;a;a;a;a;a;a;a];
>> colormap('gray');
>> imagesc(b)
Result:
2017/04/03
Modulation terms 調變相關名詞
modulation 調變
modulator 調變器
demodulator 解調器/解調變器
amplitude modulation (AM) 振幅調變/調幅
angle modulation 角度調變
- frequency modulation (FM) 頻率調變/調頻
- phase modulation (PM) 相位調變/調相
modulation index 調變指數
Reference
S. Haykin, Communication Systems, 4th Edition, Wiley, pp106
國家教育研究院雙語詞彙、學術名詞暨辭書資訊網
modulator 調變器
demodulator 解調器/解調變器
amplitude modulation (AM) 振幅調變/調幅
angle modulation 角度調變
- frequency modulation (FM) 頻率調變/調頻
- phase modulation (PM) 相位調變/調相
modulation index 調變指數
Reference
S. Haykin, Communication Systems, 4th Edition, Wiley, pp106
國家教育研究院雙語詞彙、學術名詞暨辭書資訊網
2017/03/18
樂器的ADSR模型
A sound produced by a musical instrument can be explained using the ADSR model, which involves 4 stages:
attack
decay
sustain
release
attack
decay
sustain
release
訂閱:
文章 (Atom)
