permanently displayed text
-
@d-healey I'm starting to understand nothing anymore. I tried too much back and forth. Can you write me as code or send me the section that I need to change? As soon as I change little things, everything doesn't work right again
-
@treynterrio I think you need to step back and figure out what each part of your code is doing. It seems like you are guessing each time you make a change instead of knowing what the change you are making will do and why you're doing it.
Make a new project, add two buttons. Make the first button when clicked write some text to a file, make the second button when clicked read the text from the file and display it in the Console (or a label if you prefer).
Don't copy/paste code from your other project/snippets, start fresh, using the documentation to guide you.
-
@d-healey I did that already I had this one project where it worked I've export it and tried it in ableton but when I tried this in my Main project nothing was working anymore. I'm trying to get this done for 2 days straight now
-
@treynterrio said in permanently displayed text:
I did that already I had this one project where it worked
You wrote it from scratch? Not copy/pasting from bits of code from the forum?
-
@d-healey there is nothing in the forum besides all the information I've got from this thread.
Here did this the last couple minutes with a fresh new project. I just took on a few little things that I wouldn't have thought of myselfHiseSnippet 1004.3ocsV01aaaCDlJNrqVqcXEXedPyXnPFHyy1wIYaECyM1NCdsNwXtKXeqfVh1lKTjBTTs0nH+m2+fsihxVxY1oEFq9CF33cO28vi2KZrRFPSRjJjS0WsLlhbdDdxRgdQuEDl.MrOxwEKnuMQSTZz4KiIIIzPjiSke0n2o5gnre+8ubNgSDAzhiPnqkr.5KYQLcwoi69BFmeAIj9JVTIq6zcXfTzSxko.WpfahhIA2PlSujXL6.Lx4ACBYZoZhlnoIHmCOWFtbxB4aEV6ulkvlxoFgVnIfirGegjGZXr4TTuELd33U24DD3kwEYfJ1LvWgGwBYqOuHS7kYJ7JPTNe3bvlzqxFzqUY50rD81BkbJQoCsT5I3IAJVrtPigOeNdnPSUyHPZuLUr1hN3qqf6IAKD5FQjanWn.g0H76zr4Qdve0elqKj5Szdugn7dIYJk2x6m8VgbNU2SFEKEffeMq5Z.l6.o88Co8lPNOUqkhcGlb8FPtLAmIndyREAZlT3IE4ZMPURtevJbGA9lmRq69d2prY9eStTUEUmpDfqb8febY.g6wDwoZH91KjI7War1GhnwHKoajPAxnouSW6HKhb0VeDRzDvEuu1HBiW6mrVb6yrgYfXNP6FgoQwOO42lb0k9FyOpViFeuhNmk.OCzPsrwekHEv8zyKCU1e259AxJFdke66Q37oPmh+cSKZt+h7la66GhA8vUw4OlnLJWdnJ5OF1GJjV4HvmPbhoJMybEb5SeCLz0N0nJtOM4FsLFB05xH3Z9QD12UDxWzc4ZgtxtrjQxHvOD0xUW1BW+.qqebtqypBx77Cw1Jhc4XzMcM0NYC5mNe0ZfGga24zNG2o8YmzYi37Yef3ztTb5FWNNe6thSmeryYGexwmhnPMAY8jZz+cXLrFPFlxI5M2MXVHlq.p91XfrYnqHgoWVdg4+aKL9Xo3SviY5fEamiGrENB0XeJ3X9Z1GiGLaFMPWPvCwW7meZ1oh9cYplIlOhnULnz.eYZzD3oOfBQWHnbS2uyAl9TqbSirICLgJByD9G3WtxVFYmbksVoDEQBTxWGX6tMKxeX1I.mDYeCSU7Hir25lZLtYilnH3aJdcPf45+cP2z1wzdOvb7dfoydf4j8.yo6Aly1CL+v8hw74bOOUKirsCvAiGjMb0wYfvLCHqJD8u3aFLHG
-
@treynterrio Does that snippet work for you?
It's also not what I suggested you do...
I said two buttons, one to write a value to a file, one to read a value from the file - no input label required. Let's get this to the most basic thing we can. Once you're in control of your code you'll be able to integrate it into your main project, but we have to get the basics down.
-
@d-healey this is almost working I think bit weird with the button and I need to compile it to change the text
HiseSnippet 1124.3ocsV0taaaCEkJNZaVKcXEXO.B9GEN.YARoI0tcXapwIYva4Ci3tfULLzRKQYyEIRCIpz5EDf8nrGk8Hs2fsKIksoRTJBLV8OBBuePctmKuGxAY7PRdNOCY07UylRPVaXObFSLo2DLkg5e.x5Sriw4Bz9ylhyyIQHKqF+fzmUy0Qpe+y2uONAyBIKMgPWvogjiooTwRqCB9IZRxQ3HxqnoFQuaP+PNqGOgW.3ngsGZJN7R7XxoXYXqYCf3vHpfmMTfEjbj056yilMbB+cLc7WPyoiRHxE9ngvFoMeDOIRhXoUTuIzjnAyq2bDrKCVV8MzU+WYeBMhtv9RV3K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ws2DFJK+uFjPqOmcVgbd5JjytqPN6sB47rUHmNqPNc+f4HmzeYgfmpGG.CCNTcIkk0gJo.0oPz+U+qWsE
-
@treynterrio You're reading the data in the same button callback that you're writing the data.
-
@d-healey It should only work with one button
-
@treynterrio You want to load the file when the plugin is opened not when the button is clicked. Currently your loadInitialData function is only called when the button is clicked.
-
@d-healey ok I finally got it!!! thanks for your help I really appreciate that