MAX MSP: INTRODUCTION TO JAVASCRIPT PT1

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025
  • Some of our most popular programs are now available over on the website:
    www.programmin... Today we are take a first look at interfacing max with javascript to manipulate and pass data around.
    In this simple tutorial we look at how to access data, accept it and send it back into the max patcher from an external javascript file.
    tl;dr, we add two numbers together.
    Follow me on Twitter, Snapchat and Instagram: @mich_mckellar
    New videos every week, delivered less constantly than your morning paper.

ความคิดเห็น • 13

  • @justinleokennedy
    @justinleokennedy 4 ปีที่แล้ว

    Oh my gosh, one of the few JS for Max tutorials that actually takes it slow and explains each step! Thank you!!!!

  • @enthusiast1
    @enthusiast1 8 หลายเดือนก่อน

    Nice tutorial, thank you!

  • @willowpets
    @willowpets 3 ปีที่แล้ว

    Your voice is really nice to listen to

  • @udomatthiasdrums5322
    @udomatthiasdrums5322 8 ปีที่แล้ว +2

    cool stuff, like it!!

  • @tohtorizorro
    @tohtorizorro 2 ปีที่แล้ว +1

    [pak 0 0] -> [prepend mathTest] could also be both done in the pak: [pak mathTest, 0, 0]

  • @OrneeMendii
    @OrneeMendii 6 ปีที่แล้ว

    Could you please look at my Javascript and tell me what I am doing wrong? I an error on max saying the output1 is not defined, line 8. Although I have followed your instructions.

    • @Programmingforpeople
      @Programmingforpeople  6 ปีที่แล้ว +1

      Can you copy and paste your code into the comments? My quick guess would be you've missed or miss-spelt the 'var' at the start of the line.
      An alternative way you could test would be:
      function mathTest (a,b){
      var output1 = 0;
      var input1 = a;
      var input2 = b;
      output1 = input1 + input2;
      outlet(0, output1);
      }

    • @OrneeMendii
      @OrneeMendii 6 ปีที่แล้ว +1

      Programming for People
      Thank you for your help! Such a quick reply 😊

  • @LennyLaserdisk
    @LennyLaserdisk 2 ปีที่แล้ว

    How would you go about doing this with a list input

    • @darkwraithcovenantindustries
      @darkwraithcovenantindustries 2 ปีที่แล้ว

      use the list() function to pass in lists from one of the inlets.
      use arrayfromargs(arguments) to put the list into an array.

  • @JovanWolf96
    @JovanWolf96 6 ปีที่แล้ว

    If you want to avoid cut-paste all the time just add autowatch = 1; at the top of js file

    • @Programmingforpeople
      @Programmingforpeople  6 ปีที่แล้ว

      More recent versions of max 7 can handle this waaaay better. Just saving of the js file after editing should trigger an update!

  • @parkSiSoo
    @parkSiSoo 7 ปีที่แล้ว

    wow!!!!