Skip to content

Commit

Permalink
remove music browser
Browse files Browse the repository at this point in the history
Former-commit-id: c0c0799836298bf78af6c75dbaeb979a5b8435a4
  • Loading branch information
srubin committed Dec 13, 2014
1 parent bf2ef3e commit 31dd87d
Show file tree
Hide file tree
Showing 89 changed files with 24 additions and 32,081 deletions.
15 changes: 14 additions & 1 deletion INSTALL.md
Expand Up @@ -13,6 +13,8 @@ Clone the speech editor repository:
# (> means a prompt on your computer)
> git clone git@bitbucket.org:srubin/speecheditor.git
> cd speecheditor
> git submodule init
> git submodule update
```

In the `/speecheditor` directory, spin up the vagrant enivornment by running
Expand Down Expand Up @@ -67,4 +69,15 @@ Once you're done using the speech editor, free up the system resources taken up
> vagrant halt
```

Then, `vagrant up`, `vagrant ssh`, `cd /vagrant` and `python app.py` to start it up again.
Then, `vagrant up`, `vagrant ssh`, `cd /vagrant` and `python app.py` to start it up again.

## Adding speech tracks

## Enabling the music browser

If you have access to the music browser data files (private access only due to copyrights): put the `musicbrowser` folder inside of `/speecheditor/static`. Instead of using `python app.py` run the speech editor with:

```
#!bash
$ python app.py --music-browser
```
17 changes: 10 additions & 7 deletions app.py
Expand Up @@ -544,17 +544,20 @@ def alignment(name):


@click.command()
@click.option('--browser/--no-browser', default=False,
@click.option('--music-browser/--no-browser', default=False,
help='do not load the music browser app')
def run_app(browser):
if browser:
from music_browser.browser_flask import app as browserapp
def run_app(music_browser):
if music_browser:
# Figure out how to do these searches without requiring MySQL

# from music_browser.browser_flask import app as browserapp
# application = DispatcherMiddleware(app, {
# '/musicbrowser': browserapp
# })

app.config["MUSIC_BROWSER"] = True
application = app

application = DispatcherMiddleware(app, {
'/musicbrowser': browserapp
})
else:
app.config["MUSIC_BROWSER"] = False
application = app
Expand Down
Binary file removed static/musicbrowser/css/360-button-pause-light.png
Binary file not shown.
Binary file removed static/musicbrowser/css/360-button-pause.png
Binary file not shown.
Binary file removed static/musicbrowser/css/360-button-play-light.png
Binary file not shown.
Binary file removed static/musicbrowser/css/360-button-play.png
Binary file not shown.
Binary file not shown.
Binary file removed static/musicbrowser/css/360-button-vis-pause.png
Binary file not shown.
Binary file not shown.
Binary file removed static/musicbrowser/css/360-button-vis-play.png
Binary file not shown.
156 changes: 0 additions & 156 deletions static/musicbrowser/css/360player-visualization.css

This file was deleted.

0 comments on commit 31dd87d

Please sign in to comment.