Cov txheej txheem:
- Kauj ruam 1: Cov ntaub ntawv
- Kauj Ruam 2: Nrhiav Tawm BPM ntawm Koj Nkauj thiab Cai Ntawd
- Kauj Ruam 3: Ua raws Daim Ntawv Nkauj thiab Cim Cim thiab Chords
- Kauj ruam 4: Xaiv Koj Cov Synth
- Kauj ruam 5: Ua tiav
Video: Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Cov lus qhia no yog yuav piav qhia qee cov kauj ruam yooj yim thiab cov cai ntawm kev siv thaum sau cov nkauj hauv Sonic Pi siv cov ntawv nkauj! Muaj ntau lab lwm daim ntawm cov cai los sim ntxiv tsw rau koj daim ua tiav yog li nco ntsoov tseem ua si ib puag ncig koj tus kheej thiab pom dab tsi koj tuaj yeem tuaj nrog!
Cov ntawv nkauj uas kuv tau siv yog qhov yooj yim piano npaj ntawm "Kuv Xav Ua Kom Rhuav Dawb" los ntawm Poj huab tais. Yog tias koj xav rub cov nkauj no tib yam, koj tuaj yeem ua tau ntawm no:
Kauj ruam 1: Cov ntaub ntawv
Rau qhov haujlwm no koj yuav xav tau:
1. Lub khoos phis tawj sib xws nrog Sonic Pi
2. Sonic Pi software
3. Ntawv nkauj
4. Kev paub pib paub yuav nyeem nkauj li cas thiab ntawm kev sau suab paj nruag
Kauj Ruam 2: Nrhiav Tawm BPM ntawm Koj Nkauj thiab Cai Ntawd
Hauv kuv qhov xwm txheej, BPM tau luam tawm ntawm daim ntawv nkauj. Txawm li cas los xij, qhov no feem ntau tsis tshwm sim. Txhawm rau pab nrhiav BPM ntawm koj zaj nkauj, koj tuaj yeem siv lub vev xaib no:
BPM ntawm kuv zaj nkauj yog 109 neeg ntaus ib feeb. Thaum koj paub BPM ntawm koj zaj nkauj, mus rau kab thawj kab hauv koj qhov tsis thiab ntaus "use_bpm 109" siv koj li BPM. Yuav tsum muaj qhov chaw nruab nrab ntawm cov lus thiab tus lej thiab tus nqi koj tso rau BPM yuav tsum tig xiav, qhia tias nws yog tus lej.
Mus tom ntej thiab coding BPM hauv kuv qhov kev paub tau pab muaj txiaj ntsig zoo nrog kev txiav txim siab lub sijhawm thaum coding.
Kauj Ruam 3: Ua raws Daim Ntawv Nkauj thiab Cim Cim thiab Chords
Tam sim no, nws yog lub sijhawm los txhais cov ntawv yooj yim ntawm cov neeg ua haujlwm ntawm koj daim ntawv nkauj rau kab ntawm kab ntawv. Koj tuaj yeem siv qhov yooj yim "ua si" thiab "pw tsaug zog" lub luag haujlwm txhawm rau ua qhov no, tab sis kuv tau pom nws ua rau nws yooj yim me ntsis los siv kab lus nyuaj dua. Nco ntsoov them sai sai rau qhov kos npe tseem ceeb txhawm rau kom ntseeg tau tias koj tau tso cov ntse thiab chav nyob uas lawv xav tau yog tias muaj.
Hauv kuv qhov xwm txheej, kuv thawj qhov kev ceeb toom yog a4 ntawm cov neeg ua haujlwm hauv cov ntsiab lus tshawb fawb. Txhawm rau tus lej no, Kuv ntaus "ua si: a4" hauv kab pub dawb hauv qhov tsis, ua kom ntseeg tau suav nrog cov nyuv kom cov software paub nws yog cov ntawv. Cov nyuv thiab ntawv yuav tsum tig liab yog tias koj tau nkag mus rau nws raug. Txij li daim ntawv no yog daim ntawv thib yim thiab lub sijhawm kos npe yog 4/4 lub sijhawm, Kuv tau sau "pw 0.5" tom qab nws.
Tom qab qhov no kuv tau sau ntau ntau hauv kab ntawv uas yuav yooj yim dua coded hauv ib kab ntawm cov lej ntau dua. Txhawm rau ua qhov no, kuv tau siv "play_pattern_timed [: d5,: e5,: e5], [1, 1, 1]" Thawj txheej ntawm kab zauv yuav tsum muaj koj cov ntawv sau tseg ntawm cov neeg ua haujlwm, sib cais los ntawm tus lej thiab qhov thib ob yuav tsum muaj lub sijhawm ntawm txhua daim ntawv ceeb toom (1 rau daim ntawv peb lub hlis, 2 rau ib nrab ntawv, 0.5 rau daim ntawv thib yim, thiab lwm yam)
Yog tias koj xav kom chord ua si tib lub sijhawm zoo li kuv tau ua, ntaus "play_chord [: d,: fs,: a]" yam tsis muaj coding pw hauv nruab nrab. Hauv kab ntawv, koj yuav tsum sau cov ntawv sau uas ua rau chord koj tab tom sim ua si. Yog tias yog tag nrho cov ntawv koj xav ua si hauv ib lub sijhawm, chaws pw tom qab qhov no nrog tus lej tom qab pw tsaug zog yog lub sijhawm ntawm koj daim ntawv luv tshaj plaws hauv koob uas koj nyuam qhuav sau.
Yog tias koj muaj cov lej rov ua dua ntawm koj cov cai, koj tuaj yeem siv ib txheej ntawm cov cai siv "4.times ua" thaum pib ntawm txoj cai koj xav ua voj thiab "kawg" kawg ntawm ntu koj xav ua voj. Tus lej ua ntej ".times ua" qhia pes tsawg zaus koj xav kom ntu ntu ntawm cov cai rov ua dua. Yog tias koj tau sau nws raug, ob qho tib si "ua" thiab "xaus" yuav tig txiv kab ntxwv.
Yog tias koj muaj ib daim ntawv koj xav ua si rau qee lub sijhawm uas tsis yog 1, koj tuaj yeem sau nws zoo li no: "ua si: e5, txhawb nqa: 0.5, tso tawm: 0.1" nrog tus lej tom qab txhawb nqa yog lub sijhawm sau tseg. Yog tias koj tau ntaus nws kom raug, txhawb nqa thiab tso tawm yuav tig liab dawb thiab cov lej yuav tig xiav.
Siv cov lej yooj yim ntawm cov cai, koj yuav tsum muaj peev xwm sau koj zaj nkauj los ntawm kev txhais cov ntawv nkauj rau code. Yog tias koj ua nws thiab qee yam tsis zoo, siv kev sim thiab yuam kev kom txog thaum koj muaj lub suab koj xav tau! Qee zaum, koj yuav tsum hloov pauv mus rau daim ntawv tshiab lossis ntxiv qhov "pw tsaug zog" qhov chaw.
Kauj ruam 4: Xaiv Koj Cov Synth
Tam sim no koj tau sau koj cov nkauj tag nrho uas siv cov nkauj nkauj thiab koj nyiam nws lub suab li cas, nws yog lub sijhawm los xaiv koj cov synth. Koj tuaj yeem khaws nws ua lub hauv paus lossis tshawb xyuas ntau txoj hauv kev muaj nyob hauv software.
Txhawm rau nrhiav cov kev xaiv, nyem "Pab" nyob rau sab xis saum toj ntawm lub qhov rais, qhib lub hauv qab kev tshuaj ntsuam. Nyem rau synths hauv qab thiab sim ua. Mus rau sab saum toj ntawm koj qhov tsis zoo thiab sau rau hauv kab uas peb yav tas los sau tus lej BPM, ntaus: "use_synth: dtri" nrog cov lus (s) tom qab txoj hnyuv loj yog cov synth xaiv rau koj zaj nkauj. Ntaus ua si thiab pom tias koj nyiam lub suab. Yog tsis yog, khaws kev tshawb fawb kom txog thaum koj pom ib qho uas koj ua!
Kauj ruam 5: Ua tiav
Koj cov nkauj sau los ntawm cov nkauj hauv Sonic Pi yuav tsum tam sim no ua tiav. Ntaus lub pob "Khiav", zaum rov qab, so, thiab mloog koj cov txuj ci!
Pom zoo:
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card - DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: 5 Cov Kauj Ruam
Yuav Ua Li Cas Vaum Thiab Kub Tiag Tiag Cov Ntaub Ntawv Teev Npe Nrog Arduino UNO thiab SD-Card | DHT11 Cov ntaub ntawv-logger Simulation hauv Proteus: Taw qhia: nyob zoo, qhov no yog Liono Maker, ntawm no yog YouTube txuas. Peb tab tom tsim txoj haujlwm muaj tswv yim nrog Arduino thiab ua haujlwm ntawm cov kab ke. Cov ntaub ntawv-Logger: Cov ntaub ntawv logger (tseem cov ntaub ntawv-logger lossis cov ntaub ntawv kaw) yog cov cuab yeej siv hluav taws xob uas sau cov ntaub ntawv dhau sijhawm
Zaj Laug Lo Lus Clock Nrog Cov Zaj Zaj Tag Nrho thiab Ntau Ntxiv: 13 Kauj Ruam (nrog Duab)
Zaj Lo Lus Clock Nrog Cov Zaj Zaj Tag Nrho thiab Ntau Ntxiv: Lub Hom Phiaj 1) Yooj Yim 2) Tsis kim 3) Raws li lub zog muaj peev xwm ua tau Zaj Zaj Zaj Caij Nyoog nrog cov zaj sawv tag nrho. Qhov Kev Ntsuas Zoo ntawm NeopixelsUpdate 01-jan
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Info: 4 Cov Kauj Ruam
Yuav Ua Li Cas Tau Txais Cov Nkauj Los Ntawm Txhua Qhov (Haha) Lub Vev Xaib (Ntev Li Koj Tau hnov Nws Koj Yuav Tau Txais Nws … Ok Zoo Yog Nws Tau Ntxig Hauv Flash Koj Yuav Tsis Muaj Peev Xwm) EDITED !!!!! Ntxiv Cov Lus Qhia: yog tias koj tau mus rau lub vev xaib thiab nws ua nkauj nkauj uas koj nyiam thiab xav tau nws ntawm no yog cov lus qhia rau koj tsis yog kuv qhov txhaum yog tias koj cuam tshuam qee yam (tsuas yog txoj hauv kev nws yuav tshwm sim yog tias koj pib tshem cov khoom yam tsis muaj laj thawj. ) Kuv tuaj yeem tau txais cov nkauj rau
Mod Zaj Duab Xis rau Siv Hauv Super Cov Koob Yees Duab (620 Zaj Duab Xis): 4 Kauj Ruam
Mod Zaj Duab Xis rau Siv Hauv Super Lub Koob Yees Duab (620 Zaj Duab Xis): Muaj ntau lub koob yees duab qub txaus txaus, feem ntau siv 620 zaj duab xis, uas nyuaj rau hnub no, lossis kim heev. Cov lus qhia ntxaws no yuav hloov pauv koj li cas 120 zaj duab xis pheej yig rau siv hauv 620 lub koob yees duab qub, tsis tas yuav ua tag nrho
CD Toj roob hauv pes Cuam Tshuam Nrog Zaj Zaj Zaj: 5 Kauj Ruam
CD Toj roob hauv pes Cuam Tshuam nrog Zaj sawv Zaj Duab Xis: Vim li cas thiaj yuav cov yas yas toj roob hauv pes zoo nkauj thaum koj tuaj yeem ua koj tus kheej dawb, rov ua dua qub cds thiab tau txais qhov txias tshaj bennie hauv tus txheej txheem