OK, thanks. pianoist@ya.ru for the case
Posts made by Levitanus
-
RE: Finally: Fully customize stock UI elements with a scripted LookAndFeel
Can't see what should I do
-
RE: Finally: Fully customize stock UI elements with a scripted LookAndFeel
Hi, I'm ready to sign. Ohhh. How complicated things are... It's just few lines from the JUCE repo)
-
RE: HISEScript-Sublime
Actually, The package itself is designed to be always up to date by parsing the current HISE git folder.
But, since I didn't look to the HISE folders\API structure for a while (I just can't find any commit that compiles on my machine), It can leak some API calls.
Still, the package present in packagecontorl.io and you can try it. -
RE: Linux build of HISE
@d-healey said in Linux build of HISE:
try opening in terminal
I've trashed the HDD with Linux partition, and have not reinstalled it yet. But Termnal said it can not find the command (opened from the build folder with the file)
-
RE: Linux build of HISE
Well, I, finally built (I think) the HISE under Ubuntu 18.10.
And, in the build directory HISE Standalone (18mb) appeared. It's been recognized as an extended library and I can't run it...
The last output from the terminal waslinking solution
or something like this. Anything is wrong?)) -
RE: Installing problem in ubuntu 18.04
@d-healey said in Installing problem in ubuntu 18.04:
You will have to compile it
Do You mean the Jack?
-
RE: Installing problem in ubuntu 18.04
also have a problem with building standalone HISE (lastest release) on ubuntu 18.10 within XFICE
Compiling include_juce_audio_devices.cpp In file included from ../../JuceLibraryCode/include_juce_audio_devices.cpp:9:0: ../../../../JUCE/modules/juce_audio_devices/juce_audio_devices.cpp:143:12: fatal error: jack/jack.h: Нет такого файла или каталога #include <jack/jack.h> ^~~~~~~~~~~~~ compilation terminated. Makefile:237: recipe for target 'build/intermediate/Release/include_juce_audio_devices_63111d02.o' failed make: *** [build/intermediate/Release/include_juce_audio_devices_63111d02.o] Error 1
installed jack, but, seemed, something is still missing
-
RE: Add graphic elements and Java script
slowly going))
namespace midiMatrix{ inline function make_header(obj, name){ local header = { frame: Content.addPanel(name + '.header',0,0), cells: { _:30, Ch: 30, LED: 30, DivisiParts: 100, Articulations: 100, Group: 40, IsMaster: 100 }, labels: {}, setWidth: function(width){ this.frame.set('width', width); local sum = 0; for (cell in this.cells){ sum += this.cells[cell]; } local ratio = width / sum; local offset = 0; for (cell in this.cells){ this.labels[cell].set('x', offset); this.labels[cell].set('width', this.cells[cell] * ratio); offset += this.cells[cell] * ratio; } }, }; header.frame.set('parentComponent', name); header.frame.set('height', 30); local offset = 0; local label; for (cell in header.cells){ label = Content.addLabel(name + '.header.' + cell,offset,0); label.set('parentComponent', name+'.header'); label.set('saveInPreset',false); label.setEditable(false); label.set('text', cell); label.set('width', header.cells[cell]); header.labels[cell] = label; offset += header.cells[cell]; }; return header } inline function add(name, max_channels, visible_cells){ local obj = { table: Content.getComponent(name), scrollbar: Content.addPanel(name+'.scroll',0,0), header: make_header(this, name), max_channels: max_channels, visible_cells: visible_cells, data: [], scrollWidth: 10, configure_cells: function(cell){ Console.assertIsDefined(cell['divParts']); Console.assertIsDefined(cell['artics']); for (var i = 0; i < this.max_channels; i++) { this.data[i] = cell; } }, update_dimentions: function(){ local width = this.table.get('width'); local height = this.table.get('height'); local x = this.table.get('x'); local y = this.table.get('y'); this.scrollbar.set('width', this.scrollWidth); this.scrollbar.set('height', height); this.scrollbar.set('y', y); this.scrollbar.set('x', width - this.scrollWidth); this.header.setWidth(width - this.scrollWidth); }, }; obj.scrollbar.set('parentComponent',name); return obj } }
-
RE: Add graphic elements and Java script
@d-healey said in Add graphic elements and Java script:
Or if you know C++ do it that way.
While I read tutorials, I see it's just a language, But looking to a real project I feel Bjorn made cpp as a custom type of torch machine.
In the ID way I afraid of losing the reusability of code. You know... Wanna just write a "class" and use it for the rest of life :D
-
RE: Add graphic elements and Java script
@d-healey said in Add graphic elements and Java script:
Are you trying to create something like a mixer channel?
-
RE: Add graphic elements and Java script
@d-healey a bit durty:
Content.makeFrontInterface(200,200); Console.clear(); namespace GuiVE{ //const var note_names = new Object(); inline function create(name, min, max, ve_mode){ const var arrowsWidth = 7; const var p = { name: name, bg: Content.addPanel(name, 0, 0), text: Content.addLabel(name+"Label"), mode: ve_mode, min: min, max: max, width: 100, height: 20, min: min, max: max, clickedValue: 0, set: function(parameter, value){ this.bg.set(parameter, value); this.text.set(parameter, value); }, setDimentions: function(x, y, width, height){ this.x = x; this.y = y; this.width = width; this.height = height; Content.setPropertiesFromJSON(this.name,{ "x": x, "y":y, "width":width, "height":height }); Content.setPropertiesFromJSON(this.name+"Label",{ "x": x, "y":y, "width":width, "height":height }); }, }; p.bg.set("allowCallbacks", "Clicks, Hover & Dragging"); p.bg.set("width", width); p.bg.set("height", height); p.text.set("parentComponent", name); p.text.set("width", width-arrowsWidth); p.text.set("height", height); p.bg.setColour("BG", 0xff000000); p.bg.setColour("TXT", 0xffffffff); p.bg.setPaintRoutine(function(g){ g.setColour(0xffffffff); g.drawTriangle([p.bg.getWidth()-arrowsWidth, 0, arrowsWidth, arrowsWidth], 0.0, 1.0); g.drawTriangle([p.bg.getWidth()-arrowsWidth, p.bg.getHeight()-arrowsWidth, arrowsWidth, arrowsWidth], 3.14, 1.0); }); p.setValue = function(value){ p.text.set("text", value); }; p.getValue = function(){ var value = parseInt(p.text.get("text"),10); return value }; p.bg.setMouseCallback(function(event){ if (event.clicked == 1){ p.clickedValue = p.getValue(); if (event.doubleClick == 1){ p.setValue(p.defaultValue); }; if (event.mouseDownX > (p.bg.getWidth()-arrowsWidth)){ if (event.mouseDownY < (p.bg.getHeight()/3)){ p.setValue(p.clickedValue+1); } else{ p.setValue(p.clickedValue-1); }; }; }; if (event.drag == 1){ var value = p.clickedValue - Math.floor(event.dragY/3); p.setValue(value); }; }); p.text.set("text", 1); p.text.set("saveInPreset", false); return p } } const var testVe = GuiVE.create("myve", 0, 100, false); Console.print(testVe.text.getValue()); testVe.setDimentions(10,10,100,20); //testVe.set("width", 50);
-
RE: Add graphic elements and Java script
@d-healey I mean, we can return an object with custom methods, contains other objects. For my taste, this is enough to make some OOP-like abstractions.
-
RE: Add graphic elements and Java script
I want to ask about custom script-panel "classes".
For example, I wanna to make a solid "class" of a table row. Which wrapped into a scrip panel and consists of some variable amount of buttons and knobs. I would use the methods of this complex object and have the control of its constructor.
I found that addScriptPanel within given name works fine, but sometimes several controls are added into the preset itself if the code is changed. What the best way to implement this? -
RE: HISEScript-Sublime
12 days waiting of review to package control...
Anyone has posted packages there yet? How long does it take?Still, have not touch any Prettier script to adopt for using with HISE syntax... Too much of proprietary work... Hope... Hope, there will be a couple of months to do what I endeavor.
-
RE: HISEScript-Sublime
@dominik-mayer said in HISEScript-Sublime:
package-folder to HISEScript
Generally, it has to be. But I afraid of other repositories with the same name. So... I hope, when I get to package control, it will be much easier.
@dominik-mayer said in HISEScript-Sublime:
Package Settings > HISEScript > Settings - User
They are mentioned in the install guide on GitHub. Or not quite? ))
-
RE: HISEScript-Sublime
@dominik-mayer
Pity, but now I can't tell more. Will try to install it from the laptop at morning and, maybe on ubuntu.
I think it can be, from one hand too high in the folder structure, or too low. But maybe other problems. Maybe, something wrong with paths, getting by the script. But, generally, the syntax has to appear just with pasting it in the right place... -
RE: HISEScript-Sublime
Christoph, thanks!
updated:
added:
- namespaces
- locals
- snippets:
- callbacks mandatory
- callback of control
- include
- setting
"hise_supress_completions": false
- Math, Array, String objects now parsed from source
changed:
- Now syntax is copy of standart Javascript with additions to native scopes, not just added scopes.