2021June2:I'msorrythatIhaven'tupdatedthisrepositorylately.MycareerfocushasdriftedawayfromMIR,sadly.Therefore,pleaseunderstandthatImightnotbecheckingthisrepoveryfrequently.However,I'mgratefulthatmanyofyoustillfindthisrepohelpful.IencourageyoutoraiseGitHubissuesandparticipateincommunitydiscussionsthroughtheissueforums.Ifyouwanttosubmitapullrequest,youcanemailsteveatmusicinformationretrievaldotcomtoletmeknowtocheckGitHub.
ThisrepositorycontainsinstructionalJupyternotebooksrelatedtomusicinformationretrieval(MIR).InsidethesenotebooksarePythoncodesnippetsthatillustratebasicMIRsystems.
Thesimplestwaytousethisrepositoryisto(1)browsearead-onlyversionofthisrepoatmusicinformationretrieval.com,and(2)followalongusingablankJupyternotebookofyourown.
InstallationDownloadandinstallAnacondaforPython3.x.
Installlibrosaandffmpeg:
condainstall-cconda-forgelibrosaffmpegToupgrade:
condaupgrade-cconda-forgelibrosaffmpeg[2018June24]Thesenotebooksreflectthefollowingpackageversions:
ipython6.2.1joblib0.11jupyter1.0.0librosa0.6.1matplotlib2.2.0numpy1.14.2pandas0.22.0scikit-learn0.19.1scipy1.0.0UsageStarttheJupyternotebookserveronyourlocalmachine.ForMacusers,attheTerminal:
your-local-machine:~$jupyternotebookForWindowsusers,opentheapplication"JupyterNotebook".AlternativelyforWindows:opentheapplication"AnacondaPrompt"andtypeinjupyternotebook.
Jupytershouldautomaticallyopenanewwindowinyourwebbrowserthatresemblesadirectorytree.
Toopenanewnotebook,inthenewwindowofyourwebbrowser,clickonNewnearthetoprighttoopenanewnotebook.
Torenamethenotebook,clickon"Untitled"inthetopleft,andchooseadifferentname.Insideacell,run1+2.Press<Shift-Enter>onacelltorunthatcell.Hopefullyyougettheoutput3.Insideacell,runimportscipy,sklearn,pandas,librosa.Press<Shift-Enter>torunthecell.Ifthatrunswithouterror,congratulations,youhavethenecessarylibrariesinstalledproperly.Tryexecutingthecontentfromhttps://musicinformationretrieval.cominsidethisblanknotebook.ToclosetheJupyternotebook,
Savethenotebook.(Eitherusekeyboardshortcuts,or"File|Save"inthetopmenu.)Closethebrowserwindow.Ifyouopenedthenotebookfromaprompt/shellasindicatedinStep1above,fromthatshell,press<Ctrl-C>twicetoreturntotheprompt.Congratulations,youarenowrunningaJupyternotebook,andyoucangetstartedwiththenotebooksinthisrepository.
Afterinstalling,ifsomethingdoesn’twork,tryclosingtheterminalorrestartingtheOS.Sometimesthatcanresetthenecessaryconfigurations.
TroubleshootingIssue#729:importlibrosacausesTypeError:expectedstringorbuffer
Workaround:downgradejoblibtov0.11:
pipinstalljoblib==0.11ContributionsYourcontributionsarewelcome!Youcancontributeintwoways:
Submitanissue.Clickon"Issues"intherightnavigationbar,then"NewIssue".IssuescanincludePythonbugs,spellingmistakes,brokenlinks,requestsfornewcontent,andmore.
Submitchangestosourcecodeordocumentation.Forkthisrepo,makeedits,thensubmitapullrequest.
ThisrepoisstaticallyhostedusingGitHubPages.AnychangestoHTMLfilesinthegh-pagesbranchwillbeseenonmusicinformationretrieval.com.
Toeditmusicinformationretrieval.com:
Editanotebook,e.g.:
$jupyternotebookkmeans.ipynbConvertnotebooktoHTML:
$jupyternbconvertkmeans.ipynbCommitthenotebookandtheHTML:
$gitaddkmeans.ipynbkmeans.html$gitcommit$gitpushYoumayneedtowait1-2minutesbeforethechangesareliveonGitHubPages.
评论