hi dudes....

Can any one help..to change a scheme file using java program...Its a great help for me...Regards,Upender G
[134 byte] By [srujanaupendera] at [2007-10-2 10:36:58]
# 1

Sure thing, Dude.

// read it in

// make your changes - maybe something like

(define hello-world

(lambda ()

(begin

(write 'Hello-World)

(newline)

(hello-world))))

// Write it out

Though, since any Scheme program is itself a List (I think) then it seems like you would use a Scheme program to do your transformation - but whatever.

Good Luck

Lee

tsitha at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 2
Do you want to rewrite the Scheme (I assume you mean the computer language Scheme, the one with all the parentheses) program in Java? Or, do you just want to write a Java program to edit the text file that defines the Scheme program?
MLRona at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 3
> Though, since any Scheme program is itself a List (I think) It could be an atom you know where an additional 'eval' could've revealedit's true nature ... but that's just me ...kind regards,(Jos)
JosAHa at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 4

Do you want to rewrite the Scheme (I assume you mean the computer language Scheme, the one with all the parentheses) program in Java? Or, do you just want to write a Java program to edit the text file that defines the Scheme program?

Currently..I am working on Flinger, which is a program for synthesizing singing voice from a MIDI file input. It based on

the Festival Speech Synthesis System, developed at the University of Edinburgh ........Flinger takes the input from a SCHEM file....or else What ever u write in u r scheme file...will execute at the festival command prompt......that is

festival> (Flinger.sing "festival/examples/midi/ogi.mid" nil)

Actually...I am having a JAVA GUI to play these flinger program....when you click some button on my GUI..it will sing a melodie...cause I have already defined my midi melodie path in a scheme file.....

If i want 10 buttons on my GUI...i need to define 10 scheme files...Its a big process...

So Is it possible for meto give the midi file from my JAVA GUI..that is at runtime u need to change the scheme file...which inturn played by the Flinger program....

Its a great help for me...

Thanks in Advance,

Upender G

srujanaupendera at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 5

You can create text files using classes in the java.io package.

http://java.sun.com/docs/books/tutorial/essential/io/index.html

When you tell the Java GUI to run a Scheme file, do you just tell it the path of the Scheme file? Or, do you read in the Scheme file as text and process it?

MLRona at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 6

> You can create text files using classes in the java.io package.

>

> http://java.sun.com/docs/books/tutorial/essential/io/index.html

>

> When you tell the Java GUI to run a Scheme file, do you just tell it the

> path of the Scheme file? Or, do you read in the Scheme file as text

> and process it?

Two remarks:

1) You don't tell any GUI to 'run' anything: GUIs are supposed to be

extremely dumb but extremely good looking like me and,

2) Use the new PsychicFileReader class for this purpose.

kind regards,

Jos :-)

JosAHa at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 7
> 1) You don't tell any GUI to 'run' anything: GUIs are> supposed to be> extremely dumb but extremely good looking like me[url http://www.frankmahler.de/mshame/ShameRecent.htm]Oh yeah...[/url]
da.futta at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 8

> 1) You don't tell any GUI to 'run' anything: GUIs are

> supposed to be

> extremely dumb but extremely good looking like me

> and,

Thanks. Now I get the terrors every time I look at my computer. I'm switching to a VT100.

Jeff (<- extremely dumb, not extremely good looking, never runs because that's too much like work)

jverda at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 9

> > 1) You don't tell any GUI to 'run' anything: GUIs are supposed to be

> > extremely dumb but extremely good looking like me

>

> Thanks. Now I get the terrors every time I look at my computer. I'm switching to a VT100.

>

> Jeff (<- extremely dumb, not extremely good looking, never runs because that's too much like work)

Extremely dumb ... not as good looking as me ... never runs ... You're not

my little lost ugly twin brother by any chance are you?

kind regards,

Jos (getting emotional *sob* ;-)

JosAHa at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 10

> > > 1) You don't tell any GUI to 'run' anything: GUIs

> are supposed to be

> > > extremely dumb but extremely good looking like

> me

> >

> > Thanks. Now I get the terrors every time I look at

> my computer. I'm switching to a VT100.

> >

> > Jeff (<- extremely dumb, not extremely good

> looking, never runs because that's too much like

> work)

>

> Extremely dumb ... not as good looking as me ...

> never runs ... You're not

> my little lost ugly twin brother by any chance are

> you?

"Lost", right. You pushed me out of that car because you were jealous that Mom always liked me best and because you wanted to steal my Grolsch.

Jeff (<-rasied by Duvel-drinking wolves)

jverda at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 11
One of the qualities of Lisp dialects that makes it such them such powerful languages is that it is very easy to generate code at runtime because everything is a list. What is the specific difficulty you are having?
RadcliffePikea at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 12

> > > Jeff (<- extremely dumb, not extremely good looking, never runs

> > > because that's too much like work)

> >

> > Extremely dumb ... not as good looking as me ... never runs ... You're not

> > my little lost ugly twin brother by any chance are you?

>

> "Lost", right. You pushed me out of that car because you were

> jealous that Mom always liked me best and because you wanted to steal my Grolsch.

Now listen up you lost, dumb, not as cute as me, little twin brother: because

*you* always won the silly faces contest, *I* was banned to the back trunk

for all those miles and because *you* were too dumb to obey to the laws

of gravity and other forces, *you* fell out of the car; and rightly so.

> Jeff (<-rasied by Duvel-drinking wolves)

You do smell similar ...

kind regards,

Jos (from the trunk ;-)

JosAHa at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...
# 13

> Now listen up you lost, dumb, not as cute as me,

> little twin brother: because

> *you* always won the silly faces contest,

I wasn't even trying! I can't help it if I'm naturally gifted that way.

Jeff (< not making a silly face, that's just how I look)

jverda at 2007-7-13 2:40:30 > top of Java-index,Java Essentials,Java Programming...