[Csnd] CsoundQt 0.9.6
Date | 2019-07-09 07:35 |
From | Tarmo Johannes |
Subject | [Csnd] CsoundQt 0.9.6 |
Hi, After long work, last fixes ans small improvements, new version of CsoundQt is about to come out! Please try the release candidate today if you want it to be part of soon-to-be released Csound 6.13. Sorry for pressure... Binaries and source: Release notes below. Thanks! tarmo ----- version 0.9.6 introduces HTML support on all supported platforms, enables exporting widgets to QML code (to be used with CsoundRemote) and fixes a number of bugs. The source and binaries can be downloaded from: https://github.com/CsoundQt/CsoundQt/releases/tag/0.9.6. New in version 0.9.6:
Support for HTML is available now on Windows, MacOS and Linux (before it was realized only on Windows). It is based by default on QtWebEngine technology that uses Chromium engine as its core. With older Qt versions (before Qt 5.6) Html support can be built using QtWebKit, but this is not suggested solution. To build CsoundQt with HTML support, use one of the following flags in your qmake options (or put it to config.user.pri file): CONFIG+=html_webengine # (preferably use Qt 5.8 or later) or CONFIG+=html_webkit # (Qt 5.5 or earlier) Html code can be used within csd file or the as an complete html file that uses Csound via Csound api - similar to WebAudio Csound or Csound on Node.js. To get started, see Examples-> Html5 support Documentation: http://csoundqt.github.io/pages/html5-support.html There are also two new templates accessible via File->Templates menu: cound+html-template.csd and csoundqt-or-webcsound-template.html. The latter helps to write html files that work both in CsoundQt and on web (using WebCsound javascript API). NB! The installer package on Windows and MacOS is now considerably bigger since it has to include the QtWebEngine core. Essential part of the code for HTML support is written by Michael Gogins. Thanks!
Via File->Export Widgets to QML menu not yet all, but the main CsoundQt widgets can be converted to QML code. This is useful to export the user interface to separate device that controls Csound using UDP messages with the help of application CsoundRemote). More information: https://github.com/tarmoj/CsoundRemote/blob/master/README.md
Fixes
|
Date | 2019-07-09 08:30 |
From | Eduardo Moguillansky |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Tarmo, thanks for the update. Under linux (ubuntu 19.04) it works great.
html support is working now, although I don't use this myself.
What I am actually curious about is how the qml support works (I
have no experience with qml). Would it be possible for you to do a
quick example or explain how you use that yourself? thanks, eduardo On 09.07.19 08:35, Tarmo Johannes
wrote:
|
Date | 2019-07-09 08:31 |
From | Richard van Bemmelen |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Great Tarmo! Will have a look later today... Richard Op di 9 jul. 2019 om 08:35 schreef Tarmo Johannes <trmjhnns@gmail.com>:
|
Date | 2019-07-09 16:19 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Thanks, Eduardo, Richard! Can any Windows or Mac people confirm if it works for you? @Eduardo - QML itself is a very powerful declarative programming language on top of Qt platform, great (I think the best) for creating cross-platform good looking UIs that work well also on mobile platforms. The idea of "Export to QML" in CsoundQt is to be able to detach the user interface and control Csound from another device (like smartphone) via UDP messages. I have created an app CsoundRemote https://github.com/tarmoj/CsoundRemote/blob/master/README.md that can load an UI written in QML. The QML file can communicate with csound via usual API calls like csound.setControlChannel(channel, value). The program maps such calls to according UDP messages and takes care of communication wit Csound. I have created two demos how to export widgets from CsoundQt and how to create an interface with QtCreator: Currently not all CsoundQt widgets can be exported, at the moment only label, slider, knob, display, spinbox (of integer values) are supported. And second reason: to be honest, I am thinking about a new front-end, called CsoundQml for now, where the user interface will be completely in QML (so one can write however sophisticated UIs) but the main thing is that the Csound engine and UI are kept in separate indendent processes so when Csound crashes, the UI keeps running and it is easy to restart the engine. The system uses QtRemoteObjects technology that enables communication between the objects as if they were in one program when they can be separated also different computers or even cluster. The proof-of concept is actually ready, I write longer about it next week: https://github.com/tarmoj/CsoundQml/releases Greetings, tarmo Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 10:30:
|
Date | 2019-07-09 19:00 |
From | Richard |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Hi Tarmo, On Windows it looks ok, I tried some midi synths. 'TestChannel undefined' (I think it should be testChannel) On Mac I could not start the program. The opening (splash) window opens very shortly but then goes away... Richard On 09/07/2019 17:19, Tarmo Johannes
wrote:
|
Date | 2019-07-09 20:11 |
From | Richard |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Here's the terminal output: RMA:~ richard$
/Applications/CsoundQt-d-py-html-cs6.app/Contents/MacOS/CsoundQt-d-py-html-cs6
; exit; On 09/07/2019 20:54, Tarmo Johannes
wrote:
|
Date | 2019-07-09 20:31 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Hm, does not ring a bell yet for me. Can anybody else on MacOs confirm? Thanks, Tarmo T, 9. juuli 2019 22:12 Richard <zappfinger@gmail.com> kirjutas:
|
Date | 2019-07-09 23:19 |
From | Tarmo Johannes |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Hi, Richard, I am not by the Mac development computer, meanwhile can you try the last beta build that has been reported to work. Google search about your error message reveals similar problem in cases where there are several python versions installed (something with homebrew) and somewhere happens a conflict. Maybe it gives an idea for you to identify the problem: And might be that somehow again Pythin linking in CsoundQt is wrong, although I belive I have gotten the building scripts right... tarmo Kontakt Tarmo Johannes (<trmjhnns@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 22:31:
|
Date | 2019-07-10 21:45 |
From | Richard |
Subject | Re: [Csnd] CsoundQt 0.9.6 |
Hi, Unfortunately, this gives the same result. Richard On 10/07/2019 00:19, Tarmo Johannes
wrote:
|