Cov txheej txheem:

Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi: 5 Kauj Ruam
Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi: 5 Kauj Ruam

Video: Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi: 5 Kauj Ruam

Video: Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi: 5 Kauj Ruam
Video: nplej siav siav lawm os nkauj hmoob npawg lem +paj nyiag lauj 2021 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi
Yuav Ua Li Cas Code Ib Zaj Nkauj Siv Cov Ntawv Nkauj hauv Sonic Pi

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

Khoom siv
Khoom siv
Khoom siv
Khoom siv

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

Nrhiav Tawm BPM ntawm Koj Zaj Nkauj thiab Txoj Cai ntawd
Nrhiav Tawm BPM ntawm Koj Zaj Nkauj thiab Txoj 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

Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov Cim Cim thiab Chords
Ua raws li Cov Ntawv Nkauj thiab Cov 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

Xaiv Koj Cov Synth
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

Ua tiav!
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: