1. IMPORTANT:
    We launched a new online community and this space is now closed. This community will be available as a read-only resources until further notice.
    JOIN US HERE

XY Pads, Record?

Discussion in 'Scripting Workshop' started by foundation77, Mar 28, 2020.

  1. foundation77

    foundation77 NI Product Owner

    Messages:
    147
    I'm just poking for ideas here,
    I've seen some pretty cool instruments using XY pads and a function that allows you to record the movements.
    They then can be played back / stored.
    Where in the manual would there be any clues about how to go about something like this.
    Or are there any tips one might be able to give (Mario) re: where to start.

    I'm feeling a little experimental.
     
    Last edited: Mar 28, 2020
  2. medusa

    medusa NI Product Owner

    Messages:
    239
    use the listener callback (BEAT mode at 24 if you want it to be tempo aware) , and a very large array or two

    if in Record mode, start storing the X and Y values into the large array(s)
    if in Play mode, start playing back the X and Y values from the large array(s)

    I use integer arrays myself, so quantise the X and Y values first, but you can also do it with real arrays