Csound Csound-dev Csound-tekno Search About

[Csnd] CsoundQt 0.9.6

Date2019-07-09 07:35
FromTarmo 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:

  • HTML support

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!

  • Export widgets as QML code

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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)

  • Added "Midi Learn" to widgets' context menu.

Fixes

  • Improvements to Linux intall rules

  • Added support to use system rtmidi (Linux)

  • Support for PythonQt 3.2 and RtMidi 3.0

  • Correct highlighting for // comment mark

  • Correct "Download manual" link

  • Fixes and improvements to Floss Manual and several other examples

  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).

  • Support for Retina and HDPI screens.

  • Highlighting for .udo files

  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).

  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.

  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).

  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.

  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.

  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 08:30
FromEduardo Moguillansky
SubjectRe: [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:
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:

  • HTML support

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!

  • Export widgets as QML code

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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)

  • Added "Midi Learn" to widgets' context menu.

Fixes

  • Improvements to Linux intall rules

  • Added support to use system rtmidi (Linux)

  • Support for PythonQt 3.2 and RtMidi 3.0

  • Correct highlighting for // comment mark

  • Correct "Download manual" link

  • Fixes and improvements to Floss Manual and several other examples

  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).

  • Support for Retina and HDPI screens.

  • Highlighting for .udo files

  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).

  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.

  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).

  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.

  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.

  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 08:31
FromRichard van Bemmelen
SubjectRe: [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>:
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:

  • HTML support

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!

  • Export widgets as QML code

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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)

  • Added "Midi Learn" to widgets' context menu.

Fixes

  • Improvements to Linux intall rules

  • Added support to use system rtmidi (Linux)

  • Support for PythonQt 3.2 and RtMidi 3.0

  • Correct highlighting for // comment mark

  • Correct "Download manual" link

  • Fixes and improvements to Floss Manual and several other examples

  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).

  • Support for Retina and HDPI screens.

  • Highlighting for .udo files

  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).

  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.

  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).

  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.

  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.

  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 16:19
FromTarmo Johannes
SubjectRe: [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:

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:
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:

  • HTML support

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!

  • Export widgets as QML code

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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)

  • Added "Midi Learn" to widgets' context menu.

Fixes

  • Improvements to Linux intall rules

  • Added support to use system rtmidi (Linux)

  • Support for PythonQt 3.2 and RtMidi 3.0

  • Correct highlighting for // comment mark

  • Correct "Download manual" link

  • Fixes and improvements to Floss Manual and several other examples

  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).

  • Support for Retina and HDPI screens.

  • Highlighting for .udo files

  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).

  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.

  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).

  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.

  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.

  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 19:00
FromRichard
SubjectRe: [Csnd] CsoundQt 0.9.6

Hi Tarmo,

On Windows it looks ok, I tried some midi synths.
The Minimal HTML example gave an error message when I pressed on the 'Get as return value' button:

'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:
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:

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:
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:

  • HTML support

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!

  • Export widgets as QML code

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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)

  • Added "Midi Learn" to widgets' context menu.

Fixes

  • Improvements to Linux intall rules

  • Added support to use system rtmidi (Linux)

  • Support for PythonQt 3.2 and RtMidi 3.0

  • Correct highlighting for // comment mark

  • Correct "Download manual" link

  • Fixes and improvements to Floss Manual and several other examples

  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).

  • Support for Retina and HDPI screens.

  • Highlighting for .udo files

  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).

  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.

  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).

  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.

  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.

  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 19:54
FromTarmo Johannes
SubjectRe: [Csnd] CsoundQt 0.9.6
AttachmentsNone  None  

Date2019-07-09 20:11
FromRichard
SubjectRe: [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;
[D][unknown:0 unknown]
0dBFS level = 32768.0
--Csound version 6.12 (double samples) Nov  3 2018
[commit: bc81dfb2877c7302d7f4849c098a1f88cf3f60d7]
libsndfile-1.0.28
end of score.           overall amps:      0.0
       overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
Fatal Python error: PyThreadState_Get: no current thread
Csound tidy up: Abort trap
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...13 completed.

On 09/07/2019 20:54, Tarmo Johannes wrote:
Thanks,

On Windows 'Get as return value  -> undefined' is OK (it is a bit vague, I agree) -  there are two ways how to get channel values - as return value when built with WebKit or as a callback when build with WebEngine (the default).  Good point, I will comment the Webkit part out, it is not relevant nowadays any more.

MacOs - most likely I made some packaging error and there are wrong links. Can you please run CsoundQt from console (in the CsoundQt...-app Show contents -> Contents -> MacOS and click on the binary CsoundQt-d-py-html, this should run the program in terminal). Do you see any output that reveals the problem? Like some library not found?

tarmo

On Jul 9 2019, at 9:00 pm, Richard <zappfinger@gmail.com> wrote:

Hi Tarmo,

On Windows it looks ok, I tried some midi synths.
The Minimal HTML example gave an error message when I pressed on the 'Get as return value' button:

'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:

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:


Greetings,
tarmo


Sent from Mailspring
Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 10:30:
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:
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:
  • HTML support
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


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!

  • Export widgets as QML code
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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)
  • Added "Midi Learn" to widgets' context menu.
Fixes
  • Improvements to Linux intall rules
  • Added support to use system rtmidi (Linux)
  • Support for PythonQt 3.2 and RtMidi 3.0
  • Correct highlighting for // comment mark
  • Correct "Download manual" link
  • Fixes and improvements to Floss Manual and several other examples
  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).
  • Support for Retina and HDPI screens.
  • Highlighting for .udo files
  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).
  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.
  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).
  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.
  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.
  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 20:31
FromTarmo Johannes
SubjectRe: [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:

Here's the terminal output:

RMA:~ richard$ /Applications/CsoundQt-d-py-html-cs6.app/Contents/MacOS/CsoundQt-d-py-html-cs6 ; exit;
[D][unknown:0 unknown]
0dBFS level = 32768.0
--Csound version 6.12 (double samples) Nov  3 2018
[commit: bc81dfb2877c7302d7f4849c098a1f88cf3f60d7]
libsndfile-1.0.28
end of score.           overall amps:      0.0
       overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
Fatal Python error: PyThreadState_Get: no current thread
Csound tidy up: Abort trap
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...13 completed.

On 09/07/2019 20:54, Tarmo Johannes wrote:
Thanks,

On Windows 'Get as return value  -> undefined' is OK (it is a bit vague, I agree) -  there are two ways how to get channel values - as return value when built with WebKit or as a callback when build with WebEngine (the default).  Good point, I will comment the Webkit part out, it is not relevant nowadays any more.

MacOs - most likely I made some packaging error and there are wrong links. Can you please run CsoundQt from console (in the CsoundQt...-app Show contents -> Contents -> MacOS and click on the binary CsoundQt-d-py-html, this should run the program in terminal). Do you see any output that reveals the problem? Like some library not found?

tarmo

On Jul 9 2019, at 9:00 pm, Richard <zappfinger@gmail.com> wrote:

Hi Tarmo,

On Windows it looks ok, I tried some midi synths.
The Minimal HTML example gave an error message when I pressed on the 'Get as return value' button:

'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:

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:


Greetings,
tarmo


Sent from Mailspring
Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 10:30:
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:
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:
  • HTML support
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


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!

  • Export widgets as QML code
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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)
  • Added "Midi Learn" to widgets' context menu.
Fixes
  • Improvements to Linux intall rules
  • Added support to use system rtmidi (Linux)
  • Support for PythonQt 3.2 and RtMidi 3.0
  • Correct highlighting for // comment mark
  • Correct "Download manual" link
  • Fixes and improvements to Floss Manual and several other examples
  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).
  • Support for Retina and HDPI screens.
  • Highlighting for .udo files
  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).
  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.
  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).
  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.
  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.
  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-09 23:19
FromTarmo Johannes
SubjectRe: [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:
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:

Here's the terminal output:

RMA:~ richard$ /Applications/CsoundQt-d-py-html-cs6.app/Contents/MacOS/CsoundQt-d-py-html-cs6 ; exit;
[D][unknown:0 unknown]
0dBFS level = 32768.0
--Csound version 6.12 (double samples) Nov  3 2018
[commit: bc81dfb2877c7302d7f4849c098a1f88cf3f60d7]
libsndfile-1.0.28
end of score.           overall amps:      0.0
       overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
Fatal Python error: PyThreadState_Get: no current thread
Csound tidy up: Abort trap
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...13 completed.

On 09/07/2019 20:54, Tarmo Johannes wrote:
Thanks,

On Windows 'Get as return value  -> undefined' is OK (it is a bit vague, I agree) -  there are two ways how to get channel values - as return value when built with WebKit or as a callback when build with WebEngine (the default).  Good point, I will comment the Webkit part out, it is not relevant nowadays any more.

MacOs - most likely I made some packaging error and there are wrong links. Can you please run CsoundQt from console (in the CsoundQt...-app Show contents -> Contents -> MacOS and click on the binary CsoundQt-d-py-html, this should run the program in terminal). Do you see any output that reveals the problem? Like some library not found?

tarmo

On Jul 9 2019, at 9:00 pm, Richard <zappfinger@gmail.com> wrote:

Hi Tarmo,

On Windows it looks ok, I tried some midi synths.
The Minimal HTML example gave an error message when I pressed on the 'Get as return value' button:

'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:

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:


Greetings,
tarmo


Sent from Mailspring
Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 10:30:
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:
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:
  • HTML support
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


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!

  • Export widgets as QML code
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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)
  • Added "Midi Learn" to widgets' context menu.
Fixes
  • Improvements to Linux intall rules
  • Added support to use system rtmidi (Linux)
  • Support for PythonQt 3.2 and RtMidi 3.0
  • Correct highlighting for // comment mark
  • Correct "Download manual" link
  • Fixes and improvements to Floss Manual and several other examples
  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).
  • Support for Retina and HDPI screens.
  • Highlighting for .udo files
  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).
  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.
  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).
  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.
  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.
  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here

Date2019-07-10 21:45
FromRichard
SubjectRe: [Csnd] CsoundQt 0.9.6

Hi,

Unfortunately, this gives the same result.
I have also noticed the Google suggestions about multiple versions of Python (that is what I have), but I do not want to mess with them...

Richard

On 10/07/2019 00:19, Tarmo Johannes wrote:
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:
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:

Here's the terminal output:

RMA:~ richard$ /Applications/CsoundQt-d-py-html-cs6.app/Contents/MacOS/CsoundQt-d-py-html-cs6 ; exit;
[D][unknown:0 unknown]
0dBFS level = 32768.0
--Csound version 6.12 (double samples) Nov  3 2018
[commit: bc81dfb2877c7302d7f4849c098a1f88cf3f60d7]
libsndfile-1.0.28
end of score.           overall amps:      0.0
       overall samples out of range:        0
0 errors in performance
Elapsed time at end of performance: real: 0.000s, CPU: 0.000s
Fatal Python error: PyThreadState_Get: no current thread
Csound tidy up: Abort trap
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
Deleting expired sessions...13 completed.

On 09/07/2019 20:54, Tarmo Johannes wrote:
Thanks,

On Windows 'Get as return value  -> undefined' is OK (it is a bit vague, I agree) -  there are two ways how to get channel values - as return value when built with WebKit or as a callback when build with WebEngine (the default).  Good point, I will comment the Webkit part out, it is not relevant nowadays any more.

MacOs - most likely I made some packaging error and there are wrong links. Can you please run CsoundQt from console (in the CsoundQt...-app Show contents -> Contents -> MacOS and click on the binary CsoundQt-d-py-html, this should run the program in terminal). Do you see any output that reveals the problem? Like some library not found?

tarmo

On Jul 9 2019, at 9:00 pm, Richard <zappfinger@gmail.com> wrote:

Hi Tarmo,

On Windows it looks ok, I tried some midi synths.
The Minimal HTML example gave an error message when I pressed on the 'Get as return value' button:

'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:

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:


Greetings,
tarmo


Sent from Mailspring
Kontakt Eduardo Moguillansky (<eduardo.moguillansky@gmail.com>) kirjutas kuupäeval T, 9. juuli 2019 kell 10:30:
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:
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:
  • HTML support
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


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!

  • Export widgets as QML code
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

  • New translations to Korean, Persian and Turkish, several translations updated (Thanks to Joachim Heintz)
  • Added "Midi Learn" to widgets' context menu.
Fixes
  • Improvements to Linux intall rules
  • Added support to use system rtmidi (Linux)
  • Support for PythonQt 3.2 and RtMidi 3.0
  • Correct highlighting for // comment mark
  • Correct "Download manual" link
  • Fixes and improvements to Floss Manual and several other examples
  • _Start _Stop and other reserved channels' wisgets work also now via rtmidi (using midi controller).
  • Support for Retina and HDPI screens.
  • Highlighting for .udo files
  • Added .udo, .inc and .html to known files in file dialogs and allow opening from file manager (corrected mime-types on Linux).
  • Improvements to sensekey support - now keys (like arrow keys) with several bytes of ANSI key sequence are handled.
  • Workaround for mysterious bug to round floating point division on first run (9/4 = 2.0).
  • Fixed crash on running .orc file when there is no .sco. Now orc without score can be run as scoreless csd.
  • Better Midi Learn dialog, added Set/Cancel buttons, fixed crash on assigning MIDI slider/knob to button, spinbox and similar.
  • Support for MacOS Mojave.


Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here
Csound mailing list Csound@listserv.heanet.ie https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND Send bugs reports to https://github.com/csound/csound/issues Discussions of bugs and features can be posted here