[Csnd] Csound, NetBeans Java FXML
Date | 2017-12-02 09:04 |
From | Richard |
Subject | [Csnd] Csound, NetBeans Java FXML |
I just recently discovered Scene Builder, to create powerful GUI's in NetBeans. I am trying to convert Jim Hearon's article (a simple Java frontend application), but apparently things have changed in csound 6. I get errors on these lines SWIGTYPE_p_void myvoid; SWIGTYPE_p_CSOUND_ mycsound = csnd6.csoundCreate(myvoid); CsoundArgVList args = new CsoundArgVList(); CsoundMYFLTArray myfltarray = new CsoundMYFLTArray(); int myinputch = csndConstants.CSOUND_INPUT_CHANNEL; int mycontch = csndConstants.CSOUND_CONTROL_CHANNEL; SWIGTYPE_p_p_float myptr = myfltarray.GetPtr(); What types should I use for Csound 6? Richard 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 |
Date | 2017-12-02 09:58 |
From | zappfinger |
Subject | Re: [Csnd] Csound, NetBeans Java FXML |
I managed to get rid of most of the errors simply by: import csnd6.*; and changing the float to a double as in: SWIGTYPE_p_p_double myptr = myfltarray.GetPtr(); but the following lines still give an error (cannot find symbol): int myinputch = csndConstants.CSOUND_INPUT_CHANNEL; int mycontch = csndConstants.CSOUND_CONTROL_CHANNEL; I see there is a controlChannelType class in the csnd6.jar, but it is unclear how to use it... -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html 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 |
Date | 2017-12-02 10:10 |
From | Richard |
Subject | Re: [Csnd] Csound, NetBeans Java FXML |
I found Steven's examples on Java and Csound6, so I'll go from there... Richard On 02/12/17 10:58, zappfinger wrote: > I managed to get rid of most of the errors simply by: > > import csnd6.*; > > and changing the float to a double as in: > > SWIGTYPE_p_p_double myptr = myfltarray.GetPtr(); > > but the following lines still give an error (cannot find symbol): > > int myinputch = csndConstants.CSOUND_INPUT_CHANNEL; > int mycontch = csndConstants.CSOUND_CONTROL_CHANNEL; > > I see there is a controlChannelType class in the csnd6.jar, but it is > unclear how to use it... > > > > > > -- > Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html > > 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 |
Date | 2017-12-02 22:54 |
From | zappfinger |
Subject | Re: [Csnd] Csound, NetBeans Java FXML |
Since I had some trouble getting Java FXML to work with Csound (had to do with threads), I decided to take another approach. I already had a Python Csound server, and recently discovered a library called Py4j to connect Python and Java. This led to YAG4S (Yet Another GUI for Csound) in the following way: java FXML application <--> Python <--> Csound This works like a charm... Richard -- Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html 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 |