tobyspark / folk-rnn-webapp

A community application for the folk-rnn folk music style modelling project
MIT License
3 stars 5 forks source link

'standard' abc format for easy export (or cut and paste) use #144

Open graham-currie opened 5 years ago

graham-currie commented 5 years ago

Std abc format: see 'thesession.org' and elsewhere.
Many apps expect an 'X' no. (doesnt matter if all X: 1) ! and 'T' (tune name) in the abc. Would be good if all as this example: X: 1 T: Morrison's R: jig M: 6/8 L: 1/8 K: Edor |:E3 B3|EBE AFD|EDE B3|dcB AFD| E3 B3|EBE AFD|G3 FGA|dAG FED:| etc.

tobyspark commented 5 years ago

Graham, is this on folkrnn.org or themachinefolksession.org?

tobyspark commented 5 years ago

themachinefolksession.org has 'Download ABC' in the sidebar of each tune, with all of the fields populated that I have info for. Here's the downloaded ABC of the latest tune archived there from folkrnn.org –

X:748
T:Folk RNN Tune №32802
S:Tune #748 archived at The Machine Folk Session
F:https://themachinefolksession.org/tune/748
N:Generated at https://folkrnn.org using the thesession_with_repeats model with RNN seed = 827608; temperature = 1.0; prime tokens = M:4/4 K:Cmaj
M:4/4
Q:120
K:Cmaj
E2GE FEDC|EGcG AGcA|G2GE FEFA|GECE DCA,C|
E2GE FEDC|EGcG AGAB|cGAG E2GE|D2EC DCA,C|
G,EE2 GE(3EEE|DEE2 FEDE|G,EE2 GE(3EEE|DECD ECC2|
G,EE2 GEE2|DECE DCA,C|D3E FGAG|EFGE DCA,D|
AGFE GEEG|cEBE AGEC|GEAE GABc|d2cd ecAB|
cBAG EF(3EFG|edBd cAGE|CEE2 GEE2|DFEC DCA,C|

folkrnn.org has a 'Save it' section for each tune, which archives it to themachinefolksession.org where there's the download ABC link, above. If you want to cut and paste directly from the RNN's output in folkrnn.org, then you'll have to put in the T: field yourself. This is partly philosophical as the RNN models don't know what a title is (and so don't generate one), and partly pragmatic as simply not having a T: line here means I don't have to also somehow disable the score notation rendering the title.