Closed mpahrens closed 8 years ago
👍🏿
Done, in test branch, will test on Pi this week and merge if successful
merged into 0.4.1 (lang) but I didn't change the code gen (blockly) to remove the opts until I can do some more testing, but it works as expected
Currently, the blockly transpiler checks if a send message block is:
send_message('mesage','target',context: :music)
macro, otherwise it generates one withcontext: :top
as in top level.The reason is that to send a "well timed" message from the defmotif, then the DSL compiler needs to generate Sonic Pi ruby DSL code to send the message from sonic pi at that musical moment to the BT message API, not at the moment the motif is defined (top level).
Instead:
This will turn statements that look like:
into