Peter_EP

Forum Replies Created

Viewing 19 posts - 1 through 19 (of 19 total)
  • Author
    Posts
  • in reply to: Anyone having problems with Callback Functions #72882
    Peter_EP
    Participant
      • Topics: 5
      • Replies: 19
      • Total: 24
      • β˜…

      I could never get the incoming midi string callback to work, it always crashed Ctrlr. I’d write code to send a small midi message, my understanding was, when that message was received, Ctrlr would recognise it and call a method, but that never worked for me.

      in reply to: documentation SUCKS big time… #72532
      Peter_EP
      Participant
        • Topics: 5
        • Replies: 19
        • Total: 24
        • β˜…

        Software does take a lot of time and patience to get something useful running. It is usually a whole stream of endless “gotchas” and dead ends. It usually does chew up huge chunks of time and patience. Documentation can be a nightmare to read, understand or even write. For example, an experienced coder would despise documentation aimed at a beginner. It can get snooty (try asking linux people!).

        I made some progress with Ctrlr and even got LUA/JUCE to work but I hit problems that were taking too long to figure out. Talk about killing workflow! “Under the hood” this type of software is very complex, as it hooks into various system libraries and this is the doman of experts such as “atom” they guy behind this, who does a great job in keeping this show running.

        I suggest, just try simple things, one at a time. Make regular backups/copies of every thing done. There are endless gotchas that will drive you mad, it’s not atom’s fault, it’s the way coding is!

        in reply to: Build issue under Windows #69869
        Peter_EP
        Participant
          • Topics: 5
          • Replies: 19
          • Total: 24
          • β˜…

          I’m no expert but compile on Windows? I just got the exe of the latest build and ran that, it unpacked, installed and all was well. In my case Ctrlr-Win32.exe

          in reply to: Panel request #69837
          Peter_EP
          Participant
            • Topics: 5
            • Replies: 19
            • Total: 24
            • β˜…

            Tempt us πŸ˜‰ get a copy of the full MIDI SysEx spec, the user manual and send us the synth for a month or so! Ctrlr is the best app for custom MIDI I’ve ever seen, making fully working panels is not difficult, all the hard stuff has been done for us, nice. Do have a go yourself, you might not be able to get every feature you want but I feel sure you can easily make a panel that does quite a lot.

            in reply to: my own function call mystery #69813
            Peter_EP
            Participant
              • Topics: 5
              • Replies: 19
              • Total: 24
              • β˜…

              Thanks for the confimation Mr Good, that does help me and would you believe it, the same code now works!!! I can only think I got in a boggle-eyes situation, couldn’t see for looking type thing.

              in reply to: crashed now won't open! all my effort lost!! #69808
              Peter_EP
              Participant
                • Topics: 5
                • Replies: 19
                • Total: 24
                • β˜…

                Just a note of warning to everyone. Ctrlr keeps crashing (during Dev) and worse still eventhough I do regular “saves” of different types, data still vanishes.

                I looked at the XML but couldn’t recover anything, so I am currently doing a “cut-and-paste” from Ctrlr/LUA Editor of all my lookup tables, LUA code that works into WordPad (I’m on XP) then at least I have some form of back up. Maybe what I’m suggesting is, don’t relay on Ctrlr to save things as expected.

                Now I’m confused… “save as versioned” – how does that work? I think after a few of these version 0 is the latest and version 8 is the first one!? Isn’t that the wrong way round? I am going by the time and date of the files I generate.

                Ctrlr is still great though!

                • This reply was modified 7 years, 7 months ago by Peter_EP.
                in reply to: How do I add text/label to a custom component? #69804
                Peter_EP
                Participant
                  • Topics: 5
                  • Replies: 19
                  • Total: 24
                  • β˜…

                  phew! – now I know drawText is valid I did another search of this website and it seems I didn’t understand the definition, anyway this worked:

                  g:drawText(“+10dB”, 30, 40, 30, 20, Justification(Justification.right), false)

                  it was the Justification part that confused me.

                  in reply to: How do I add text/label to a custom component? #69798
                  Peter_EP
                  Participant
                    • Topics: 5
                    • Replies: 19
                    • Total: 24
                    • β˜…

                    Thanks, to save face a little, I did look though the JUCE list but I must have not seen the drawText() thing. However!

                    Here’s the definition:-

                    void Graphics::drawText ( const String & text,
                    		int  	x,
                    		int  	y,
                    		int  	width,
                    		int  	height,
                    		Justification  	justificationType,
                    		bool  	useEllipsesIfTooBig = true 
                    	) 		const

                    my code is: g:drawText("+10dB", 30, 40, 30, 20, 2, false)

                    and the error is:`Error message: No matching overload found, candidates:
                    void drawText(Graphics const&,String const&,Rectangle const&,Justification,bool)
                    void drawText(Graphics const&,String const&,int,int,int,int,Justification,bool)`

                    So why hasn’t this worked?

                    Thanks again for the assistance, I do appreciate it.

                    in reply to: uiLabel set some text coloured #69792
                    Peter_EP
                    Participant
                      • Topics: 5
                      • Replies: 19
                      • Total: 24
                      • β˜…

                      Hey Puppeteer, did you ever get to complete that SysEx dump comparison util? It sounds perfect as I’m doing the same thing, need to compare two dumps with a single synth parameter change. I tried to use the YOLK on MIDI-OX but my main editor app refused to work so some other SysEx montor is needed Ctrlr is ideal.

                      in reply to: Ctrlr – Step by step guide #69746
                      Peter_EP
                      Participant
                        • Topics: 5
                        • Replies: 19
                        • Total: 24
                        • β˜…

                        These tuts are a great help, I’m sure anyone who sees them will agree they are very good. I’m glad they are now in pdf format, the previous docx was causing me problems. As for a central place for the tuts/info, I know Audacity have a Wiki page:
                        http://wiki.audacityteam.org/wiki/Audacity_Wiki_Home_Page

                        So maybe something similar for Ctrlr??

                        BTW: I’d like a way to call up and view the property list with definitions, at present I call what() from any component method call, I’d like to be able to enter a command into the LUA Console but don’t know the syntax. Also with defintions so I know what parameters are available etc.

                        ADSR envelope tuts/code would be very helpful for many people, I think we all will have variations on a theme so a whole chapter on this alone would be good!

                        Keep up the good work, I think so many people have a need for a MIDI programming environment and Ctrlr is the best I’ve seen, ever!

                        in reply to: What am I doing wrong? #69738
                        Peter_EP
                        Participant
                          • Topics: 5
                          • Replies: 19
                          • Total: 24
                          • β˜…

                          πŸ™‚

                          When one way doesn’t work, always try to find a working workaround and in parallel secure a solution / understand the main/initial issue

                          Yeh I know! πŸ™‚ it all takes a huge amount of time, finding the right reference document, trying to get alternative code to work, getting to understand the framework etc. And then once that one issue has been overcome it’s onto the next! HUGE amount of time and frustration. I do need to eat and sleep πŸ™‚

                          Yup that’s the SysEx spec, if you were to see it, I can send it to you, after a while of reading it you’d go “yup your right, it takes 18 bytes of SysEx to do anything!” πŸ™‚

                          The worst has yet to come as some parameters are only accessible by mini-sysex dumps and changing the one entry and then resend it back, phew!

                          Thanks for the suggestions and ideas. I’ve left a note with Mr Atom, should he have time/will to give it a once over. Having that method call at that point would be really good.

                          in reply to: What am I doing wrong? #69736
                          Peter_EP
                          Participant
                            • Topics: 5
                            • Replies: 19
                            • Total: 24
                            • β˜…

                            My “synth” is actually a vintage sampler πŸ˜‰ I just didn’t want to say that just in case it confused things. The MIDI spec is quite clear, SysEx only please!

                            It would be helpful if someone could try and repeat the problem, I know everyone is busy etc. but I wonder if this is a bug that our friend Atom might be able to fix.

                            in reply to: What am I doing wrong? #69722
                            Peter_EP
                            Participant
                              • Topics: 5
                              • Replies: 19
                              • Total: 24
                              • β˜…

                              Yes Mr P, my “synth” does all the work via 18 byte SysEx packets, so for example, to change Master Tune, I need to send:
                              F0 0F 03 00 11 00 00 00 00 00 00 34 01 00 00 MS LS F7

                              The value represented by the MS and LS are not in sequence, for example:
                              Ctrlr (human) sees “12”, Ctrlr sends (via lookup table) “34”.
                              I have got all this working just fine.

                              Then in return, when I press the same button on the synth it sends the same packet to Ctrlr, so I then need to take that “34” use it as a key in a reverseLookUp table which will return “12” which I use to make the respective slider move and display the value.

                              That is my theory, but when I put a call to even the default method (as you have kindly listed), when the specific MIDI SysEx packet is received and sent to the correct modulator, Ctrlr crashes. Nothing is written to the crash log either. If I have no call to a method, Ctrlr will display the incoming value, albeit in the funny code my synth uses, so in the example Ctrlr displays 34.

                              My puzzle is, when I put a call to even a default method in: β€œCalled to calculate new modulator value from a MIDI value” – Boom! Ctrlr crashes.
                              Am I just putting this call in the wrong place?

                              • This reply was modified 7 years, 8 months ago by Peter_EP.
                              • This reply was modified 7 years, 8 months ago by Peter_EP.
                              in reply to: What am I doing wrong? #69713
                              Peter_EP
                              Participant
                                • Topics: 5
                                • Replies: 19
                                • Total: 24
                                • β˜…

                                I’m struggling with something similar, my target device (synth) sends a small SysEx packet upon parameter change (button/slider change), all well and good. I have made a modulator to send that code to the target device and it responds. I then can use a lookup table to modify that number to suit the crazy system used by the target device.

                                OK, now I need to do the same in reverse which is when the target device sends the SysEx packet I need relevant Ctrlr modulator to respond. I have got halfway, the target device sends the SysEx packet and the modulator shows the value, all well and good, now my problem.
                                Upon receiving that SysEx packet I need to go to a lookup table, so I have made a method, RevLookUp, and it gets called from: “Called to calculate new modulator value from a MIDI value”
                                It all seems ok, but even with an empty method (the default), as soon as I press the button on my synth, boom Ctrlr crashes and closes (nothing useful written to the crash report).
                                I just can’t see why Ctrlr should crash even with an defualt method hooked up. The modulator will display the raw value send by the synth but fails to respond to a method call.
                                Any clues?

                                • This reply was modified 7 years, 8 months ago by Peter_EP.
                                in reply to: modulator value sent only on mouseUp event? #69644
                                Peter_EP
                                Participant
                                  • Topics: 5
                                  • Replies: 19
                                  • Total: 24
                                  • β˜…

                                  For me it’s a voyage of discovery, before I found the IncDecButton component I thought my fix was to delay sysex packet transmission rate. I looked into this because like Puppeteer I have the same problem looming, to change some other values in my target device requires a mini-sysex dump everytime on value change and the spec warns to slow the sysex packet rate down. Handshakeing is preferred, but I haven’t got there yet!

                                  This Ctrlr is really good, more examples, info and tuts the better, I’ve made huge progress in a short space of time.

                                  in reply to: modulator value sent only on mouseUp event? #69627
                                  Peter_EP
                                  Participant
                                    • Topics: 5
                                    • Replies: 19
                                    • Total: 24
                                    • β˜…

                                    Time to feel foolish! I looked at the TX7 panel, VoilΓ ! the comboBox I was looking for. It starts with a uiSlider and under the Component:slider style drop down box is… InDecButtons, perfect, that’s exactly what I need.

                                    in reply to: modulatorMappedValue does it work like this? #69615
                                    Peter_EP
                                    Participant
                                      • Topics: 5
                                      • Replies: 19
                                      • Total: 24
                                      • β˜…

                                      Thanks for the interest, I am making progress, ctrl is excellent.

                                      I now downloaded the Ctrlr-5.4.2.exe and looked in the About box: it says Version 5.3.201

                                      in reply to: modulatorMappedValue does it work like this? #69592
                                      Peter_EP
                                      Participant
                                        • Topics: 5
                                        • Replies: 19
                                        • Total: 24
                                        • β˜…

                                        You know, when I was experimenting yesterday with this, I tried all the sliders and I’m sure with uiFixedSlider there was no “Slider Contents” option!!

                                        BTW: if anyone can help with the Method call athat would be good as I will need that for other sysex commands too.

                                        When I installed crtl, I thought I was getting the latest version, maybe something went wrong.

                                        in reply to: modulatorMappedValue does it work like this? #69583
                                        Peter_EP
                                        Participant
                                          • Topics: 5
                                          • Replies: 19
                                          • Total: 24
                                          • β˜…

                                          Thanks for the tip but… where do I find “slider content” field? I’ve looked down the list of properties for uiSlider
                                          The categories I have are:
                                          Modulator,
                                          MIDI,
                                          Component Generic,
                                          Component.
                                          Under which of those four would I find “slider content”, closest seems to be having to enter sysex for every entry, in the MIDI section.

                                          Going back to my original question, I also need to add a time delay so I would like to try my Method (function call)

                                          I am using version 5.2.44 on XP 32

                                          I have changed to uiFixedImageSlider component and it is there. πŸ™‚
                                          But I just want the slider to look like the standard slider, I don’t need the image resource thing, which seems to lose the standard slider look.

                                          • This reply was modified 7 years, 8 months ago by Peter_EP. Reason: added version
                                          • This reply was modified 7 years, 8 months ago by Peter_EP. Reason: found uiFixedImageSlider
                                          • This reply was modified 7 years, 8 months ago by Peter_EP. Reason: added just want standard slider look
                                        Viewing 19 posts - 1 through 19 (of 19 total)
                                        Ctrlr