[Csnd] Using CS6Editor frontend
Date | 2014-03-12 00:39 |
From | hlolli |
Subject | [Csnd] Using CS6Editor frontend |
Hi all. I'm trying to use CS6Editor on Linux. I cd to Csound6.02/frontends/CS6Editor and run ant. Then the computer starts to compile via javac. But I hit a wall package csnd6 does not exist [javac] import csnd6.Csound; error: package csnd6 does not exist [javac] import csnd6.CsoundArgVList; error: package csnd6 does not exist [javac] import csnd6.csnd6; I know those definitions are located in CS6Editor/src/cs6editor/MainWindow.java maybe the solution is to link differently when using import?? Maybe some java expert knows how to do this? -- View this message in context: http://csound.1045644.n5.nabble.com/Using-CS6Editor-frontend-tp5733166.html Sent from the Csound - General mailing list archive at Nabble.com. |
Date | 2014-03-13 18:29 |
From | Steven Yi |
Subject | Re: [Csnd] Using CS6Editor frontend |
I built that application using Netbeans and the ant file is from there. I have the csnd.jar setup within Netbeans so that's how that gets compiled. I think to run it from the commandline, you may need to set the lib location manually, using something like: ant -Dlibs.csnd6.classpath=/path/to/csnd.jar I haven't tried that, but just from looking at the nbproject/build-impl.xml that looks like the value to set. Could you give that a try? steven On Tue, Mar 11, 2014 at 8:39 PM, hlolli |
Date | 2014-03-13 23:33 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
I installed NetBeans I don't know how to add compiler paths in that program or search path to add csnd6.jar. But withant -Dlibs.csnd6.classpath=/home/hlolli-linux/Csound6.02/csnd6.jar I was able to do successful build. I didn't get any executable file or run script, so maybe I should ask first, how do you run CS6Editor? thanks Steven 2014-03-13 18:29 GMT+00:00 Steven Yi <stevenyi@gmail.com>: I built that application using Netbeans and the ant file is from -- Hlöðver Sigurðsson |
Date | 2014-03-13 23:39 |
From | Steven Yi |
Subject | Re: [Csnd] Using CS6Editor frontend |
I would run it from with Netbeans while developing it. After building it, there should be a CS6Editor.jar file in the dist folder. (You might need to use 'ant jar'). With that, you should be able to use something like: java -jar dist/CS6Editor.jar -cp /path/to/csnd6.jar Let me know if there's issues! steven On Thu, Mar 13, 2014 at 7:33 PM, Hlöðver Sigurðsson |
Date | 2014-03-14 00:42 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
In netbeans I added csnd6.jar in path and that removed all the compilor error messages, I'm only left with one: Im guessing this is supposed to be lib_jcsound6.so maybe a typo error in some code?_jcsound6 native code library failed to load. java.lang.UnsatisfiedLinkError: no _jcsound6 in java.library.path 2014-03-13 23:39 GMT+00:00 Steven Yi <stevenyi@gmail.com>: I would run it from with Netbeans while developing it. After building -- Hlöðver Sigurðsson |
Date | 2014-03-14 16:46 |
From | Steven Yi |
Subject | Re: [Csnd] Using CS6Editor frontend |
That is the correct name; Java will modify the library name depending on platform. This means you're java.library.path is not defined, a requirement for Java applications to run the native part of the Csound API from Java. On some platforms, the library is automatically picked up from where it is installed. On Linux though, you may need to give that value when running the app, i.e.: java -Djava.library.path=/path/to/directory/where/.so/is -jar ... On Thu, Mar 13, 2014 at 8:42 PM, Hlöðver Sigurðsson |
Date | 2014-03-30 02:24 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
This is what made CS6editor run: In Project properties in NetBeans I chose -Run and in VM option field I inserted: -Djava.library.path=/usr/local/lib/
and Bingo. Now since I'm so used to CsoundQT I'm having problems with console flags. So I was hoping you could send me your test.csd file which the program CS6Editor is originally looking for(offlist email). I made my own csd file but I'm not getting realtime audio. Plus, how do you evaluate the csound code in realtime like you did on your youtube video. Is this some key combination?
2014-03-14 16:46 GMT+00:00 Steven Yi <stevenyi@gmail.com>: That is the correct name; Java will modify the library name depending Hlöðver Sigurðsson |
Date | 2014-04-01 20:51 |
From | Steven Yi |
Subject | Re: [Csnd] Using CS6Editor frontend |
I think it's running in realtime for me as I have this in my ~/.csound6rc file: -+rtaudio=pa_bl -g -o dac -W -d -+ignore_csopts=true I put that editor together pretty quickly as a proof of concept environment. It looks like the shortcut I used is shift-enter. The code looks at what tab is selected and will either send the selected text as score or as orc code to Csound. Hope that helps! steven On Sat, Mar 29, 2014 at 9:24 PM, Hlöðver Sigurðsson |
Date | 2014-04-01 20:57 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
Yes, I was just on a flight without internet. I was able to find that all out on the plain, very simple. Sometimes I ask too early for help. But this looks exciting. Only think I miss is that macros don't seem to work if you define macros text in the csd file and call it in CS6Edtiror by $MACROS, to speed up live coding typing.
2014-04-01 19:51 GMT+00:00 Steven Yi <stevenyi@gmail.com>: I think it's running in realtime for me as I have this in my ~/.csound6rc file: Hlöðver Sigurðsson |
Date | 2014-04-01 21:05 |
From | Steven Yi |
Subject | Re: [Csnd] Using CS6Editor frontend |
That's a tricky thing having to do with Csound's compiler. From what I remember of the code, I think macros are discarded each run. John or Victor would know better about those things. Could you try evaluating the macro definition in addition to the new text you would like to compile? BTW: I think CsoundQt has the ability to select and evaluate Csound code to a live instance, but I don't remember if it's in the latest version that comes with the Csound installer or not. On Tue, Apr 1, 2014 at 3:57 PM, Hlöðver Sigurðsson |
Date | 2014-04-01 21:18 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
Yes, Im familiar with csoundQT live coding function. I put more faith in CS6Editor because of frequent crashing. At least when using Blue, I never crash, just get errors. Same with cabbage, it can livecode too but it also tends to crash. Well of course to be fair it's 99% of the time because of illeagal commands or chocking the CPU, but somehow, like when choosing wrong table size for GEN01, I didn't crash from blue, maybe luck I don't know. Also I think for the nerd factor of using almost notepad looking environment will astonish some audience :)
2014-04-01 20:05 GMT+00:00 Steven Yi <stevenyi@gmail.com>: That's a tricky thing having to do with Csound's compiler. From what I Hlöðver Sigurðsson |
Date | 2014-04-01 21:20 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
Sorry, I mean I think CS6Editor will crash less often than CsoundQT. Im in florida having beer in the sun, so I'm writing bit confusingly. -Hlolli 2014-04-01 20:18 GMT+00:00 Hlöðver Sigurðsson <hlolli@gmail.com>:
Hlöðver Sigurðsson |
Date | 2014-04-01 22:21 |
From | Andres Cabrera |
Subject | Re: [Csnd] Using CS6Editor frontend |
Hi, I have made some important stability changes in CsoundQt relatively recently, are you using the very latest version? If it is csound that is crashing, any front end that uses the API will go down with it. But we are interested in hearing of any particular reproduceable crashes, in Csound or any of the applications.Cheers, Andrés On Tue, Apr 1, 2014 at 1:18 PM, Hlöðver Sigurðsson <hlolli@gmail.com> wrote:
|
Date | 2014-04-05 12:52 |
From | Hlöðver Sigurðsson |
Subject | Re: [Csnd] Using CS6Editor frontend |
Try this Andres: <CsoundSynthesizer> <CsOptions> </CsOptions> <CsInstruments> sr = 48000 ksmps = 128 nchnls = 2 0dbfs = 1 giSq ftgen 2, 0, 256, -7, 1, 128, 1, 0, -1, 128, -1 #include "live.txt" instr 1 kTimi times if (kTimi%2 == 0) goto nota goto endir nota: event "i", 2, 0, 1 rireturn endir: reinit nota endin instr 2 kVol = -20 kNote = 8.00 $Square endin </CsInstruments> <CsScore> f 0 3600 i 1 0 360 </CsScore> </CsoundSynthesizer> where live.txt is
#define Square #
CsoundQT crashes when I revalueate kVol = -20 or kNote = 8.00 can you see if this will crash your CsoundQt?
I'm btw using 0.8.2 version on Linux Fedora. 2014-04-01 21:21 GMT+00:00 Andres Cabrera <mantaraya36@gmail.com>:
-- Hlöðver Sigurðsson |