Cov txheej txheem:
- Kauj ruam 1: Dab tsi yog Jazz?
- Kauj ruam 2: Tsim Circuit Court
- Kauj ruam 3: Upload Code
- Kauj Ruam 4: Yuav Tswj Li Cas
Video: Arduino Jazz Improviser: 4 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Qhov kev tsim no tsis ua "nkauj". Hloov chaw, nws siv qhov kev nplij siab los tsim nws cov nkauj thaum nws ua si - zoo ib yam li tus kws ntaus suab paj nruag jazz tiag. Txhua zaus koj qhib nws nws yuav ua qee yam txawv; tab sis koj tseem tuaj yeem tswj lub sijhawm, suab nrov, thiab ntim nrog cov xov tooj. Hnov ib qho piv txwv ntawm nws ua si hauv qab no:
Kauj ruam 1: Dab tsi yog Jazz?
Yog tias koj xav tau lub ntsiab lus raug cai, koj tuaj yeem saib cov kab ntawv txuas no, tab sis kuv xav tias txoj hauv kev zoo tshaj plaws los piav nws tsuas yog qhia koj tias nws zoo li cas.
- https://en.wikipedia.org/wiki/Jazz
- https://en.wikipedia.org/wiki/Jazz_improvisation
Kauj ruam 2: Tsim Circuit Court
Kuv tau ua sawv ntawm kuv tus neeg hais lus tawm ntawm cov quav quav thiab kab xev, tab sis qhov ntawd yog nyob ntawm yeem. Ua raws daim duab txhawm rau tsim qhov tsim ntawm qhov tsim no.
Kauj ruam 3: Upload Code
Txoj cai no ua raws li pseudo-random algorithm los ua qhov kawg sau cov ntawv ntawm Bb blues nplai hauv qhov kev sib dhos jazzy syncopated.
Siv tus lej no hauv Arduino IDE:
int nco = 1;
int nco2 = 1; teeb tsa tsis muaj dab tsi () {pinMode (3, OUTPUT); } void loop () {int tonecontrol = daim ntawv qhia (analogRead (A0), 0, 1023, 1, 4); int speedcontrol = daim ntawv qhia (analogRead (A1), 0, 1023, 1, 20); int tonecontrol2 = daim ntawv qhia (analogRead (A2), 0, 1023, 1, 4); koj playnote; int switchval = random (1, 5); hloov (hloov pauv) {rooj plaub 1: ceeb toom = ceeb toom; tawg; rooj plaub 2: ceeb toom = ceeb toom + 1; tawg; rooj plaub 3: ceeb toom = ceeb toom - 1; tawg; rooj plaub 4: ceeb toom = ceeb toom + 2; tawg; rooj plaub 5: ceeb toom = ceeb toom - 2; tawg; } hloov (ceeb toom) {rooj plaub 1: playnote = 262; tawg; rooj plaub 2: playnote = 294; tawg; rooj plaub 3: playnote = 311; tawg; rooj plaub 4: playnote = 349; tawg; rooj plaub 5: playnote = 392; tawg; rooj plaub 6: playnote = 440; tawg; rooj plaub 7: playnote = 466; tawg; rooj plaub 8: playnote = 523; tawg; default: nco = 1; tawg; } playnote = playnote * lub suab tswj; koj playnote2; int switchval2 = random (1, 5); hloov (switchval2) {rooj plaub 1: note2 = note2; tawg; rooj plaub 2: note2 = note2 + 1; tawg; rooj plaub 3: note2 = note2 - 1; tawg; rooj plaub 4: note2 = note2 + 2; tawg; rooj plaub 5: note2 = note2 - 2; tawg; } hloov (note2) {rooj plaub 1: playnote2 = 262; tawg; rooj plaub 2: playnote2 = 294; tawg; rooj plaub 3: playnote2 = 311; tawg; rooj plaub 4: playnote2 = 349; tawg; rooj plaub 5: playnote2 = 392; tawg; rooj plaub 6: playnote2 = 440; tawg; rooj plaub 7: playnote2 = 466; tawg; rooj plaub 8: playnote2 = 523; tawg; default: nco2 = 1; tawg; } playnote2 = playnote2 * tonecontrol2; suab nrov (3, playnote, 30 * kev tswj nrawm); ncua (31 * kev tswj nrawm); yog (random (1, 4) == 3) {ncua (21 * kev tswj nrawm); } lwm {suab (3, playnote2, 20 * speedcontrol); ncua (21 * kev tswj nrawm); }}
Kauj Ruam 4: Yuav Tswj Li Cas
Los ntawm sab laug mus rau sab xis, txhua lub xov tooj ua raws li hauv qab no:
- Ntim
- 1st tone lub suab
- Sijhawm
- Lub suab thib 2
Tham nrog lawv kom txog thaum koj tau txais lub suab uas koj nyiam.
Pom zoo:
YADPF (YET Lwm Tus Duab Duab Duab): 7 Kauj Ruam (nrog Duab)
YADPF (YET Lwm Tus Duab Duab Duab): Kuv paub qhov no tsis yog khoom tshiab, Kuv paub, Kuv tau pom qee qhov ntawm cov haujlwm no ntawm no, tab sis kuv ib txwm xav tsim kuv tus kheej cov duab thav duab. Txhua daim duab thav duab kuv tau pom yog qhov zoo, tab sis kuv tab tom nrhiav lwm yam, Kuv tab tom nrhiav qhov zoo nkauj tiag tiag
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv