I also want to make sure I have a customizable play function that will handle my playing. Here's the code I've been using for my current mml parser in chuck, actually does take a code string and a play function, and operates well. Only issue is including doesn't work... So have a test. On 9/6/2016 3:33 AM, Hans Åberg wrote:
On 5 Sep 2016, at 23:16, Colton Hill
wrote: I know regular expressions syntax, but I really don't know how I would manage to make an mml parser that actually works. Turn o4l8cdefg into octave 4, length 8, and c d e f g notes with an 8th note length since no length is specified. Then there's c4., which is c4^c8... Just bla… There are free MML parsers in C out there. Linking to ChucK, which is written in C++, might be a way.
_______________________________________________ chuck-users mailing list chuck-users@lists.cs.princeton.edu https://lists.cs.princeton.edu/mailman/listinfo/chuck-users