If I try the following: @async begin while(1 == 1) iter(x) # the function listens for incoming rt MIDI events end end end
iter begins printing out any notes I play in from my [music] keyboard -- but then I can't use my [text] keyboard to do anything else in the forground. I want to leave the MIDI function running while I add other functions. How? Is there a suitable way to use @async? -- or is that even the right approach at all?