Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Npaj Txoj Cai rau Ob Pawg Bareconductive Boards
- Kauj Ruam 2: Soundplant_BCTB_1of2.ino PREP
- Kauj Ruam 3: Soundplant_BCTB_2of2.ino PREP
- Kauj Ruam 4: Teeb Kho Arduino Software Nyeem Cov Touchboards
- Kauj Ruam 5: Rub tawm Txoj Cai rau Lub Rooj Sib Tham
- Kauj Ruam 6: Tso Cov Qauv Rau Hauv Soundplant
- Kauj Ruam 7: Txuag Koj KEYMAP Nrog Suab
Video: Soundplant + 2 Bareconductive Boards = 24 Cov Khoom Siv Digital: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:24
Txoj haujlwm no yog cov ntaub ntawv pov thawj rau txoj haujlwm ua haujlwm los ntawm kuv txoj haujlwm ntawm CEISMC (Lub Chaw Kawm Txuj Ci Kev Tshawb Fawb Txog Kev Tshawb Fawb, Lej, thiab Xeem). CEISMC yog kev kawm txuj ci ntawm Georgia Tech hauv Atlanta, GA. Txoj haujlwm uas kuv koom nrog yog "GoSteam." Koj tuaj yeem kawm paub ntau ntxiv txog txoj haujlwm ntawm no:
Qhov 24 cov cuab yeej siv digital no yuav siv nrog Soundplant (rub tawm txuas hauv qab no). Peb yuav ntsuas qhov ntsuas no siv Arduino (rub tawm txuas hauv qab no). Peb yuav 'dag' lub khoos phis tawj kom nyeem Bareconductive boards li niaj zaus ntaus cov keyboard. Txhua lub sijhawm koj kov lub ntsuas pa hauv Bareconductive board, nws yuav xa qhov 'keystroke' mus rau Soundplant thiab yuav ua tus qauv raug xaiv. Nov yog qhov txuas uas piav qhia li cas Bareconductive Touch Boards siv lub peev xwm kov kom xa cov cim.
Vim li cas peb thiaj siv Bareconductive Touch Boards es tsis txhob siv ob lub keyboard?
Txoj haujlwm no yog ib feem ntawm txoj haujlwm txhim kho kev sib raug zoo rau ib tus kws qhia nkauj hauv tsev kawm theem pib. Hauv qhov xwm txheej ib txwm muaj, cov menyuam yuav pauv thiab sib koom cov khoom siv. Hmoov tsis zoo, peb tsis tuaj yeem ua qhov no ntxiv vim yog COVID-19. Cov cuab yeej no yuav siv nrog cov menyuam yaus tus yam ntxwv ua duab (duab los qhia qhwv hauv txhuas ntawv ci).
Khoom siv
1. Ob (2) - Bareconductive Touch Boards (qhov no yuav muab rau koj 24 cov tswv yim tag nrho)
2. Arduino software tau teeb tsa ua ntej ** koj yuav tsum teeb tsa qhov PRIOR no txhawm rau txhim kho Touchboard Library **
Yog tias koj tsis tau teeb tsa qhov no, ntawm no yog qhov txuas rau lawv lub vev xaib. Nws pub dawb, tab sis txiav txim siab pub dawb:)
3. Touchboard Library (los ntawm Bareconductive)
Qhov no yuav muab lub tsev qiv ntawv rau Arduino los rub cov lej ua ntej rau Bareconductive Boards (pab tau zoo heev).
4. Soundplant - Cov software no hloov koj lub khoos phis tawj keyboard mus rau hauv lub tshuab ua suab nrov.
5. Xaiv 24 qhov piv txwv ntawm koj xaiv. www.freesound.org thiab www.archive.org yog qhov chaw zoo los pib nrhiav suab dawb dawb.
Kauj Ruam 1: Npaj Txoj Cai rau Ob Pawg Bareconductive Boards
Thawj kauj ruam peb tab tom yuav ua yog npaj ob lub Bareconductive boards rau xa 'keystrokes' rau Soundplant. Qhov no yuav xav kom peb ua ob qho sib cais arduino.ino cov ntaub ntawv (.ino yog hom ntawv Arduino ib txwm muaj).
Ua ntej, qhib Arduino. Thaum thauj khoom, mus rau Cov Ntaub Ntawv -> Sketchbook -> Kov Cov Piv Txwv piv txwv -> HID_Keyboard.
Thaum qhov no qhib, peb yuav mus tom ntej thiab 'Txuag Raws' thiab sau lo lus no 'Soundplant_BCTB_1of2'
Tom qab ntawd cia 'Txuag Raws Li' dua thiab sau daim ntawv tshiab no 'Soundplant_BCTB_2of2' Yog li tam sim no peb muaj ob (2) cov ntaub ntawv: Soundplant_BCTB_1of2.ino thiabSoundplant_BCTB_2of2.ino
Kauj Ruam 2: Soundplant_BCTB_1of2.ino PREP
Hauv Soundplant_BCTB_1of2, hauv qab // keyboard tus cwj pwm tsis tu ncua peb yuav hloov pauv ob qhov tas li.
1. Thawj qhov peb yuav hloov yog const bool HOLD_KEY = muaj tseeb; peb yuav hloov 'tseeb' rau 'tsis tseeb'
Los ntawm kev hloov qhov no mus rau 'cuav', nws yuav xa ib zaug (rau/tawm) keystroke rau Soundplant. Qhov no yuav pab khaws qhov ua tau zoo ntawm cov cuab yeej digital no me ntsis ntxiv ntawm cov organic thiab hnov zoo li cov cuab yeej siv suab ib txwm muaj.
2. Qhov thib ob tas li peb yuav hloov pauv yog lub cim KEY_MAP [12] = {'J', 'U', 'H', 'Y', 'G', 'T', 'F', 'D', ' E ',' S ',' W ',' A '}; Cov ntawv no tuaj yeem yog txhua yam koj xav tau. Rau txoj haujlwm no peb yuav hloov lawv mus rau {'Q', 'W', 'E', 'R', 'T', 'Y', 'U', 'I', 'O', 'P', 'A', 'S'};
**** Thov nco ntsoov tias txhua tsab ntawv yuav tsum muaj SINGLE floating quote ua ntej THIAB tom qab txhua tsab ntawv CAPITAL, tom qab ntawd muaj tus lej cim. Ex: {'A', 'B', 'C', …} ****
Qhov no yuav muab Electrodes E0-E11 ntawm Bareconductive Touch Board1 ntawm 2.
Kauj Ruam 3: Soundplant_BCTB_2of2.ino PREP
Hauv Soundplant_BCTB_2of2, hauv qab // keyboard tus cwj pwm tsis tu ncua peb yuav hloov pauv ob qhov tas li.
1. Thawj qhov peb yuav hloov yog const bool HOLD_KEY = muaj tseeb; peb yuav hloov 'tseeb' rau 'tsis tseeb'
Los ntawm kev hloov qhov no mus rau 'cuav', nws yuav xa ib zaug (rau/tawm) keystroke rau Soundplant. Qhov no yuav pab khaws qhov ua tau zoo ntawm cov cuab yeej digital no me ntsis ntxiv ntawm cov organic thiab hnov zoo li cov cuab yeej siv suab ib txwm muaj.
2. Qhov thib ob tas li peb yuav hloov pauv yog lub cim KEY_MAP [12] = {'J', 'U', 'H', 'Y', 'G', 'T', 'F', 'D', ' E ',' S ',' W ',' A '}; Cov ntawv no tuaj yeem yog txhua yam koj xav tau. Rau txoj haujlwm no peb yuav hloov lawv mus rau {'D', 'F', 'G', 'H', 'J', 'K', 'L', 'Z', 'X', 'C', 'V', 'B'};
**** Thov nco ntsoov tias txhua tsab ntawv yuav tsum muaj SINGLE floating quote ua ntej THIAB tom qab txhua tsab ntawv CAPITAL, tom qab ntawd muaj tus lej cim. Ex: {'A', 'B', 'C', …} ****
Lub koom haum no yog txhawm rau khaws cov qauv ua piv txwv XWB cov ntawv tuav ntawm cov keyboard kom ua tej yam yooj yim.
Qhov no yuav muab Electrodes E0-E11 ntawm Bareconductive Touch Board 2 ntawm 2.
Kauj Ruam 4: Teeb Kho Arduino Software Nyeem Cov Touchboards
Txhawm rau xa cov ntaub ntawv.ino mus rau Touch Boards, peb thawj zaug yuav tsum paub tseeb tias Arduino software tau nyeem cov laug cam kom raug.
Txuas koj lub rooj tsav xwm ncaj qha mus rau lub khoos phis tawj, thiab tsis dhau los ntawm USB hub, qhov no yuav ua rau Arduino software tsis nyeem cov laug cam txhua. Tig lub zog hloov pauv ntawm Touchboard rau ON.
Mus rau Cov Cuab Yeej -> Boards -> Bareconductive Boards -> Bareconductive Touch Board *** Nco ntsoov xaiv Bareconductive Board, NOT Barecondutive Board USB MIDI ***
Mus rau Cov Cuab Yeej -> Chaw nres nkoj -> /dev/cu.usbmodem(XXXX) (XXXX yuav txawv rau txhua tus)
Kauj Ruam 5: Rub tawm Txoj Cai rau Lub Rooj Sib Tham
Cov txheej txheem no zoo ib yam rau ob lub rooj tsavxwm, tsuas yog muaj cov ntaub ntawv sib txawv rau txhua lub rooj tsavxwm.
Thaum pawg thawj coj tau txuas nrog, thiab tau nyeem kom raug, cia thauj khoom.ino cov ntaub ntawv Soundplant_BCTB_1of2 mus rau thawj lub rooj sib tham.
Txog ntawm kaum sab laug ntawm lub qhov rais yog ob lub voj voog:
Ib qho nrog kos cim thiab ib qho nrog xub. Cov cim kos yog siv los txheeb xyuas cov cai rau ib qho yuam kev. Ntaus lub pob no ua ntej. Yog tias tsis muaj qhov yuam kev nws yuav hais tias 'ua tiav' hauv qab sab laug ntawm lub qhov rais.
Lwm lub pob yog Upload. Ntaus lub pob no thiab koj yuav pom 'Uploading …' nyob hauv qab, thiab koj yuav pom 4 LED's ntawm lub rooj tswj hwm nyem (L, Tx, Rx). Yog tias txhua yam zoo, tom qab ntawd lawv yuav ntsais muag li ob peb feeb, thiab tom qab ntawd tawm mus.
Ua ntej peb mus rau Soundplant software, kov ob peb lub electrodes ntawm Touchboard thiab koj yuav tsum pom LED lub teeb ci. Zoo !!
Thaum thawj qhov ua haujlwm, rov ua cov txheej txheem nrog Kov Pawg thib ob los ntawm kev rub tawm Soundplant_BCTB_2of2 mus rau Pawg Kov thib ob. Koj yuav tsum tau ua kom ntseeg tau tias koj xaiv lub rooj tsav xwm raug thiab chaw nres nkoj rau tus thib ob ib yam.
Kauj Ruam 6: Tso Cov Qauv Rau Hauv Soundplant
Okay ntawm no yog qhov lom zem! Peb yuav coj los npaj cov qauv mus rau hauv Soundplant software txhawm rau pib teeb tsa peb KEYMAP. Qhov KEYMAP no yog yam peb yuav thauj khoom kom ntseeg tau tias txhua qhov qauv raug thauj khoom txhua lub sijhawm peb qhib lub software.
Txij li thaum peb cov cai tau teeb tsa los ua haujlwm ntawm tsuas yog cov yuam sij tau txiav txim siab hauv tus lej KEY_MAP [12] tas li, peb yuav pib nrog tsab ntawv 'Q.'
Koj tuaj yeem yooj yim rub thiab xa cov qauv mus rau Soundplant, ncaj qha mus rau tus yuam sij uas koj xaiv. Txog qhov piv txwv no, peb tab tom siv 'Q' los pib.
Thaum koj rub tus qauv mus rau Q, koj yuav pom nws dhau los ua lub ntsej muag ci daj nyob ib puag ncig tus yuam sij. Qhov no yog qhov tseem ceeb uas yuav tsum tau ceeb toom vim tias peb yuav siv qee qhov kev teeb tsa rau txhua tus yuam sij yog li peb xav kom ntseeg tau tias peb muaj qhov raug ib qho tseem ceeb.
Nyob hauv thaj tsam 'KEYMODE' peb tab tom xaiv 'rov pib dua' hloov dua li 'txhawb nqa.' Tso qhov no rau hauv hom rov pib dua yuav rov pib ua cov qauv thiab tsuas yog ua si ib qho piv txwv ntawm cov qauv. Hauv Sustain hom, txhua qhov kev sib tsoo yuav ntxiv ib qho piv txwv ntawm cov qauv mus rau cov npe hauv qab ntawm sab xis ntawm lub qhov rais Soundplant. Kev teeb tsa qhov no kom rov pib dua yuav pab ua kom cov khoom thauj qis ntawm koj lub khoos phis tawj CPU.
Thaum koj tau teeb tsa koj tus qauv thawj zaug rau cov teeb tsa saum toj no, tsuas yog yaug thiab rov ua dua rau qhov seem ntawm koj 23 tus qauv!
Kauj Ruam 7: Txuag Koj KEYMAP Nrog Suab
Thaum koj tau npaj tag nrho koj cov qauv, koj yuav xav khaws lub 'keymap nrog suab'. Qhov no yog ntshuam uas koj tsis tsuas yog khaws cov keymap, tab sis koj khaws 'keymap nrog lub suab'. Qhov no yuav ua kom ntseeg tau tias txhua lub suab uas koj tau hais qhia tawm thaum koj qhib qhov tseem ceeb tom qab.
Saib rau tus hais lus me me nyob ib sab ntawm Txuag Icon (lub floppy disk rau peb cov neeg laus) thiab nyem rau nws.
Qhov no yuav ua rau koj lub npe nplaub tshev tom qab koj lub npe project. Xaiv koj lub npe thiab nyem 'Save Folder'
Thaum nws tau txais kev cawmdim, koj yuav pom daim nplaub tshev uas suav nrog qhov tseem ceeb THIAB cov qauv uas koj tau khaws cia.
Tam sim no thaum koj npaj tau qhib qhov kev kuaj no dua, tsuas yog ob npaug nyem rau.keymap cov ntaub ntawv INSIDE koj daim ntawv tshiab thiab nws yuav thauj cov keymap THIAB cov qauv!
Nrog koj zoo siab!