Cov txheej txheem:

Synth yooj yim - Axoloti maub los thiab Software Intro: 3 Kauj Ruam
Synth yooj yim - Axoloti maub los thiab Software Intro: 3 Kauj Ruam

Video: Synth yooj yim - Axoloti maub los thiab Software Intro: 3 Kauj Ruam

Video: Synth yooj yim - Axoloti maub los thiab Software Intro: 3 Kauj Ruam
Video: qhia kov piano hauv computer 2024, Kaum ib hlis
Anonim
Synth yooj yim - Axoloti maub los thiab Software Intro
Synth yooj yim - Axoloti maub los thiab Software Intro

Axoloti yog lub suab nrov ntau yam uas tuaj yeem ua haujlwm tau zoo ib yam li Arduino, tsuas yog nrog lub suab nrov ib puag ncig txhim kho ib puag ncig. Cov ntawv ua haujlwm thaj ua rau thaj tau muab tso rau ib zaug ua tiav thiab tom qab ntawd ua haujlwm tsis siv neeg ntawm lub rooj tsavxwm. Nws muaj ntau yam analog thiab digital I/O pins, txhawm rau txuas txhua yam koj kuj paub los ntawm Aduino. Tsis tas li ntawd nws muaj MIDI IN thiab OUT, USB ntsaws rau MIDI cov twj paj nruag lossis zoo sib xws, 3.5 lub suab tso suab thiab 6.35mm IN thiab OUT plugs.

Lub software tso cai rau koj los tsim txhua yam uas koj tuaj yeem xav hauv lub suab ntawm lub suab, tej zaum nws yog koj li tus neeg sib sau ua ke, ua ntu zus, tshuab ntaus, guitar FX, … koj lub npe. Tom qab tsim lub thaj hauv software, uas zoo ib yam li Cov Ntaub Ntawv Ntshiab, vvvv lossis MAX/MSP (aka nodebased) koj rub tawm thiab muaj koj tus kheej lub cuab yeej ywj pheej.

Cov lus qhia no yuav tsum qhia seb koj tuaj yeem tsim koj tus kheej cov cuab yeej khoos phis tawj yooj yim nrog cov nyees khawm thiab pob qhov rooj tom qab tsim koj thawj lub suab thiab ntsuas nws tam sim nrog cov tswv yim uas koj muaj. Tsis xav tau cov keyboard MIDI ntxiv lawm, txhua yam tuaj yeem yog koj cov tswv yim.

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse

Yam koj yuav tsum tau:

- pawg Axoloti

- ob daim ntawv acrylic lossis ntoo

- qee cov nyees khawm

- qee cov potentiometers

- txuas cov hlua thiab tus pin txhawm rau ntsaws rau ntawm lub rooj tsavxwm

- pcb prototyping board me me los ua kom lub zog faib tau yooj yim dua

- qee qhov ntsia hlau thiab txiv ntseej

- soldering hlau thiab ntsws ntsws

- ib tug multimeter

- USB cable kom pib nrog lub suab thaj

Kauj ruam 2: Kev tsim kho

Buildup
Buildup
Buildup
Buildup
Buildup
Buildup
Buildup
Buildup

Peb pib nrog npaj cov pob qhov rooj thiab cov nyees khawm raws li peb xav kom lawv muab tso rau. Feem ntau cov acrylic muaj qee qhov npog tiv thaiv, qhov twg koj tuaj yeem sau tau yooj yim. Yog li tom qab kos npe rau txoj haujlwm peb xyaum qhov. Tsis txhob hnov qab ntxiv lub qhov rau cov ntsia hlau nyob deb. Hauv kuv qhov xwm txheej kuv coj ib daim loj dua ntawm acrylic kom muaj peev xwm txuas ntxiv qhov haujlwm tom qab nrog lwm cov ntsuas. Zoo li nrog lwm yam microcontroller multiplexing tuaj yeem pab yog tias koj khiav tawm ntawm I/O pins.

Tom qab tso lub pob qhov taub potentiometer kuv sim lawv nrog pawg thawj coj saib ib zaug kom nco qab tias yuav xaim lawv li cas. Raws li pom ntawm daim duab nrog pcb cov nyees khawm tsuas xav tau ntxiv los ntawm qhov hluav taws xob qhov chaw, txij li lawv tus pin thib ob txuas nrog ib qho ntawm cov khoom siv digital kom kaw lub Circuit Court thiab muab lub teeb liab (debouncing lub teeb liab tau tham luv luv hauv cov kauj ruam tom ntej). Cov potentiometers tau txuas nrog ib qho ntawm cov pins sab nraud rau tib kab rau qhov muaj txiaj ntsig zoo thiab vim tias lawv tsis muaj dab tsi ntxiv tshaj qhov faib hluav taws xob lawv xav tau lwm tus pin sab nraud txuas nrog hauv av. Tus pin nruab nrab yuav muab rau peb lub teeb liab analog, qhov twg qhov kev taw qhia ntawm kev nce thiab txo cov teeb liab nrog lub pob qhov rooj yog nyob ntawm kev teeb tsa ntawm qhov ntxiv thiab rho tawm ntawm tus pin sab nraud. Ib yam dab tsi uas tuaj yeem sim yooj yim nrog lub ntsuas cua hauv ib feeb. Lub zog los ncaj qha los ntawm Axoloti pawg thawj coj, txij li I/O pins ntawm pawg thawj coj tau txwv rau 3.3V cov cim. Qhov tsis kam ntawm cov potentiometers yog qib thib ob, lawv tsuas yog faib qhov hluav taws xob uas lawv tau txais, yog li qhov ntau yuav zoo.

Txhawm rau txuas cov pob qhov rooj rau lub zog loj koj yuav tsum txiav lawv raws qhov siab. Cov kauj ruam tseem ceeb tom ntej yog nrhiav kom pom txoj haujlwm nruab nrab ntawm txhua tus poti kom muaj lub pob qhov rooj txuas nrog txoj cai. Siv lub ntsuas ntsuas, muab tso rau qhov ua haujlwm tiv thaiv ntawm poti, tig lub poti tag nrho hauv ob qho kev qhia thiab tom qab ntawd, tom qab txiav qhov siab tshaj plaws, tso lawv nyob ntawd.

Lub phaj acrylic thib ob yog qhov ua kom haum nrog qee qhov rau Axoloti txuas.

Tom qab muaj txhua txoj hlua txuas ua ke nrog cov pins (hauv kuv qhov teeb meem cov kab hluav taws xob yog grey thiab ntsuab) thiab txuas lawv mus rau Axoloti pins peb tuaj yeem nqa cov ntsia hlau ntev thiab tso txhua yam hauv txoj haujlwm. Xaiv qhov siab haum nrog cov txiv ntseej thiab nruj txhua yam ua ke.

Qhov teeb tsa tam sim no tseem yog modular. Koj tuaj yeem ntswj ntsia hlau sab saud thiab txuas cov xov txuas rau ib lub microcontroller uas koj xav tau. Thiab nrog tawm qee qhov chaw ntawm acrylic koj tuaj yeem ntxiv lwm cov cim rau yav tom ntej.

Kauj ruam 3: Software

Software
Software
Software
Software

Pib ntawm no txhawm rau rub tawm cov software thiab ua raws cov lus qhia rau koj lub operating system. Raws li tau piav qhia nyob ntawd koj yuav tsum ntsaws USB cable thiab lub mloog pob ntseg. Tom qab ntawd koj tuaj yeem qhib thawj thaj.

Kev ua haujlwm nyob rau hauv ib puag ncig software yog yooj yim zoo nkauj. Ob npaug nias rau hauv thaj chaw grey khoob yuav coj mus rau qhov browser, ntaus hauv lub node koj xav tau coj los ua ntej thiab lwm qhov ob npaug nias rau qhov chaw. Cov tswv yim thiab cov txiaj ntsig tau txuas nrog ntawm "cables" nrog luag thiab poob. Koj tuaj yeem nyeem cov npe los ntawm kuv lub screenshot lossis tsuas yog rub cov ntawv txuas hauv qab no. Thaum koj qhib thaj ua rau lwm lub qhov rai qhib, uas qhia koj qee cov ntaub ntawv xwm txheej thiab lub npov uas feem ntau twb tau xaiv rau "txuas". Thaum ib thaj ua tiav npaj koj xaiv lub thawv "Nyob". Lub thaj yog tom qab tau muab tso ua ke thiab muab tso rau hauv lub rooj tsavxwm. Thaum nyob hauv hom nyob koj tuaj yeem pom qhov ua ntawm koj cov nyees khawm los ntawm kev tso qee qhov "tso saib" (faib/) cov node lossis cuam tshuam nrog cov software software.

Koj tuaj yeem pom thawj qhov kev taw qhia ntawm no ib yam nkaus.

Kuv ntxiv ob thaj ua rau pom hauv cov duab. Rau ib qho lus nug ntxiv lub rooj sab laj tau pab tau zoo heev thiab hauv zej zog kuj tseem nquag heev.

Thawj thaj (testBoad.axp) yog qhov kev sim yooj yim nrog cov duab tso tawm thiab tsis muaj suab los saib seb cov nyees khawm thiab pob qhov rooj ua haujlwm li cas. Axoloti muaj cov neeg tawm sab hauv uas peb siv qhov kev xaiv "pulldown" kom tau txais lub teeb liab raug. Vim tias cov nyees khawm tau siv tshuab nrov heev peb yuav tsum tshaj tawm lub teeb liab. Muaj plethora ntawm Circuitry ua nws txoj hauv kev kho vajtse, tab sis qhov no nws tau ua tiav hauv software. Hauv thaj no lub khawm khawm cia koj xaiv lub sijhawm ua ntej qhov thawb thib ob tuaj yeem ua rau, hauv kuv cov ntaub ntawv nws yog 100ms.

Thaj thib ob (midi_test.axp) yog ib qho piv txwv yuav siv lub pob li cas txhawm rau sau cov ntawv midi thiab xaiv lub suab/ceeb toom nrog txoj haujlwm potentiometer.

Muaj kev lom zem tshawb txog lub ntiaj teb kev sib xyaw suab!

Pom zoo: