Csound Csound-dev Csound-tekno Search About

Re: Lettuce Questions

Date2006-04-27 20:21
From"Art Hunkins"
SubjectRe: Lettuce Questions
AttachmentsLettuceGloria.csd  
Rory,

Version 1.3.1 is a major improvement, and solves most of the problems I had
experienced.

Two remain, however - #1 relates to compiling a .csd on Win ME (Win XP has
an apparently related problem); #2 relates to performance of a .csd that
includes an FLTK window (and MIDI).

#1: (ME only) When attempting to compile a .csd from a plugin thumb drive, I
get the "can't copy file" error message I mentioned earlier. If I copy my
source file to my C: drive (Lettuce dir), this doesn't happen; instead, I
progress to a Cabbage compiler message error: "Function returned 0, cannot
continue operation." None of this occurs (same .csd and drives) with XP.

#1A: (*related* issue with XP) When compiling a .csd that contains *an FLTK
performance window*, a compile error message ("not enough GUI arguments" or
some such) occurs. The run continues, but the generated .exe does not
continue to run properly. The same file, run directly in Lettuce without
compilation, runs fine - and is attached. (You should be able to test it
even without MIDI attached as long as your system shows a MIDI input device
of some kind.)

#2: With either OS, running a .csd with an FLTK performance window works
fine directly with Csound5 (from Csedit, incidentally). In ME run from
Lettuce, such a file (e.g., the one attached), gives three error messages
when Stop is pressed: the first two are Windows  errors, the third
is a  error. These are immediately successive, and the third
results in shutting down Lettuce. This all happens during the "clean up"
files at the point of run shut down; the first message occurs after the
first temp file (of three) is closed. None of this happens in XP.

#2A: At the end of an FLTK window run in Lettuce, if I close the FLTK window
before hitting the Lettuce Stop button. Lettuce and the FLTK window both
close completely. (This is on ME and XP.) This situation does not
particularly bother me, however.

Thanks for your great job with Lettuce, and also for all the improvements.

Art Hunkins

----- Original Message -----
From: "Rory Walsh" 
To: 
Sent: Thursday, April 27, 2006 2:44 AM
Subject: Re: [Csnd] Lettuce Questions


> Now you're good to go
> http://rorywalsh.ear.ie/RoryFolder/Lettuce1-3-1.exe
> No more annoying messages I hope......
>
> Rory.
>
>
> Rory Walsh wrote:
> > Sorry there is still a problem, give me a sec...
> >
> > Rory Walsh wrote:
> >> No. It's fixed and updated now.
> >>
> >> Rory.
> >>
> >> Marc Demers wrote:
> >>> Hi Rory,
> >>>
> >>> Is it normal to have this message each time we open Lettuce: Lettuce
> >>> had problems opening user settingd and afterward: User settings have
> >>> now been reset.
> >>>
> >>> I have change the setting to goes along with my PC but the same two
> >>> messages appear at the opening.
> >>>
> >>> Regards,
> >>>
> >>> Marc
> >>> ----- Original Message ----- From: "Rory Walsh" 
> >>> To: 
> >>> Sent: Tuesday, April 25, 2006 10:56 AM
> >>> Subject: Re: [Csnd] Lettuce Questions
> >>>
> >>>
> >>>> There is a version that supports double samples here
> >>>>
> >>>> rorywalsh.ear.ie/RoryFolder/setup64.exe
> >>>>
> >>>> I haven't really tested it but hopefully it should be ok. Let me
> >>>> know if there are any problems. I haven't linked to it from the
> >>>> lettuce homepage yet just in case it does not work as expected....
> >>>>
> >>>> Rory.
> >>>>
> >>>> Marc Demers wrote:
> >>>>> Hi Rory,
> >>>>>
> >>>>> Is it a big job to adapt Lettuce for the 64 bit version of Csound?
> >>>>> I use it
> >>>>> with the 32 bit (5.02) but since I use Loris quite a bit, I miss
> >>>>> this option
> >>>>> with the 5.02 version.
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Marc
> >>>>>
> >>>>> ----- Original Message ----- From: "Rory Walsh" 
> >>>>> To: 
> >>>>> Sent: Sunday, April 23, 2006 8:32 AM
> >>>>> Subject: Re: [Csnd] Lettuce Questions
> >>>>>
> >>>>>
> >>>>>> Thanks for the info, I can't seem to recreate this problem
regarding
> >>>>>> list index but it certainly looks like a bug alright. I'm not sure
> >>>>>> what
> >>>>>> you mean by trying to open an orc/sco file after a .csd file, there
> >>>>>> should not be any problems there? Keep in mind that the software
only
> >>>>>> runs with .csd files, unless you use it as an editor and then run
> >>>>>> csound
> >>>>>> from the command line. At the moment one can only have one file
> >>>>>> open at
> >>>>>> a time. I will look into having several open soon. I have uploaded
a
> >>>>>> newer version now that adds equivalent menu commands for each of
the
> >>>>>> toolbar buttons, you can get it from the same place as before,
> >>>>>> www.ear.ie/Lettuce.htm. Can you let me know exactly what I must do
to
> >>>>>> recreate that bug? There is no mailing list but feel free to email
me
> >>>>>> directly with any questions or suggestions. Cheers,
> >>>>>>
> >>>>>> Rory.
> >>>>>>
> >>>>>>
> >>>>>> Chris Share wrote:
> >>>>>>> Hi,
> >>>>>>>
> >>>>>>> I've downloaded and installed Lettuce. It looks great!
> >>>>>>>
> >>>>>>> While the program runs properly I can't get the File->Import
orc+sco
> >>>>>>> command to work. When I try this command after opening the
> >>>>>>> program I get
> >>>>>>> the following:
> >>>>>>>
> >>>>>>> List index out of bounds (1)
> >>>>>>>
> >>>>>>> Is this a bug?
> >>>>>>>
> >>>>>>> Also, if I load a .csd file, there seems to be no way to load a
> >>>>>>> .orc/.sco file afterwards.
> >>>>>>>
> >>>>>>> Another suggestion: some of the toolbar shortcuts don't have an
> >>>>>>> equivalent menu command (e.g. Run Csound, Compile).
> >>>>>>>
> >>>>>>> I'm working on Windows XP.
> >>>>>>>
> >>>>>>> BTW, is there a mailing list for Lettuce (even an email address
> >>>>>>> for bug
> >>>>>>> reports)?. I couldn't find one.
> >>>>>>>
> >>>>>>> Cheers,
> >>>>>>>
> >>>>>>> Chris
> >>>>>> --
> >>>>>> Send bugs reports to this list.
> >>>>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >>>>>
> >>>> --
> >>>> Send bugs reports to this list.
> >>>> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk
> >>>
> --
> Send bugs reports to this list.
> To unsubscribe, send email to csound-unsubscribe@lists.bath.ac.uk

Date2006-04-27 20:40
FromRory Walsh
SubjectRe: Lettuce Questions
Hi Art. Thanks again for your input. I will have to work with on fixing 
problem 1 and 2 with you, I may email you off the list to figure it out. 
Like I said I don't have ME here. With regards problem 1a the simple 
answer is given the fact that lettuce provides it's own GUI controls I 
never envisaged users trying to place FLTK controls on top of the 
Lettuce ones? FYI Lettuce is made up of three separate programs, there's 
the Lettuce editor which the users see and which runs Csound, unlike 
CsEdit it does not simply call Csound.exe in the background, it 
dynamically creates an instance of Csound using the host API. Because of 
this if Lettuce crashes it takes that instance of Csound with it and 
visa versa. The second program is the compiler, and the third is an 
empty shell of a program called 'cabbage.dat'. When the compiler is 
called it opens up the resource string associated with cabbage.dat and 
embeds the current .csd file into a new copy of cabbage.dat called 
currentfile.exe. The problem you are experiencing with the "can't copy 
file" and "operation unable to continue" are generated from the pseudo 
compiler. Luckily this is only about 60 lines of code so we should be 
able to fix it ok. Incidentally the reason why I split Lettuce up like 
this is so that other front such as CoundX, CsEdit, WinXound, etc, could 
all create standalone GUI's by simply calling the pseudo compiler, 
although before this happens I need to make sure it's all working ok.

Rory.

P.S. I have come across 2a before also. It's doesn't bother me at all 
seen as I don't use the FLTK widgets but it's something that I would 
like to srt out as well.

Art Hunkins wrote:
> Rory,
> 
> Version 1.3.1 is a major improvement, and solves most of the problems I had
> experienced.
> 
> Two remain, however - #1 relates to compiling a .csd on Win ME (Win XP has
> an apparently related problem); #2 relates to performance of a .csd that
> includes an FLTK window (and MIDI).
> 
> #1: (ME only) When attempting to compile a .csd from a plugin thumb drive, I
> get the "can't copy file" error message I mentioned earlier. If I copy my
> source file to my C: drive (Lettuce dir), this doesn't happen; instead, I
> progress to a Cabbage compiler message error: "Function returned 0, cannot1
> continue operation." None of this occurs (same .csd and drives) with XP.
> 
> #1A: (*related* issue with XP) When compiling a .csd that contains *an FLTK
> performance window*, a compile error message ("not enough GUI arguments" or
> some such) occurs. The run continues, but the generated .exe does not
> continue to run properly. The same file, run directly in Lettuce without
> compilation, runs fine - and is attached. (You should be able to test it
> even without MIDI attached as long as your system shows a MIDI input device
> of some kind.)
> 
> #2: With either OS, running a .csd with an FLTK performance window works
> fine directly with Csound5 (from Csedit, incidentally). In ME run from
> Lettuce, such a file (e.g., the one attached), gives three error messages
> when Stop is pressed: the first two are Windows  errors, the third
> is a  error. These are immediately successive, and the third
> results in shutting down Lettuce. This all happens during the "clean up"
> files at the point of run shut down; the first message occurs after the
> first temp file (of three) is closed. None of this happens in XP.
> 
> #2A: At the end of an FLTK window run in Lettuce, if I close the FLTK window
> before hitting the Lettuce Stop button. Lettuce and the FLTK window both
> close completely. (This is on ME and XP.) This situation does not
> particularly bother me, however.
> 
> Thanks for your great job with Lettuce, and also for all the improvements.
>