Cov txheej txheem:

Raspberry Pi Stompbox Synth Module: 6 Cov Kauj Ruam (nrog Duab)
Raspberry Pi Stompbox Synth Module: 6 Cov Kauj Ruam (nrog Duab)

Video: Raspberry Pi Stompbox Synth Module: 6 Cov Kauj Ruam (nrog Duab)

Video: Raspberry Pi Stompbox Synth Module: 6 Cov Kauj Ruam (nrog Duab)
Video: How to use a Raspberry PI as a synthesizer 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Stompbox Synth Module
Raspberry Pi Stompbox Synth Module
Raspberry Pi Stompbox Synth Module
Raspberry Pi Stompbox Synth Module

Lub hom phiaj ntawm txoj haujlwm no yog txhawm rau muab lub suab Fluidynth-based suab tso rau hauv lub qhov ncauj. Cov txheej txheem ua suab nrov "lub suab suab" hauv qhov no txhais tau tias yog lub cuab yeej siv hauv MIDI cov lus (piv txwv li sau tseg tus nqi, ntim, suab khoov, thiab lwm yam) thiab ua ke cov suab paj nruag tiag tiag. Muab qhov no ua ke nrog MIDI maub los - uas yog legion, pheej yig, thiab feem ntau txias heev (zoo li keytars!) - thiab koj muaj cov khoom sib xyaw uas koj tuaj yeem hloov kho thiab hloov kho tsis paub kawg, thiab tsim hauv ib txoj hauv kev uas haum rau koj li kev ua si.

Kev nthuav dav dav ntawm txoj haujlwm no yog qhov uas peb siv lub khoos phis tawj me me linux khoos phis tawj (Raspberry Pi 3 qhov no), txuas tus cim LCD, ob peb lub khawm, thiab USB lub suab (txij li Pi lub suab onboard tsis zoo heev)), thiab cram txhua yam rau hauv Hammond 1590bb stompbox (zoo li cov uas siv rau cov teebmeem guitar) nrog qee qhov txuas sab nrauv rau USB MIDI, lub zog, thiab lub suab tawm. Tom qab ntawd peb teeb tsa lub software sab hauv kom khiav qhov haujlwm thaum pib uas ua haujlwm FluidSynth (zoo heev, muaj ntau lub platform, pub dawb software sib txuas), tswj lub LCD, thiab cia peb hloov thaj ua rau thaj thiab teeb tsa siv lub pob nyem.

Kuv yuav tsis nkag mus rau ib feeb-ib-theem kev nthuav dav ntawm qhov kev tsim no (muaj ntau ntau ntawm hey-i-made-a-cool-raspberry-pi-case tutorials tawm muaj), tab sis yuav hloov sim tsom rau vim li cas kuv thiaj ua ntau yam kev xaiv hauv kev tsim kho thiab tsim qauv raws li kuv tau mus. Txoj hauv kev no koj tuaj yeem cia siab hloov kho kom haum rau koj tus kheej lub hom phiaj yam tsis tau nyam ua tej yam uas tom qab tig mus tsis ua haujlwm.

Hloov kho tshiab (Tsib Hlis 2020): Thaum qhov kev qhia no tseem yog qhov chaw zoo rau pib rau txoj haujlwm zoo li no, Kuv tau txhim kho ntau yam ntawm ob sab kho vajtse thiab software. Qhov software tshiab tshaj plaws yog FluidPatcher, muaj nyob ntawm GitHub - txheeb xyuas wiki kom paub ntau ntxiv txog kev teeb tsa yam Raspberry Pi. Txheeb tawm kuv lub xaib Geek Funk Labs rau xov xwm txuas ntxiv thiab hloov tshiab ntawm SquishBox!

Khoom siv

Nov yog cov npe luv ntawm (thiab piav qhia rau) qhov tseem ceeb tshaj plaws:

  • Raspberry Pi 3 Khoos phis tawj - Ib lub rooj tsav xwm linux khoos phis tawj tuaj yeem ua haujlwm, tab sis Pi 3 muaj lub zog ua haujlwm txaus los ua haujlwm Fluidsynth yam tsis muaj latency, thiab lub cim xeeb txaus los thauj cov suab loj. Qhov tsis zoo yog nws muaj lub suab tsis zoo hauv lub suab, yog li koj xav tau USB lub cim suab. CHIP yog lwm txoj hauv kev kuv tab tom tshawb nrhiav (hneev taw me dua, lub suab zoo dua, tab sis tsis nco/processor)
  • Hammond 1590BB enclosure - Kuv hais kom yuav ib qho uas tau ua ntej ua hmoov yog tias koj xav tau xim, tshwj tsis yog pleev xim rau lub thawv ntawv yog qee yam uas koj nkag mus. Kuv tau saib ntau cov ntawv xov xwm tab sis kuv xav tias kuv tsis muaj lub siab ntev lossis hom xim zoo, vim tias tom qab ob zaug sim kuv cov txiaj ntsig tau zoo nkauj heev.
  • USB Suab Card - Koj tuaj yeem pom qhov tsim nyog ib qho ntawm cov no zoo nkauj pheej yig. Raws li qhov kev qhia Adafruit zoo nkauj (ib ntawm ntau qhov), koj yuav tsum lo nrog ib qho uas siv CM109 chipset rau siab tshaj plaws sib xws.
  • Cim LCD - muaj ntau qhov chaw sib txawv kom tau lawv, tab sis pinouts zoo li yog tus qauv zoo nkauj. Nco ntsoov tias koj tau txais lub teeb pom kev zoo yog li koj tuaj yeem pom koj li presets thaum ua si hauv cov pa luam yeeb.
  • Momentary stompswitches (2) - Nyuaj me ntsis kom tau, tab sis kuv tau txais ib ntus es tsis txhob hloov pauv yog li kuv tuaj yeem muaj ntau yam ntxiv. Kuv tuaj yeem sim hloov pauv hauv software yog tias kuv xav tau tus cwj pwm ntawd, tab sis txoj hauv kev no kuv kuj tseem tuaj yeem muaj cov haujlwm sib txawv rau kais luv, nias ntev, thiab lwm yam.
  • Adafruit Perma -Proto Hat rau Pi - Qhov no tau pab kuv kom tau txais LCD thiab lwm yam khoom txuas nrog Pi qhov chaw nthuav dav yam tsis tau siv ntau qhov chaw ntxiv. Yog tias kuv tau sim siv perfboard tsis tu ncua nws yuav tsum tau lo tawm ntawm ob sab ntawm Pi rau kuv kom txuas rau txhua qhov tsim nyog GPIO pins. Qhov ob-tog plating thiab sib dhos qhov sib txuas tau muaj txiaj ntsig zoo ib yam. Hauv qhov pom ntawm txhua qhov no nws yog qhov kev xaiv pheej yig tshaj plaws.
  • USB txuas-1 B-hom poj niam rau lub zog, thiab ob qho ntawm A-hom txiv neej thiab poj niam uas ua rau qee qhov yuag, hloov tau yooj yim txuas rau kev sib txuas sab hauv.
  • 1/4 "jacks audio - Kuv siv ib lub tso suab thiab ib lub suab. Txoj kev ntawd lub tso suab tuaj yeem yog lub mloog pob ntseg/mono nkaus, lossis tsuas yog nqa lub teeb liab sab laug yog tias lwm lub jack txuas nrog.

Kauj Ruam 1: Sab Hauv Hluav Taws Xob

Sab Hauv Hluav Taws Xob
Sab Hauv Hluav Taws Xob
Sab Hauv Hluav Taws Xob
Sab Hauv Hluav Taws Xob
Sab Hauv Hluav Taws Xob
Sab Hauv Hluav Taws Xob

Peb yuav txuas lub LCD thiab nws cov khoom sib txuas thiab lub pob khawm mus rau Pi Hat. Tsis tas li, peb yuav ntxiv USB-B thiab USB-A txuas txuas lub zog thiab lub cuab yeej MIDI, feem. Peb nqa USB-A chaw nres nkoj hla vim tias peb xav tau siv ib qho ntawm Pi's USB chaw nres nkoj los txuas rau daim npav suab, uas peb xav kom muaj hauv lub thawv ntawv, yog li peb tsis tuaj yeem muaj USB chaw nres nkoj yaug nrog ib sab ntawm lub thawv. Kuv siv USB-B chaw nres nkoj rau lub zog vim kuv xav tias nws tuaj yeem raug txim ntau dua li Pi tus micro-USB lub zog txuas, ntxiv rau kuv tsis tuaj yeem nrhiav qhov qhia tau zoo qhov twg lub txuas tuaj yeem nyob ib sab ntawm lub npov ib sab.

Koj yuav tsum tau siv rab riam los txiav cov kab nruab nrab ntawm lub qhov uas koj yuav muab tshuaj txhuam rau hauv tus pin rau USB nkaus. Tsuas yog ceev faj kom tsis txhob txiav ib qho ntawm cov cim hauv sab hauv lub rooj sib txuas txuas rau lwm tus pin - lossis yog tias koj ua yuam kev (zoo li kuv) rov txuas lawv siv cov hlua hlau. USB-B jack's Vcc thiab GND pins mus rau 5V thiab GND ntawm Pi qhov chaw nres nkoj nthuav dav, feem. Txoj hauv kev no koj tuaj yeem siv lub zog ntawm koj lub plab nrog lub xov tooj them nyiaj (piv txwv tias nws muaj lub zog txaus - 700mA zoo li ua haujlwm rau kuv, tab sis koj yuav xav tau ntau ntxiv kom ntseeg tau tias USB chaw nres nkoj muaj kua txiv txaus los txhawb koj lub zog) thiab USB A -B cable.

Kuv pom tias qhov ntev ntawm txoj hlua hlua ua haujlwm tau zoo heev rau kev txuas cov khoom nrog ntau tus pin yam tsis muaj xov hlau ntau dhau. Kuv tau ua qhov no ntau dua li muab tus txiv neej lub taub hau tso rau hauv LCD thiab tom qab ntawd muab nws tso rau hauv lub kaus mom vim kuv xav tias kuv xav tau qee qhov kev ywj pheej los tso lub LCD yog li kuv tuaj yeem tau txais nws qhov chaw zoo. Lub LCD yuav tsum tuaj nrog lub zog ntsuas uas koj siv los kho qhov sib piv - xyuas kom tseeb tias koj muab qhov no tso rau hauv qhov chaw uas nws yuav tsis npog los ntawm LCD, yog li koj tuaj yeem ua lub qhov nyob hauv lub thawv kom mus txog nws thiab kho qhov sib txawv ib zaug. txhua yam tau sib sau ua ke.

Tham nrog schematic kom paub meej txog dab tsi tau txuas nrog qhov twg. Daim ntawv ceeb toom tias lub laub khawm txuas nrog 3.3V - tsis yog 5V! GPIO pins tsuas yog ntsuas rau 3.3V - 5V yuav ua rau koj lub CPU puas tsuaj. USB-A nkaus tau txuas nrog lwm txoj kab ntawm kab xov kab, uas koj tuaj yeem txuas rau lub USB ntsaws uas koj yuav txuas rau ib qho ntawm Pi's USB chaw nres nkoj rau koj li MIDI maub los. Txiav ib qho hlau ntxiv ntawm lub ntsaws kom nws tawm tsawg dua, thiab siv cov kua nplaum kub rau nyem nyem - nws tsis tas yuav zoo nkauj vim nws yuav muab zais rau hauv lub thawv.

Kauj Ruam 2: Cov Lus Tso Tawm Suab

Lub Suab Tso Tawm
Lub Suab Tso Tawm
Lub Suab Tso Tawm
Lub Suab Tso Tawm
Lub Suab Tso Tawm
Lub Suab Tso Tawm

Tsis muaj teeb meem me npaum li cas daim npav USB koj pom, nws lossis nws lub ntsaws yuav zoo li nyob deb dhau ntawm Pi's USB chaw nres nkoj rau txhua yam kom haum rau hauv lub thawv. Yog li, sib txuas ua ke lwm lub USB txuas luv tawm ntawm qee cov xov txuas, USB ntsaws, thiab kua nplaum kub raws li qhia hauv daim duab saum toj no. Kuv daim npav suab tseem tseem me me kom haum rau hauv lub thawv nrog txhua yam ntxiv, yog li kuv muab cov yas tshem tawm thiab qhwv nws hauv qee cov kab xev kaw kom nws tsis txhob tawm tsam yam.

Txhawm rau kom tau txais lub suab los ntawm daim npav suab mus rau koj 1/4 jacks, txiav qhov kawg ntawm 3.5mm lub mloog pob ntseg lossis AUX cable. Nco ntsoov tias nws muaj 3 qhov txuas - qhov taub, ntiv nplhaib, thiab lub tes tsho (TRS), tsis zoo li 2 lossis 4 Lub tes tsho yuav tsum yog hauv av, cov lus qhia feem ntau yog txoj cai, thiab lub nplhaib (nruab nrab txuas) feem ntau yog sab laug. nrog nws, tab sis koj tuaj yeem tau txais qee qhov ntau yam ntxiv nrog qhov me me ntawm kev txuas ntxiv. Nrhiav tus TS jack uas muaj tus thib peb sib tham ib ntus, raws li qhia pom hauv kab duab saum toj no. Kev ntsaws ntsaws ua rau qhov kev sib tiv no, yog li koj tuaj yeem cia siab qhia los ntawm daim duab kab ntawv sab laug yuav mus rau TS nkaus yog tias ntsaws ntsaws, thiab rau lub nplhaib ntawm TRS nkaus yog tias tsis ntsaws. Hauv txoj kev no koj tuaj yeem ntsaws lub mloog pob ntseg rau hauv lub tso suab tso suab, ib txoj kab hluav taws xob mono rau hauv lub tso suab tso suab rau ua ke ua ke sab xis/sab laug (mono) teeb liab, lossis txuas rau hauv txhua lub jack rau cais sab xis thiab sab laug (tso suab) tso tawm.

Kuv txuas tus pin hauv av ntawm lub jacks mus rau ntawm lub xov tooj los ntawm daim npav suab, yog li txhua yam hauv lub thawv sib koom ib yam hauv av thiab kuv zam qhov tsis zoo ntawm lub suab hauv av. Nyob ntawm seb koj nyob nraum ntsaws rau hauv, txawm li cas los xij, qhov no yuav muaj qhov cuam tshuam tsis zoo - yog li koj yuav xav suav nrog qhov hloov pauv kom tso cai rau koj txuas lossis "nqa" hauv av ntawm 1/4 "jacks.

Kauj Ruam 3: Npaj Txoj Kev Ruaj Ntseg

Npaj Cov Ntaub Ntawv
Npaj Cov Ntaub Ntawv
Npaj Cov Ntaub Ntawv
Npaj Cov Ntaub Ntawv
Npaj Cov Ntaub Ntawv
Npaj Cov Ntaub Ntawv

Cov kauj ruam no suav nrog txiav qhov hauv lub npov rau lub vijtsam, khawm, txuas, thiab lwm yam.

Pib los ntawm kev tso tag nrho cov khoom siv hauv lub thawv ntawv kom ntseeg tau tias txhua yam haum thiab tau ua raws txoj hauv kev. Tom qab ntawd, ua tib zoo ntsuas thiab kos npe qhov uas koj yuav ua qhov. Thaum txiav cov qhov puag ncig, Kuv pom zoo kom pib nrog me ntsis thiab ua haujlwm txog qhov loj uas koj xav tau - nws yooj yim dua rau nruab nrab lub qhov thiab tsis zoo li koj cov laum yuav jam. Plaub lub qhov tuaj yeem txiav los ntawm kev khawb qhov nyob rau ntawm cov ces kaum sib txawv ntawm qhov xav tau qhib, tom qab ntawd txiav nrog tus jigsaw mus rau lwm ob lub ces kaum. Qhov tuab ntawm txhuas tau txiav zoo xwb nrog lub ntsej muag ntev li koj maj mam mus. Ib daim ntawv square yog qhov muaj txiaj ntsig zoo rau kev tawm ntawm cov ces kaum ntawm qhov qhib. Ua qhov qhib rau USB ntsaws me ntsis ua siab ntev yog tias koj muaj cov kab mob rog.

Ob-theem epoxy (zoo li Gorilla Glue hauv daim duab) ua haujlwm tau zoo txhawm rau txhawm rau sawv ntsug rau lub kaus mom rau cov hlau thaiv. Khawb qhov saum npoo ntawm lub thawv ntawv thiab hauv qab ntawm qhov sawv ntsug me ntsis nrog cov ntaub plaub plaub lossis cov ntsia hlau kom cov epoxy tuaj yeem tuav tau zoo dua. Kuv pom zoo kom txuas koj qhov kev tsis pom kev mus rau Pi lub kaus mom ua ntej gluing lawv kom koj paub tias lawv tau teeb tsa kom raug - tsis muaj ntau chav qig ntawm no. Kuv tsuas yog siv peb qhov kev sawv ntsug vim tias kuv lub LCD tau nyob ntawm txoj kev thib plaub. Sib tov ob qhov sib xyaw ntawm epoxy, muab qee yam tso rau ntawm qhov sawv ntsug thiab kaw lawv rau hauv qhov chaw. Tsis txhob qoj ib ce lossis hloov chaw tom qab ntau dua 10-15 vib nas this, lossis cov nyiaj yuav tawg. Muab nws 24 teev los teeb tsa kom koj tuaj yeem ua haujlwm txuas ntxiv. Nws yuav siv ob peb hnub los kho kom zoo, yog li tsis txhob nyuab siab rau daim ntawv cog lus yam tsis tsim nyog.

Tshwj tsis yog tias koj xav ua lwm yam haujlwm nyiam ua los ntawm kev pleev xim rau hauv lub thawv ntawv, Kuv hais kom tawm ntawm cov txhuas tsis muaj dab tsi (tsis zoo saib tiag tiag) lossis yuav lub tha xim pleev xim ua ntej. Xim tsis xav kom sib txuas rau hlau. Yog tias koj xav sim nws, xuab zeb txhua qhov chaw koj xav kom pleev xim, siv lub ntsej muag zoo lub cev pib pleev xim ua ntej, siv ob peb lub tsho xim uas koj xav tau, tom qab ntawd cia nws qhuav kom ntev li ntev tau. Tiag tiag - cov neeg vwm ntawm cov ntawv xov xwm hais qhia yam xws li tawm hauv lub hnub ncaj qha rau peb lub hlis, lossis hauv lub qhov cub ci toaster teeb qis rau ib lub lim tiam. Tom qab txhuam cov crinkled, tev tawm tseem tshuav ntawm kuv thawj txoj haujlwm pleev xim, kuv qhov kev sim zaum thib ob tseem tau txais cov nplais thiab cov hnab los ntawm yam khoom xws li cwjmem hauv kuv lub hnab gig, thiab qhov ua tiav tuaj yeem dented nrog cov rau tes. Kuv txiav txim siab muab rau hauv thiab mus rau punk style, siv cov cim dawb tawm rau tus ntawv.

Kauj ruam 4: Teeb Software

Teeb Software
Teeb Software
Teeb Software
Teeb Software

Ua ntej koj muab txhua yam tso rau hauv lub qhov ncauj thiab ntsia nws kom nruj, koj yuav tsum teeb tsa software ntawm Raspberry Pi. Kuv hais qhia pib nrog kev teeb tsa tshiab ntawm Raspbian OS, yog li tau txais daim ntawv theej tsis ntev los no los ntawm Raspberry Pi Foundation qhov chaw thiab ua raws cov lus qhia muaj los ua duab rau SD daim npav. Lob cov keyboard thiab tshuaj ntsuam lossis siv kab txuas txuas txhawm rau nkag mus rau koj tus Pi thawj zaug, thiab mus rau kab hais kom ua. Txhawm rau kom ntseeg tau tias koj muaj cov software tshiab tshaj plaws thiab kho vajtse hloov tshiab, nkag mus

sudo apt-tau hloov tshiab & sudo apt-tau hloov tshiab

sudo rpi-hloov tshiab

Tom ntej no, koj xav kom ntseeg tau tias koj tuaj yeem siv wifi rau ssh rau Pi thiab hloov kho ib zaug nws tau khawm hauv lub thawv. Ua ntej, qhib rau ssh server los ntawm kev ntaus ntawv

sudo raspi-teeb tsa

thiab mus rau "Kev xaiv cuam tshuam" thiab ua kom ssh server. Tam sim no, ntxiv wireless network rau pi los ntawm kev kho cov ntaub ntawv wpa_supplicant.conf:

sudo vi /etc/wpa_supplicant/wpa_supplicant.conf

thiab ntxiv cov kab hauv qab no thaum kawg:

network = {

ssid = "koj-network" psk = "koj-tus password"}

Hloov koj-network thiab koj-tus lej zais saum toj no nrog qhov tseem ceeb rau txhua lub network koj xav kom Pi txuas nrog los ntawm lub neej ntawd-feem ntau yuav yog koj lub router wifi hauv tsev, lossis tej zaum qhov hotspot ntawm koj lub xov tooj lossis lub laptop khiav hauv hom nkag. Lwm txoj hauv kev txuas rau koj tus Pi yog teeb tsa nws ua lub wifi nkag mus, yog li koj tuaj yeem txuas rau nws txawm koj nyob qhov twg los xij. Lub interface kuv tau sau hauv qab no tseem tso cai rau koj ua ke lwm lub bluetooth ntaus ntawv nrog Pi, tom qab uas koj tuaj yeem txuas rau nws siv serial-dhau-bluetooth.

Txhawm rau nruab FluidSynth, ntaus ntawv

sudo apt-tau nruab fluidsynth

Cov ntaub ntawv txuas nrog rau cov theem no muab kev sib cuam tshuam ntawm cov tswj lub plab thiab FluidSynth, thiab yuav tsum tau theej rau hauv /home /pi directory. Nov yog cov lus piav qhia luv luv ntawm txhua daim ntawv ua:

  • squishbox.py - Tsab ntawv nab nab uas pib thiab sib tham nrog ib qho piv txwv ntawm FluidSynth, nyeem cov lus nkag los ntawm lub khawm stompbox, thiab sau cov ntaub ntawv mus rau LCD
  • config_squishbox.yaml - Cov ntaub ntawv teeb tsa hauv (feem ntau) tib neeg -nyeem YAML hom ntawv uas khaws cov chaw thiab cov ntaub ntawv thaj rau squishbox program
  • fluidsynth.py - Cov ntaub qhwv nab nab uas muab kev khi rau C cov haujlwm hauv FluidSynth lub tsev qiv ntawv, nrog ntau qhov kev khi ntxiv ntxiv los ntawm kuv kom nkag tau ntau dua ntawm FluidSynth kev ua haujlwm
  • ModWaves.sf2 - Lub suab me me me kuv tau muab los qhia kev siv thiab lub zog ntawm cov hloov pauv hauv hom Soundfont

Muaj tus nab npawb tsab ntawv teeb tsa txheej txheem FluidSynth thiab tuav txhua lub pob/LCD khoom ua haujlwm tau zoo heev - MIDI cov lus ncaj qha mus rau FluidSynth thiab tsab ntawv tsuas yog cuam tshuam nrog nws thaum nws xav tau.

Python tsab ntawv xav tau ob peb lub tsev qiv ntawv sej uas tsis tau teeb tsa los ntawm lub neej ntawd. Koj tuaj yeem nruab lawv ncaj qha los ntawm Python Package Index siv cov cuab yeej siv tau yooj yim:

sudo pip nruab RPLCD pyyaml

Thaum kawg, koj xav kom Pi khiav cov ntawv nab nab ntawm khau raj. Txhawm rau ua qhov no tshwm sim, kho cov ntaub ntawv rc.local:

sudo vi /etc/rc.local

Ntxig cov kab hauv qab no ua ntej qhov kawg 'tawm 0' kab hauv cov ntawv:

nab hab sej /home/pi/squishbox.py &

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Ua ntej muab txhua daim rau hauv lub thawv, nws yog lub tswv yim zoo heev txhawm rau ntsaws txhua yam thiab xyuas kom lub software ua haujlwm, raws li tau qhia hauv cov duab saum toj no. Cov duab 3-6 qhia tag nrho cov ntu ib leeg thiab zuj zus li cas lawv haum rau hauv kuv lub thawv. Lub LCD tau tuav nyob rau hauv qhov chaw los ntawm cov xov hlau nias tawm tsam nws, tab sis koj tuaj yeem siv qee cov kua nplaum kub lossis ntxiv qee qhov ntsia hlau ntxiv yog tias koj tsis nyiam qhov ntawd. Daim kab xev kab xev kab xev ntawm lub npov lub hau yog ua kom Pi los ntawm luv luv tiv thaiv cov hlau.

Koj yuav tsum tau sim thiab teeb tsa dua kom tau txais yam khoom haum. Snug zoo - qhov tsawg dua jiggle ncig hauv lub thawv, zoo dua. Tshav kub tsis zoo li yog teeb meem, thiab kuv tsis tau muaj teeb meem nrog teeb liab wifi raug thaiv los ntawm lub thawv. Tsis yog daim duab yog qee cov nplaum roj hmab taw (koj tuaj yeem pom lawv ntawm lub khw muag khoom kho vajtse) nyob hauv qab ntawm lub thawv kom nws tsis txhob swb ib puag ncig thaum koj tab tom muaj kev sib tsoo.

Saib rau qhov tsis pom kev tsoo/squishing/khoov thaum cov khoom sib dhos ua ke. Ib yam los tshuaj xyuas yog tias muaj qhov chaw txaus rau 1/4 jacks thaum txuas cov xov hluav taws xob - cov lus qhia tawm deb me ntsis dua li cov neeg tiv toj. ntawm lub npov thiab daim di ncauj ntawm lub hau nyem rau ntawm qhov kawg ntawm daim npav SD thiab kaw nws - Kuv yuav tsum tau ua ib qho thais hauv daim di ncauj yog li qhov no yuav tsis tshwm sim.

Kauj Ruam 6: Siv

Image
Image
Pab
Pab
Pab
Pab

Lub suab suab kuv tau piav qhia hauv cov kauj ruam no thiab khiav cov software muab saum toj no zoo nkauj siv tau thiab nthuav tawm tau ntawm lub npov, tab sis ntau qhov kev hloov kho/hloov pauv tau. Kuv yuav piav qhia luv luv txog qhov cuam tshuam ntawm no - Kuv npaj yuav hloov kho tas li hauv github chaw cia khoom, qhov twg kuv yuav cia siab tias yuav hloov kho wiki tshiab ib yam. Thaum kawg, Kuv yuav tham txog yuav ua li cas koj tuaj yeem hloov kho qhov chaw, ntxiv cov suab tshiab, thiab ua rau koj tus kheej hloov kho.

Txhawm rau pib, ntsaws USB MIDI maub los rau hauv lub thawv USB-A nkaus, lub zog 5V rau hauv USB-B nkaus, thiab txuas lub mloog pob ntseg lossis lub amp. Tom qab me ntsis LCD yuav qhia "squishbox v xx.x" cov lus. Thaum tus lej thaj thiab lub npe tshwm tuaj koj yuav tsum muaj peev xwm ua si sau ntawv. Cov kais dej luv ntawm ob lub khawm hloov lub thaj, tuav ob lub khawm rau ob peb feeb tau txais koj mus rau hauv cov ntawv qhia zaub mov, thiab tuav ob lub khawm rau kwv yees li tsib vib nas this muab rau koj qhov kev xaiv rov pib ua haujlwm, rov pib Pi, lossis kaw Pi (NB tus Pi tsis txiav lub hwj chim rau nws GPIO tus pin thaum nws nres, yog li lub LCD yuav tsis tua. Tsuas yog tos li 30 vib nas this ua ntej yuav ntsaws nws).

Cov ntawv qhia zaub mov teeb tsa yog:

  • Hloov Patch - txuag txhua qhov kev hloov pauv uas koj tau ua rau thaj tam sim no rau cov ntawv
  • Txuag thaj tshiab - txuag thaj tam sim no thiab hloov pauv li thaj tshiab
  • Xaiv Bank - cov ntaub ntawv teeb tsa tuaj yeem muaj ntau pawg ua thaj, qhov no cia koj hloov ntawm lawv
  • Teeb Gain - teeb tsa tag nrho cov ntim tawm (fluidsynth's 'nce' xaiv), siab dhau muab cov zis tsis raug
  • Chorus/Reverb - hloov kho tam sim no teeb tsa reverb thiab chorus teeb tsa
  • MIDI Txuas - sim txuas lub cuab yeej MIDI tshiab yog tias koj pauv nws thaum lub program ua haujlwm
  • Bluetooth Pair - muab Pi rau hauv kev tshawb pom hom yog li koj tuaj yeem ua ke lwm lub cuab yeej bluetooth nrog nws
  • Qhov xwm txheej Wifi - tshaj tawm Pi tus IP chaw nyob tam sim no yog li koj tuaj yeem nkag mus rau nws

Cov ntaub ntawv config_squishbox.yaml muaj cov ntaub ntawv piav qhia txhua thaj, nrog rau yam xws li MIDI kev hloov pauv, cuam tshuam tsis zoo, thiab lwm yam Nws tau sau hauv YAML hom ntawv, uas yog lus hla txoj hauv kev los sawv cev cov ntaub ntawv uas khoos phis tawj tuaj yeem cais tab sis kuj yog tib neeg -nyeem tau. Nws tuaj yeem ua tau nyuaj heev, tab sis ntawm no kuv tsuas yog siv nws los ua tus sawv cev rau cov qauv ntawm zes Python phau ntawv txhais lus (cov pawg sib koom ua ke/hashes ua lwm yam lus), thiab cov ntu (npe/pawg). Kuv muab ntau cov lus pom hauv cov qauv teeb tsa ua piv txwv thiab sim tsim nws kom ib tus tuaj yeem zuj zus pom tias txhua qhov ua haujlwm zoo li cas. Ua tibzoo saib thiab sim yog tias koj xav paub ntxiv, thiab xav tias dawb nug cov lus nug hauv cov lus. Koj tuaj yeem ua ntau yam los hloov lub suab thiab ua haujlwm ntawm tus qauv tsuas yog kho cov ntawv no. Koj tuaj yeem nkag mus deb thiab hloov kho, lossis FTP hloov kho cov ntaub ntawv rau Pi, tom qab ntawd rov pib siv lub interface lossis los ntawm kev ntaus ntawv

sudo nab hab sej /home/pi/squishbox.py &

ntawm kab hais kom ua. Tsab ntawv tau sau los tua lwm qhov xwm txheej ntawm nws tus kheej thaum pib yog li yuav tsis muaj kev tsis sib haum xeeb. Tsab ntawv yuav nti tawm ob peb lus ceeb toom ntawm kab hais kom ua thaum nws khiav raws li nws yos hav zoov rau MIDI cov cuab yeej txuas thiab saib hauv ntau qhov chaw rau koj lub suab nrov. Nws tsis tawg, qhov no tsuas yog tub nkeeg txoj haujlwm ntawm kuv ib feem - Kuv tuaj yeem ntes lawv tab sis kuv lees tias lawv tau kuaj mob.

Thaum koj nruab FluidSynth koj kuj tau txais qhov zoo nkauj dawb dawb FluidR3_GM.sf2 soundfont. GM sawv cev rau MIDI dav uas txhais tau tias nws muaj "txhua yam" cov twj paj nruas, muab rau feem ntau pom zoo-raws li tau hais tseg ua ntej thiab tus lej hauv txhab nyiaj kom MIDI cov neeg siv uas ua cov ntaub ntawv siv lub suab nrov no yuav tuaj yeem pom ntxaws lub suab zoo rau piano, tshuab raj, bagpipes, thiab lwm yam. Yog tias koj xav tau ntau dua/sib txawv suab koj tuaj yeem pom ntau ntawm cov suab dawb hauv internet. Qhov tseem ceeb tshaj plaws, cov lus piav qhia lub suab tau nthuav dav, yog qhov muaj zog heev, thiab muaj qhov qhib qhov zoo tshaj plaws rau cov khoos phis tawj hu ua Polyphone. Nrog rau qhov no koj tuaj yeem tsim koj tus kheej cov ntawv sau los ntawm cov ntaub ntawv WAV nyoos, ntxiv rau koj tuaj yeem ntxiv cov hloov pauv rau koj 'fonts. Cov hloov pauv tso cai rau koj los tswj ntau yam ntawm kev sib xyaw (piv txwv li ADSR lub hnab ntawv, lub hnab ntawv hloov pauv, LFO, thiab lwm yam) hauv lub sijhawm tiag tiag. Cov ntaub ntawv ModWaves.sf2 kuv tau suav sau saum toj no muab piv txwv ntawm kev siv cov hloov pauv los tso cai rau koj daim ntawv qhia lim lim thiab txiav tawm zaus rau kev tswj hwm hloov MIDI cov lus (uas tuaj yeem xa los ntawm lub pob/slider ntawm koj tus tswj). Muaj peev xwm ntau ntawm no - mus ua si!

Nws yog kuv qhov kev cia siab tias qhov kev qhia no ua rau ntau lub tswv yim thiab muab rau lwm tus lub hauv paus zoo los tsim lawv tus kheej cov cim tsim tshwj xeeb, nrog rau txhawb nqa txuas ntxiv muaj thiab txhim kho cov suab zoo, cov suab zoo, thiab software dawb zoo li FluidSynth thiab Polyphone. Qhov kev tsim uas kuv tau hais tseg ntawm no tsis yog qhov zoo tshaj plaws lossis tsuas yog txoj hauv kev los tso qee yam zoo li no ua ke. Ntawm qhov kho vajtse sab, qhov hloov pauv tau tuaj yeem yog lub npov loj dua nrog cov nyees khawm ntau dua, qub txeeg qub teg (5-pin) MIDI cov tswv yim/tso tawm, thiab/lossis cov suab tawm tswv yim. Python tsab ntawv tuaj yeem hloov kho (thov txim rau kuv cov lus tsis sib xws) los muab lwm tus cwj pwm uas yuav haum rau koj zoo dua - Kuv tab tom xav txog kev ntxiv ib qho "cuam tshuam" hom rau txhua thaj uas nws yuav ua zoo li muaj txiaj ntsig zoo stompbox, toggling teeb tsa ntawm thiab tawm. Ib tus kuj tseem tuaj yeem ntxiv qee qhov software ntxiv los muab cov suab digital. Kuv kuj xav tias nws yuav ua haujlwm zoo dua kom muaj Pi khiav hauv wifi AP hom raws li tau piav qhia saum toj no, thiab tom qab ntawd nws tseem tuaj yeem muab tus phooj ywg lub vev xaib sib tham rau kho cov ntaub ntawv teeb tsa. Thov koj xav tso koj tus kheej lub tswv yim/lus nug/kev sib tham hauv cov lus pub.

Kuv xav muab qhov loj me, cov khoom mega rau cov tsim ntawm FluidSynth thiab Polyphone kom muab pub dawb, qhib qhov software peb txhua tus tuaj yeem siv los ua suab paj nruag zoo. Kuv nyiam siv qhov no, thiab koj ua nws tau!

Pom zoo: