Cov txheej txheem:

Tswj Cubase Nrog Arduino Raws MIDI: 4 Cov Kauj Ruam
Tswj Cubase Nrog Arduino Raws MIDI: 4 Cov Kauj Ruam

Video: Tswj Cubase Nrog Arduino Raws MIDI: 4 Cov Kauj Ruam

Video: Tswj Cubase Nrog Arduino Raws MIDI: 4 Cov Kauj Ruam
Video: Lub Neej Ua Zog- Karaoke - by Hanas Xyooj - Nkauj Ntseeg Txhawb Zog 2024, Kaum ib hlis
Anonim
Tswj Cubase Nrog Arduino Raws MIDI
Tswj Cubase Nrog Arduino Raws MIDI

Ib tus phooj ywg ntawm kuv xav tswj Cubase, nws lub kaw suab kaw suab, nrog lub laub khawm kom nws tuaj yeem nres thiab pib kaw suab nyob deb yam tsis tas yuav hla mus rau lub khoos phis tawj thiab ntaus lub keyboard. Tej zaum koj tuaj yeem ua qhov no hauv lwm cov software kaw, peb tsuas yog siv Cubase.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau

Feem ntau qhib lub laub khawm (ib qho rau txhua qhov kev ua koj xav ua kom zoo li cov no) 10K-Ohm resistor (ib qho rau txhua lub khawm) Arduino nrog lub zog zoo 5V. Kuv yuav tsum tau siv hluav taws xob sab nraud (Kuv siv lub pob txha liab qab khiav Diecimila) tau txais nws ntawm no Tsis muaj lub khob cij tsis muaj qab hau (zoo li qhov no) MIDI nkaus (koj tsuas xav tau ib qho, vim txhua yam koj ua yog xa ib yam li dis) 220- Ohm resistor (rau MIDI nkaus) Khoos phis tawj siv Cubase lossis qee qhov kaw suab softwareMIDI Cable (ntawm no yog 20'er) Koj yuav xav tau USB rau MIDI cov tswv yim, kuv tau siv thiab nyiam, qhov no, thiab qhov no

Kauj ruam 2: Teeb Kho Vajtse

Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb
Kho vajtse teeb

Schematic thiab daim duab txuas nrog. NCO TSEG: cov txheej txheem yog ua haujlwm ntawm ITP Kev Txheeb Xyuas Lub Cev

Yeej nws yog 5V hloov pauv, hloov mus rau tus tswj tus pin, 10K resistor los ntawm kev tswj tus pin rau GND Rau MIDI nkaus nws tus pin 5 rau tus lej txuas, tus pin 4 rau 5V los ntawm 220 tus tiv thaiv Load cov duab kos hauv qab no ntawm koj Arduino: {{{ /* Hloov Arduino rau MIDI maub los siv ntau lub tswv yim digital * raws li koj xav tau. * * Cov duab kos no tau teeb tsa xa 2 MIDI sau ntawv ntawm MIDI channel 5, * tab sis nws tuaj yeem rov kho tau yooj yim rau lwm cov ntawv thiab raws * * Tsim 3 Kaum Ib Hlis 2008 * Los ntawm Hyeki Min * * Hloov Kho 14 Tsib Hlis 2009 * Los ntawm Petyr Stretz * Hloov pauv cov laj thawj kom tus pin qis thiab siab ua * sau ua si zoo li cov keyboard, tshem tawm cov tsis xav tau txuas, hloov pauv * tso tawm MIDI channel rau 5 ** Hloov Kho 15 Plaub Hlis 2014 * Los ntawm Petyr Stretz * Qhia tus neeg siv Andrew. Wilson.7 tshaj tawm BYTE yog tsis siv * ntev dua hauv Arduino 1.0 lossis tom qab. Tshem nws los ntawm noteOn ()*/

// txhais cov pins peb siv, MIDI chaw nres nkoj ib txwm nyob ntawm Arduino tus pin 1 (TX) int switchPin1 = 2; int switchPin2 = 3;

// general midi notes char note1 = 60; // Middle C char note2 = 62; // D

// Variables int switchState1 = LOW; int switchState2 = LOW; int currentSwitchState1 = LOW; int currentSwitchState2 = LOW;

teeb tsa tsis muaj dab tsi () {// teeb tsa lub xeev ntawm I/O pins: pinMode (switchPin1, INPUT); pinMode (switchPin2, INPUT);

// teeb MIDI baud tus nqi: Serial.begin (31250); } void loop () {// switchPin1 currentSwitchState1 = digitalRead (switchPin1); yog (currentSwitchState1 == HIGH && switchState1 == LOW) // thawb // Nco tseg ntawm channel 5 (0x94), qee qhov nqi sau cia (nco), nruab nrab nrawm (0x45): noteOn (0x94, note1, 0x45); yog (currentSwitchState1 == LOW && switchState1 == HIGH) // tso tawm // Nco tseg ntawm channel 5 (0x94), qee qhov nqi sau cia (ceeb toom), nrawm nrawm (0x00): noteOn (0x94, note1, 0x00); switchState1 = currentSwitchState1; // switchPin2 currentSwitchState2 = digitalRead (switchPin2); yog (currentSwitchState2 == HIGH && switchState2 == LOW) // thawb // Nco tseg ntawm channel 5 (0x94), qee qhov nqi sau cia (ceeb toom), nruab nrab qhov nrawm (0x45): noteOn (0x94, note2, 0x45); yog (currentSwitchState2 == LOW && switchState2 == HIGH) // tso tawm // Nco tseg ntawm channel 5 (0x94), qee qhov nqi sau cia (ceeb toom), nrawm nrawm (0x00): noteOn (0x94, note2, 0x00); switchState2 = currentSwitchState2; } // Xa MIDI ceeb toom-rau/tawm lus. void noteOn (char cmd, char data1, char data2) {Serial.print (cmd); Serial.print (data1); Serial.print (data2); }}}}

Kauj ruam 3: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software
Teeb Software

Cubase tuaj yeem teeb tsa rau cov chaw taws teeb uas tuaj yeem hloov MIDI cov ntawv sau rau kev ua. Cov screenshots yog los ntawm Cubase 3, txawm hais tias lawv yuav tsum tsis txawv qhov sib txawv hauv lwm qhov. Txheeb xyuas koj phau ntawv qhia rau lwm cov software kaw. Under the Devices menu choose "Device Setup." Thaum lub cuab yeej teeb tsa lub qhov muag tshwm, Nyem rau lub cim ntxiv rau ntxiv kev tswj hwm thiab xaiv "Generic Remote" NCO TSEG: nyob ntawm qhov version, koj yuav xav tau xaiv cov chaw taws teeb ntawm sab xis thiab nyem thiab xub kom ntxiv nws mus rau sab laug. Tom qab nyem rau ntawm "Generic Remote" hauv Cov Khoom Ntaus Npe lub qhov rai yuav tsum zoo li lub vijtsam thib peb ntes hauv qab. feem ntau yuav txawv dua li kuv, thiab nyem rau thawj "Fader 1" hauv lub npov sab saum toj. Koj paub tseeb tias koj lub chaw taws teeb tau txuas thiab ua haujlwm, nyem thiab tuav lub pob "Kawm" thiab nias ib qho ntawm cov nyees khawm nyob deb ces cia mus ntawm "Kawm." Koj yuav tsum pom MIDI channel thiab Chaw Nyob hloov pauv kom haum rau kuv, tshwj tsis yog koj hloov txoj cai. Ua tib yam rau Fader 2 thiab ntxiv rau txawm li cas los xij ntau lub khawm koj xav tau. Hloov Tus Nqi Max rau "1," Kuv tsis tau ua qhov ntawd ua ntej yuav tshuaj ntsuam hauv lub thawv qis koj teeb qhov kev tswj hwm yuav ua li cas. Muaj ntau qhov kev xaiv, tab sis peb tsuas yog xav tau Cov Ntaub Ntawv thiab Nres. Xaiv "Hais kom ua" tawm ntawm Cov Ntawv Tso Npe, "Thauj" tawm ntawm Channel/Qeb cov npe poob thiab tom qab ntawd koj qhov kev nqis tes ua los ntawm Tus Nqi/Nqis nqis. Tsuas yog nyem rau hauv lub npov koj xav hloov yuav tsum qhib cov npe poob. Tam sim no koj yuav tsum tau teeb tsa tag nrho. Xaiv lub npe hloov pauv mus rau npe tswj hwm qee yam pom tseeb, zoo li TRANSPORT, thiab ntaus thov, tom qab ntawv OK. Kev kawg, nyem rau lub tshuab raj ntawv qhia zaub mov thiab xaiv Generic Remote. Nco ntsoov tias koj qhov kev tswj hwm raug xaiv thiab koj yuav tsum tau teeb tsa los siv nws. Muaj qhov rov pib dua Cov cuab yeej khawm nyob ib sab ntawm + thiab -, thaum kuv ntaus tias txhua yam ua haujlwm.

Kauj ruam 4: Cov ntaub ntawv

Phau ntawv sau keeb kwm
Phau ntawv sau keeb kwm

Vim tias kuv ntseeg hauv kev muab credit qhov credit yuav tsum: https://itp.nyu.edu/physcomp/Tutorials/MusicalArduino - Arduino rau MIDI ceeb toom outhttps://www.indiana.edu/~emusic/etext/MIDI/chapter3_MIDI4. shtml - MIDI ceeb toom infohttps://www.dancetech.com/article.cfm? threadid = 172 - Configuring Cubase

Pom zoo: