xparis001

Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • in reply to: probably a newbie mistake #72275
    xparis001
    Participant
      • Topics: 1
      • Replies: 8
      • Total: 9

      Thanks for all the help, everyone! I figured it out. It’s working now, and it was a newbie mistake. I had changed the name of the midiMessageReceived function, so the panel wasnt able to call it correctly when it received midi. My panel’s now updating nicely.

      in reply to: what do you need to know in order to make panels? #72263
      xparis001
      Participant
        • Topics: 1
        • Replies: 8
        • Total: 9
        function sendPatch()
        	for n = 0, 514, 1 do -- the amount of modulators to send 
        		a = panel:getModulatorByIndex(n) -- get modulator with index n			
        		b = a:getModulatorValue() -- get it's value
        		a:setModulatorValue(b, false,true,false) -- set it's value, sending it to the synth.
        	end
        end

        Hi, so I’ve started another thread in the Using CTRLR forum. SOrry to bump an old thread, but the code above is crashing for me. Wondering if anyone has any insights.

        here’s the link to the new discussion I started.
        Probably a newbie Mistake

        thanks in advance for any help!

        in reply to: probably a newbie mistake #72260
        xparis001
        Participant
          • Topics: 1
          • Replies: 8
          • Total: 9

          nope. Im wrong, the error message is still there. ugh.

          in reply to: probably a newbie mistake #72258
          xparis001
          Participant
            • Topics: 1
            • Replies: 8
            • Total: 9

            So, I retraced my steps, started fresh again, and this time the error is not happening. I guess I had the function in the wrong place. However, my modulator value still isnt updating. Im hoping im missing something simple.

            thanks again for the help, everyone 🙂

            • This reply was modified 6 years, 11 months ago by xparis001.
            Attachments:
            You must be logged in to view attached files.
            in reply to: probably a newbie mistake #72257
            xparis001
            Participant
              • Topics: 1
              • Replies: 8
              • Total: 9

              additional info.

              If I just load the panel, and send the panel any old midi CC3, the code above crashes with the error:

              add_file_and_line() failed at lua_getstack, unknown error occured

              in the log viewer.

              I’m on OSX 10.12.5
              Mac pro, 12core 2.93, 96GB RAM.

              Edirol UM880 Midi devices. I’ve also tried it with Generic MIDI drivers, and the IAC driver.

              in reply to: probably a newbie mistake #72253
              xparis001
              Participant
                • Topics: 1
                • Replies: 8
                • Total: 9

                yea, I’m sending the dumps manually at the moment. Still waiting on SE to get back to me on dump request formats. I’ve actually removed the SE1x from the equation, and are now sending the sysex message using BOME sendsx and the mac AIC driver. Still getting the same error.

                From what I can tell, this is the code that’s crashing out:

                midiMessageReceived = function(midiMessage)
                	s = midiMessage:getSize() -- Size of the midi dump received
                	if s == 135 then -- if size match the expected size of the dump requested
                		PatchDataLoaded = midiMessage:getData() -- create a memoryblock with the data dump
                		programData 	= midiMessage:getData():getRange(07,128) -- create a memory block with the synth engine data, leaving the header
                		assignValues(midiMessage,false) -- call a script to assign each byte to each modulator.
                	end
                end
                

                the error coming back from the LUA console is:
                add_file_and_line() failed at lua_getstack, unknown error occured

                my absolute guess is that it’s trying to create a memory block of the bytes, and is failing at it. I dont know if there’s something additional I should be doing? Or maybe 10.12 is protecting memory in some way? I dont know. My background is QA and midi dev, not coding really.

                thanks for your help so far, I really appreciate it. I’m gonna try to install the latest CTRLR, or back down to older ones and see if that makes a difference.

                in reply to: probably a newbie mistake #72249
                xparis001
                Participant
                  • Topics: 1
                  • Replies: 8
                  • Total: 9

                  I’m not concerned about the knob output at this point, im just trying to receive a sysex string, grab a range, and update the knob’s value.

                  in reply to: probably a newbie mistake #72244
                  xparis001
                  Participant
                    • Topics: 1
                    • Replies: 8
                    • Total: 9

                    some additional information. in the log viewer, I’m getting this error:

                    [LUA ERR ][12:11:40:000760]: add_file_and_line() failed at lua_getstack, unknown error occured

                    here’s an example of the sysex message I’m sending to it.
                    f0 00 00 4d 01 00 00 02 0d 0f 64 64 00 2d 73 33 2a 5d 7c 7f 00 29 1c 26 00 2a 18 2c 00 00 17 01 00 00 01 15 02 02 00 02 00 00 40 40 00 00 00 00 00 01 7e 00 00 10 09 0e 0b 00 00 00 00 03 00 01 02 00 7e 7e 00 00 45 01 4b 43 01 03 00 22 04 00 00 0b 00 02 07 00 30 00 00 00 00 00 00 00 76 40 02 12 00 04 00 53 7e 01 00 00 46 02 00 08 77 00 00 00 00 00 00 44 59 4e 50 20 4d 55 54 54 20 44 47 20 20 20 20 2e f7

                  Viewing 8 posts - 1 through 8 (of 8 total)
                  Ctrlr