Skip to content

Commit

Permalink
Cleaned up code. Added correct dataset name
Browse files Browse the repository at this point in the history
  • Loading branch information
urinieto committed Oct 5, 2019
1 parent 856b465 commit c0f3b6b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions notebooks/JAMS Creation.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
" ann.annotation_metadata.curator.name = \"Oriol Nieto\"\n",
" ann.annotation_metadata.curator.email = \"onieto@pandora.com\"\n",
" ann.annotation_metadata.version = \"1.0\"\n",
" ann.annotation_metadata.corpus = \"DATASET\" # TODO: FINAL NAME!\n",
" ann.annotation_metadata.corpus = \"Harmonix\"\n",
" \n",
"def add_metadata(jam, mp3_info, file_name):\n",
" \"\"\"Add metadata to the JAMS object.\"\"\"\n",
Expand Down Expand Up @@ -135,7 +135,7 @@
" confidence=1, \n",
" value=int(beat_pos))\n",
" \n",
" # TODO: Add Annotation Metadata\n",
" # Add Annotation Metadata\n",
" add_ann_metadata(ann)\n",
" \n",
" # Add annotation to \n",
Expand Down Expand Up @@ -223,6 +223,7 @@
"metadata": {},
"outputs": [],
"source": [
"# Create the actual JAMS\n",
"for mp3_file in tqdm(MP3_FILES):\n",
" out_file = \"{}{}\".format(JAMS_OUTPUT, os.path.basename(mp3_file).replace(\".mp3\", \".jams\"))\n",
" print(mp3_file)\n",
Expand Down

0 comments on commit c0f3b6b

Please sign in to comment.