Csound Csound-dev Csound-tekno Search About

[Cs-dev] Problems with API (for QuteCsound)

Date2008-05-18 03:30
From"Andres Cabrera"
Subject[Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-18 12:07
FromRory Walsh
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
I also had a problem with this before. In my case I fixed it by making 
sure I added 'csound' the the csd options but more recently I've 
encountered the problem again and couldn't find a fix for it. As time 
was against me I just reverted back to loading a file from disk. Sorry I 
can't be more of a help. Are you going to prepare binary releases of the 
editor? I would love to try it out.

Rory.



Andres Cabrera wrote:
> Hi all,
> 
> I'm nearing completion of my csound editor, which I've called 
> QuteCsound. You can find the sources here:
> https://sourceforge.net/svn/?group_id=227265
> 
> It requires Qt4 and csound to build, comments very welcome. To build, go 
> to the src directory and do:
> qmake
> make
> 
> (or if on OS X, open the Xcode project created by qmake)
> 
> .....
> 
> But I've run into a couple of problems using the API:
> 
> First, it seems that if there are comments in the CsOptions section and 
> the csd is passed using setCSD(), these are inserted in the command 
> line, which causes an error.
> 
> Second, I can't figure out why csound fails to produce results... The 
> way I'm using the API,  on src/qutecsound.cpp:221 :
> 
>     CppSound csound;
>     csound.setCSD(csdText);
>     csound.exportForPerformance();
>     csound.compile();
>     csound.perform();
> 
> produces:
> 
> BEGAN CppSound::compile()...
> No Csound command.
> BEGAN CppSound::perform(0, (nil))...
> ENDED CppSound::perform without compiling or performing.
> 
> What am I missing? (the file csdText is an std::string which contains a 
> valid csd and I'm using Felipe's Debian packages- 5.08)
> 
> Cheers,
> Andrés
> 
> 
> 
> ------------------------------------------------------------------------
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft 
> Defy all challenges. Microsoft(R) Visual Studio 2008. 
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Csound-devel mailing list
> Csound-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/csound-devel

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-18 12:50
FromDave Phillips
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
Andres Cabrera wrote:
> Hi all,
>
> I'm nearing completion of my csound editor, which I've called 
> QuteCsound. You can find the sources here:
> https://sourceforge.net/svn/?group_id=227265
>
> It requires Qt4... 
And minor versions of Qt are the Devil's playground. ;)

Which version (full version, please) of Qt are you using to build your 
program ?

Best,

dp


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-18 13:12
From"Andres Cabrera"
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-18 13:16
From"Andres Cabrera"
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-18 15:26
FromDave Phillips
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
Andres Cabrera wrote:
> I'm using Qt4.3, but I think I'm not using anything particular for 
> that version as the editor is a pretty simple application, I would 
> think it works with any Qt4....
Maybe not:

dlphilp@The3800:~/src/qutecsound/trunk/qutecsound/src> qmake
dlphilp@The3800:~/src/qutecsound/trunk/qutecsound/src> make
/usr/bin/uic configdialog.ui -o ui_configdialog.h
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
Warning: name layoutWidget is already used
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -DQT_NO_DEBUG -DQT_XML_LIB 
-DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/default 
-I. -I/usr/include/QtCore -I/usr/include/QtCore -I/usr/include/QtGui 
-I/usr/include/QtGui -I/usr/include/QtXml -I/usr/include/QtXml 
-I/usr/include -I. -I. -o qutecsound.o qutecsound.cpp
ui_configdialog.h: In member function ‘void 
Ui_ConfigDialog::setupUi(QDialog*)’:
ui_configdialog.h:146: error: ‘class QHBoxLayout’ has no member named 
‘setLeftMargin’
ui_configdialog.h:147: error: ‘class QHBoxLayout’ has no member named 
‘setTopMargin’
ui_configdialog.h:148: error: ‘class QHBoxLayout’ has no member named 
‘setRightMargin’
ui_configdialog.h:149: error: ‘class QHBoxLayout’ has no member named 
‘setBottomMargin’
qutecsound.cpp: In member function ‘void qutecsound::changeFont()’:
qutecsound.cpp:99: warning: passing ‘float’ for argument 2 to 
‘QFont::QFont(const QString&, int, int, bool)’
make: *** [qutecsound.o] Error 1


Qt 4.2.1 on OpenSUSE 10.2, JAD 1.0.

Best,

dp


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net

Date2008-05-18 18:41
From"Andres Cabrera"
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-19 02:41
From"Andres Cabrera"
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-19 16:27
FromFelipe Sateler
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  

Date2008-05-21 03:09
From"Andres Cabrera"
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None  None  

Date2008-05-23 02:17
FromFelipe Sateler
SubjectRe: [Cs-dev] Problems with API (for QuteCsound)
AttachmentsNone  None  None