An example of using the Max for Live JavaScript API to modify MIDI clips.