Cov txheej txheem:
- Kauj ruam 1: Nco ntsoov Ua Backup
- Kauj ruam 2: Kho kom raug Randommusic.bat
- Kauj Ruam 3: Kho Robocopy.bat
- Kauj ruam 4: Khiav Randommusic_withcomments.bat
- Kauj Ruam 5: Tshem Cov Ntaub Ntawv Los Ntawm Dummy rau SD Card
- Kauj Ruam 6: Pib Robocopy.bat
- Kauj ruam 7: Txhua yam ua tiav
Video: Random MP3 rau Xov Tooj: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:26
Nws ua dab tsi?
Nws luam theej tawm "pes tsawg tus mp3s" los ntawm kuv phau ntawv suab paj nruag rau kuv Xov Tooj
Prelude:
Koj puas tseem nco lub sijhawm, thaum peb siv los sau mp3´s los ntawm peb cov phooj ywg los ntawm kev txuas peb cov tsav nyuaj (lossis thaum lub sijhawm LAN-Cov Neeg Ua Haujlwm), thiab feem ntau tsis mob xaj xaj, koom ua ke thiab sau peb cov khoom?
Txhua leej txhua tus muaj nws tus kheej li cas, Ib hom ntawv twg, Cov ntawv xaj khoom, Cov huab cua. Peb yuav siv thawj Filenames thiab tom qab ID3-Cim. Teev Sijhawm, Hnub, Ib Hlis ntawm tsuas yog xaj peb Cov Ntawv Sau, feem ntau yam tsis tau mloog tag nrho nws. Peb paub lub npe los ntawm lub siab thiab nyob hauv daim nplaub tshev twg los nrhiav lawv, tab sis yeej tsis mloog lawv.
Qee zaum peb tsuas yog pib Winamp thiab thawb Shuffle-Button.
Yog li ntawd, kuv muaj qhov sau ntau ntawm mp3 ntawm kuv lub Hard Drive, suab paj nruag txij thaum kuv muaj 15 xyoos txog tam sim no.
Txawm li cas los xij, kom paub tseeb, nws yuav tsis haum rau ntawm Kuv Lub Xov Tooj thiab ua siab ncaj Kuv tsis tas yuav mus ncig nrog txhua qhov ntaub ntawv ntim khoom.
Yog li: Nov yog qhov haujlwm me me kuv tau sau nrog kev pab hauv internet (Stack Overflow feem ntau).
Nws ua dab tsi?
Nws luam theej tawm ib tus lej "mp3s" los ntawm kuv phau ntawv suab paj nruag rau kuv Xov Tooj!
Txhua ob peb lub lis piam kuv pauv qhov mp3´s nrog cov tshiab, maj mam nce zuj zus los ntawm kuv cov nkauj sau. Hu nws Nostalgia!
Tab sis tsis tsuas yog qhov no! Txoj Haujlwm "txuag", lub npe twg kuv twb tau theej ib zaug thiab tab tom coj lawv tawm ntawm qhov sib npaug! Kuv tseem tuaj yeem hloov lub npe ntawm tus kheej, uas yuav raug cais tawm!
Nws tsis yog qhov haujlwm "zoo tshaj plaws" uas kuv tau ua dhau los, tab sis cia kuv piav qhia ib qib zuj zus tias yuav ua dab tsi!
Kuv zoo siab yog tias lwm tus neeg yuav ua txoj haujlwm thiab ua kom nws zoo dua
Koj yuav pom cov zip-Cov Ntaub Ntawv nrog txhua Cov Cheeb Tsam hauv cov kauj ruam no Attachment
Nws muaj:
Randommusic_withcomments.bat
robocopy.bat
Dummies-Nplaub tshev
SD-Card-Folder
Kauj ruam 1: Nco ntsoov Ua Backup
YUAV UA LI CAS
Ib thaub qab! Kuv tsis lav rau ib qho teeb meem!
Kauj ruam 2: Kho kom raug Randommusic.bat
Qhib Randommusic_withcomments.bat nrog Text-Editor thiab ua raws cov lus qhia (cov lus qhia pib nrog "REM" nyob rau hauv ntej ntawm kab kab)
Teem Musicroot rau koj Cov Ntawv Suab Nkauj. Hauv kuv li "D: / EigeneMusik / Musik / Musik_sortiert"
Teeb Playfolder rau koj Dummies-Folder. Hauv kuv li "D: / SSD_PC_sortieren / Musiktmp / dummies"
Teeb Filecount rau tus naj npawb ntawm cov ntaub ntawv koj xav theej rau koj Lub Xov Tooj. Kuv xam li no:
MP3-Cov ntaub ntawv yog ca. 3 MB ib. Yog li kuv xav siv ca. 3GB ntawm kuv daim npav SD-Chaw-Rau Suab Nkauj.
3000MB/3MB yog 1000 Cov Ntaub Ntawv. Yog li kuv teeb tsa Filecount rau 1000 lossis qis dua.
Txuag thiab tawm Cov Ntaub Ntawv.
Cov Cai ntawm Cov Ntaub Ntawv:
@echo tawm & setlocal enabledelayedexpansion
REM Musicroot = Koj Lub Suab Nkauj Qiv Tau Los
teeb "musicroot = D: / EigeneMusik / Musik / Musik_sortiert"
REM Playfolder = Koj Lub Hom Phiaj-Folder nrog rau koj Dummy-Folder
teeb tsa "playfolder = D: / SSD_PC_sortieren / Musiktmp / dummies"
REM filecount = Teem ntawm no, pes tsawg cov ntaub ntawv koj xav hloov (ntawm no 999.mp3)
set /cov filecount = 1000
REM Qhov Kev Pab Cuam Tshuam: Tsis txhob hloov dab tsi dhau los ntawm qhov no!
thawb "%musicroot%"
rau /r %% i hauv (*.mp3) ua teeb tsa /cov ntaub ntawv+= 1 & teeb tsa "$! files! = %% ~ i"
ua popd
thawb "%playfolder%"
: random kev
set /a rd =%random %%% cov ntaub ntawv+1
teeb tsa "mp3 =! $%rd%!"
yog tias tsis txhais mp3 goto: randomloop
teeb tsa "$%rd%="
rau %% i hauv ("%mp3%") ua yog muaj "%% ~ nxi" ncha "%% ~ nxi" twb muaj nyob hauv%playfolder%. & goto: randomloop
luam "%mp3%"
set /filecount- = 1
yog % filecount % gtr 0 goto: randomloop
ua popd
Kauj Ruam 3: Kho Robocopy.bat
Qhib robocopy.bat
thiab teeb tsa 2 Txoj Kev Cov Ntaub Ntawv raws li hauv qab no:
robocopy "Path to SD-Folder" "Dummy-Folder" /tsim
Hauv Kuv Qhov Case nws zoo li qhov no:
robocopy "D: / SSD_PC_sortieren / Musiktmp / SD-Card" "D: / SSD_PC_sortieren / Musiktmp / dummies" /tsim
Qhov no yuav ua li cas, yog ua 0Byte-Luam ntawm koj cov ntaub ntawv suab paj nruag tiag, uas yuav siv tom qab los ua Kev Sib Piv-Dummies rau yav tom ntej siv.
Kauj ruam 4: Khiav Randommusic_withcomments.bat
Npaj rau thawj zaug khiav!
Tam sim no tsuas yog ob npaug nyem Randommusic_withcomments.bat thiab tos kom cov khawv koob tshwm sim!
Tsis txhob txhawj xeeb, yog tias thaum xub thawj koj tsuas yog pom kab ntsais muag ntsais muag, txoj haujlwm yuav tsum mus dhau txhua yam ntawm koj cov ntaub ntawv suab paj nruag thiab ntsuas lawv ua ntej pib. Rau kuv 120Gb ntawm SDD-Tsav nws siv sijhawm 3 feeb.
Nws yuav tsum saib qee yam zoo li daim duab.
Nco tseg, tias koj yuav pom kab "Cov ntaub ntawv twb muaj lawm", thaum nws ntsib Dummy-File nrog tib lub npe hauv Cov Ntawv Dummies. Pom tseeb qhov no yuav tsis tshwm sim ntawm thawj qhov kev sib tw, txij li peb tsis tau tsim cov dummies rau tam sim no.
Tos kom txog thaum the Copying tiav lawm.
Kauj Ruam 5: Tshem Cov Ntaub Ntawv Los Ntawm Dummy rau SD Card
Thaum the Copying tiav koj yuav tsum nrhiav “filecount” -number of files in your Dummies-Folder.
Raws li koj tuaj yeem pom kuv twb tau ua haujlwm ib zaug thiab muaj Cov Ntaub Ntawv Muaj Tseeb nrog Cov Ntaub Ntawv Loj ntau dua 0 bytes thiab Dummy-Files. Tam sim no peb xav theej cov "Cov Ntaub Ntawv Muaj Tseeb" mus rau Folder "SD-Card". Txoj hauv kev yooj yim tshaj plaws yog xaj Cov Ntaub Ntawv los ntawm Qhov Loj thiab tom qab ntawd txiav thiab muab cov ntawv nrog ntau dua 0bytes.
Kauj Ruam 6: Pib Robocopy.bat
Kauj Ruam 6:
Tom qab peb txav peb cov nkauj "tiag" mus rau Folder "SD-Card" peb xav tsim cov ntaub ntawv dummy ntawm mp3´s tshiab thiab thawb lawv mus rau hauv "dummy" -Folder, yog li tom ntej no los ntawm lawv raug tshem tawm.
Txoj haujlwm no yog ua los ntawm "robocopy.bat" cov ntaub ntawv. Cia li pib nws.
Kauj ruam 7: Txhua yam ua tiav
Txhua yam ua tiav! Tam sim no txav Cov Ntaub Ntawv los ntawm "SD-Card" rau koj lub xov tooj thiab pib mloog!
Nws tsis yog qhov haujlwm "yooj yim tshaj plaws" uas kuv tau ua, tab sis cia kuv piav qhia ib qib zuj zus tias yuav ua dab tsi!
Kuv zoo siab yog tias lwm tus neeg yuav ua txoj haujlwm thiab ua kom zoo dua qub!
Pom zoo:
Txhim Kho Lub Xov Tooj Ntawm Lub Xov Tooj Roj Teeb rau Koj Txoj Haujlwm Arduino: 3 Kauj Ruam
Rov Rov Siv Lub Xov Tooj Xov Tooj Roj Teeb rau Koj Txoj Haujlwm Arduino: Qhov no yog qhov kuv tau siv lub roj teeb xov tooj qub rov los siv lub zog arduino project.Qhov hom sib faib no yog 2000mAh nokia BLY4W. Txawm li cas los xij cov txheej txheem siv tau siv thoob plaws feem ntau ntawm cov roj teeb hauv lub xov tooj Lub roj teeb no mam li nco dheev pom qhov 0 v
Tig Lub Xov Tooj Teb rau hauv Xov Tooj Cua thiab Mus Los Hauv Sijhawm: 5 Kauj Ruam (nrog Duab)
Tig Lub Xov Tooj Teb rau hauv Xov Tooj Cua thiab Mus Ncig Hauv Sijhawm: Kuv nyiag lub xov tooj tig rau hauv xov tooj cua! Tuav lub xov tooj, xaiv lub tebchaws thiab kaum xyoo, thiab mloog qee lub suab paj nruag zoo! Nws ua haujlwm li cas Lub xov tooj teb no muaj lub tshuab computer microcomputer built-in (Raspberry Pi), uas sib txuas lus rau radiooooo.com, lub xov tooj cua web. Qhov
Ntxiv Xov Tooj Cua Txais Xov Tooj Rau Hauv Lub Suab Hauv Tsev: 3 Kauj Ruam
Ntxiv Xov Tooj Cua Txais Xov Tooj rau Hauv Lub Suab Hauv Tsev: Tam sim no nrog xov tooj cua hauv internet peb tsis tshua siv xov tooj cua ib txwm muaj (xov tooj cua?) Kuv yuav hais tias nws yog lub sijhawm zoo tshaj plaws kom muaj xov tooj cua qub uas ntseeg tau zoo nyob hauv tsev thiab mloog nkauj zoo thiab Corona-xov xwm
Hloov Xov Tooj Cua Xov Tooj Cua mus rau MP3 Boombox: 10 Kauj Ruam (nrog Duab)
Hloov Xov Tooj Cua Xov Tooj Cua mus rau MP3 Boombox: Kuv tsev neeg thiab kuv nyiam mloog nkauj thaum peb nyob nraum zoov ua si nrog menyuam yaus lossis ua luam dej hauv peb lub pas dej me me saum toj no. Peb muaj ob peb lub qub CD/Daim Kab Xev/Xov Tooj Cua Boomboxes tab sis cov CD ua haujlwm tsis ua haujlwm thiab cov xov tooj cua qub analog zoo ib yam nyuaj heev
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: 5 Kauj Ruam
Ryobi 18vdc Lub Teeb Nrog Ipod lossis Lub Xov Tooj Ntawm Lub Xov Tooj Ntawm Lub Xov Tooj: Nov yog qhov hack sai uas yuav ua rau siv koj li 18vdc Ryobi teeb nyem. Kuv tau ntxiv 12vdc tso zis rau them kuv lub ipod lossis xov tooj ntawm tes hauv qhov me me. Nws siv sijhawm li ib teev thiab tsis nyuaj heev. Txheeb nws. Cov npe ntu: 1-Ryobi 18vdc Teeb nyem