Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish Extempore sequence / progression data to queue #104

Open
7 tasks
oubiwann opened this issue Mar 20, 2021 · 0 comments
Open
7 tasks

Publish Extempore sequence / progression data to queue #104

oubiwann opened this issue Mar 20, 2021 · 0 comments
Labels
Milestone

Comments

@oubiwann
Copy link
Contributor

oubiwann commented Mar 20, 2021

Currently, some custom Extempore code is sending this data structure to LFE:

                #m(tempo ,tempo
                   chord-pitch ,chord-pitch
                   chord-type ,chord-type
                   beat ,beat
                   beats-per-note ,beats-per-note
                   note ,note
                   note-duration ,dur))

This needs to be published to the inbox of a gen_server; tasks include:

  • Setting up https://github.com/cabol/erlbus
  • Telling the gen_server to subscribe to a new topic (new API function)
  • Updating the handle_info callback (which receives this data from Extempore) in undertone.extempore to publish to a given topic (auto-generated via a unique id in Extempore)
  • Creating a new function in undertone.web.api for getting a list of all topics to which the undertone.extempore gen_server is subscribed
  • Create a new page that lists all the topics, hyper-linked to their own pages
  • Updating the phrase-data function in undertone.web.api to subscribe to a particular topic
  • Having phrase-data's long-polling mechanism pull all messages off the queue, and drop all but latest (the latest will get sent to the browser)
@oubiwann oubiwann added this to the 0.4.0 milestone Mar 20, 2021
@oubiwann oubiwann modified the milestones: 0.4.0, Backlog Jun 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant