Page 1 of 1

[Request / Idea] MML Reader via Blueprint strings

Posted: Mon May 29, 2017 11:13 am
by DarkOmen
So looking online when people make songs i tend to see massive combinator arrays and think that is somewhat silly and there must be an easier way.
So i was wondering how difficult it would be to write a Music Macro Language, and use factorios inbuilt blueprint system to import/generate songs.



So a simple tune would look something like this

t69>gl8gag4gag4gabb+bag4gag4gag4gabb+baf+4f+gf+4f+gf+4f+gabagf+4.eg2g1g4gag4gag4gabb+bag4gag4gag4gabb+baf+4f+gf+4f+gf+4f+gabagf+4.eg2g2.&geaa4ggf+g4g2.&ggaa4ggf+g4g2.&gc-cc4cccc2<bb4.bbbb4.b1&b4.


Where T is the tempo,
+ - represents sharp and flat
. is a different instrument or a pause

The number after the letter represents the note length

and > < are for octave up and down

Would this be possible or would you have to write a custom string parser.

Re: [Request / Idea] MML Reader via Blueprint strings

Posted: Mon May 29, 2017 12:33 pm
by mrvn
I think it would be usefull (not just for songs) if you could blueprint items, not just buildings.

Given that feature encode the song in items. For example an iron ore is a C, copper ore a D. You can put them on a belt and encode the node length as a second item on the other belt side. And then loop the belt for repeating songs.

Other uses would be blue printing circuit logic that depends on items in chests or being passed around to work.