Re: Please Help ME figure it out

new topic     » goto parent     » topic index » view thread      » older message » newer message

Dave,

This works, but perhaps someone's got a more efficient way.

Warning: I've been doing Java more than EU recently, so some of the syntax
may be off.

for i = x to length(s) do // s is your sequence, x is your middle index
// your code here
end for
for i = 1 to x-1 do
your code here
end for

Hope this helps.

Alan


----- Original Message -----
From: "David Roach" <roachd_76 at YAHOO.COM>
To: <EUPHORIA at LISTSERV.MUOHIO.EDU>
Sent: Friday, May 05, 2000 11:55 PM
Subject: Please Help ME figure it out


> I can not figure out how to Take a sequence and print the sequence
starting
> somewhere in the middle going to the end and then jumping to the begining
> and stopping where it started. I don't know how to explain it.
>
> E.G.
>
> sequence scale
> scale = {"C"}, {"D"},{"E"},{"F"}
>
> --some print routine
>
> I need to start at say "D" (depending on the user's pick)and print this:
>
> D E F C
>
> This for a music scale program I am working on.
> Thanks
>
> Dave
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu