Re: Changing the screenRect within a stack

2009-02-22 Thread dunbarx
I agree with Mark. It is just a dangerous idea. I have monitors that 
go kaplooey if you choose unsupported, or unsupportable resolutions. 
This may be due more to the video card than the monitor itself, but 
you just never know...



On Feb 22, 2009, at 6:14:53 PM, "Francis Nugent Dixon" 
 wrote:

From:  "Francis Nugent Dixon" 
Subject:Changing the screenRect within a stack
Date:   February 22, 2009 6:14:53 PM EST
To: use-revolution@lists.runrev.com
Hi from Paris,

I have a stack which has a specific window rect
(don't we all ?).

I want to run the stack on any Mac or PC computer,
but I don't know the current screenRect setting for
my possible target computers, and my stack window
is large enough to provide display problems on other
computers.

Inside preOpenStack using the "get the screenRect"
command, I can judge if the screenRect currently
used on the computer will harbour my stack window.
If the screenRect is not satisfactory, I can request
that the user sets the screenRect using "System
Preferences" on a Mac, or "Control Panel" on a PC,
and then quit my stack. The user can modify the
screenRect and relaunch my stack, but this is a PAIN !

What I REALLY want to do is to know ALL the possible
screenrects for the target computer, change the screenRect
dynamically for the duration of the stack run (choosing
the next highest screenRect in the list which wil accomodate
my window), and reset it back to the original value at the
termination of the stack.

Rev commands can't take me there, but I maybe I can do this
by executing AppleScripts (or the equivalent on a PC)

Anybody solved this problem ? Help gratefully received ...

-Francis

"Nothing should ever be done for the first time !"

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Brian Yennie

Mark,

Yes you are right about the kiosk - a bad example. In any case, my  
point was more that we don't know the particulars of the application  
in question. I share your distaste for badly behaved software, but  
surely there are some cases where it's ok for software to change your  
screen resolution without forcing you to go do it yourself. Video  
players do this all the time in order to *improve* the viewing. Yes,  
it can mess up your geometry if you changed to a "stretched"  
resolution, but it's also often desirable to have a 800x600 video play  
at it's native resolution instead of say, framing it on top of a  
1600x1200 desktop. There can always be a pref in the software for this  
-- but I wouldn't put up with a video player that couldn't go full  
screen without directing me to go change system settings myself.


If this is just a case of an interface design flaw and not some  
special app requirement, then I agree -- design around it without  
messing with the person's screen.



Hi Brian,

I agree in the case of full-screen video games, but we don't make  
those in Rev (yet?). I'm not sure that I agree in the case of video  
players. When a video player changes the screen resolution, the  
movie is often displayed with a bad screen geometry and I wouldn't  
recommend it. There is rarely need to change the screen resolution  
for kiosk applications, because those run on computers with system  
settings specifically adjusted to the software.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Mark Schonewille

Hi Brian,

I agree in the case of full-screen video games, but we don't make  
those in Rev (yet?). I'm not sure that I agree in the case of video  
players. When a video player changes the screen resolution, the movie  
is often displayed with a bad screen geometry and I wouldn't recommend  
it. There is rarely need to change the screen resolution for kiosk  
applications, because those run on computers with system settings  
specifically adjusted to the software.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

Please visit  and click on "Stem" --Thank  
you!


On 23 feb 2009, at 02:15, Brian Yennie wrote:


Mark,

While I agree with you in principle, I think it's worth noting that  
an application can always ASK the user for permission to change the  
screen resolution and then do it for you with your approval. Also,  
there are some cases (such as full screen video players or kiosks)  
where it is perfectly acceptable behavior to take over your screen  
and return things to normal when it is suspended or terminated.


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Brian Yennie

Mark,

While I agree with you in principle, I think it's worth noting that an  
application can always ASK the user for permission to change the  
screen resolution and then do it for you with your approval. Also,  
there are some cases (such as full screen video players or kiosks)  
where it is perfectly acceptable behavior to take over your screen and  
return things to normal when it is suspended or terminated.


So generally speaking, I agree with you -- but I think you're also  
jumping the gun a little bit here.



Dear Francis,

Please, stay away from my screen. it is MY screen and NOT yours. You  
simply have no right to change the system settings of my or anyone  
else's computer. Of course, this message isn't only meant for you,  
but for anyone who thinks of changing someone else's screen rect.  
Please, don't do it.


Instead, you should detect the screensize and resize your stack  
window and the objects in it to accommodate the screensize. Never do  
the oppositem don't change the screen rect.


You should also take into account the possibility that the user  
changes the screen resolution while your application is running. For  
this, you can catch the desktopChanged message and adjust the window  
and object sizes again (and indeed, you need to check the  
windowBoundingRect and (working) screenRect(s) too).


Now, if you're really still not convinced, I can tell you there are  
a few command line utilities, but they need to be updated every now  
and then, because they can't cope with the many different screens  
and screen resolutions available these days. I believe it is  
possible to use the terminal or applescript on Mac OS X, but I  
haven't seen a good working solution.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Joe Lewis Wilkins

Hi Francis,

Accustomed as I am to running a variety of applications pretty much at  
the same time and interchangeably, I feel you should stick with your  
first approach. Let the user determine what to do. Just make some  
suggestions, advising the user in advance of the various repercussions  
that might occur with different screen resolutions; OR, optionally, if  
the user's screen size is going to be too small, design your  
application accordingly - even providing horizontal and vertical  
scroll bars; or, as PDFs do, perhaps the ability to zoom or move  
around using the hand tool.


You may be worrying too much, since many of us DO have a lot of real  
estate these days. Just announce the preferred screen size for best  
performance in advance as part of the system requirements and let the  
user worry about it. Surprise is the worst thing.


Just some of my thoughts on a late Sunday afternoon.

Joe Wilkins

On Feb 22, 2009, at 3:14 PM, Francis Nugent Dixon wrote:


Hi from Paris,

I have a stack which has a specific window rect
(don't we all ?).

I want to run the stack on any Mac or PC computer,
but I don't know the current screenRect setting for
my possible target computers, and my stack window
is large enough to provide display problems on other
computers.

Inside preOpenStack using the "get the screenRect"
command, I can judge if the screenRect currently
used on the computer will harbour my stack window.
If the screenRect is not satisfactory, I can request
that the user sets the screenRect using "System
Preferences" on a Mac, or "Control Panel" on a PC,
and then quit my stack. The user can modify the
screenRect and relaunch my stack, but this is a PAIN !

What I REALLY want to do is to know ALL the possible
screenrects for the target computer, change the screenRect
dynamically for the duration of the stack run (choosing
the next highest screenRect in the list which wil accomodate
my window), and reset it back to the original value at the
termination of the stack.

Rev commands can't take me there, but I maybe I can do this
by executing AppleScripts (or the equivalent on a PC)

Anybody solved this problem ? Help gratefully received ...

-Francis

"Nothing should ever be done for the first time !"


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Mark Schonewille

Dear Francis,

Please, stay away from my screen. it is MY screen and NOT yours. You  
simply have no right to change the system settings of my or anyone  
else's computer. Of course, this message isn't only meant for you, but  
for anyone who thinks of changing someone else's screen rect. Please,  
don't do it.


Instead, you should detect the screensize and resize your stack window  
and the objects in it to accommodate the screensize. Never do the  
oppositem don't change the screen rect.


You should also take into account the possibility that the user  
changes the screen resolution while your application is running. For  
this, you can catch the desktopChanged message and adjust the window  
and object sizes again (and indeed, you need to check the  
windowBoundingRect and (working) screenRect(s) too).


Now, if you're really still not convinced, I can tell you there are a  
few command line utilities, but they need to be updated every now and  
then, because they can't cope with the many different screens and  
screen resolutions available these days. I believe it is possible to  
use the terminal or applescript on Mac OS X, but I haven't seen a good  
working solution.


--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
http://economy-x-talk.com
http://www.salery.biz
Dutch forum: http://runrev.info/rrforum

Please visit  and click on "Stem" --Thank  
you!


On 23 feb 2009, at 00:14, Francis Nugent Dixon wrote:


Hi from Paris,

I have a stack which has a specific window rect
(don't we all ?).

I want to run the stack on any Mac or PC computer,
but I don't know the current screenRect setting for
my possible target computers, and my stack window
is large enough to provide display problems on other
computers.

Inside preOpenStack using the "get the screenRect"
command, I can judge if the screenRect currently
used on the computer will harbour my stack window.
If the screenRect is not satisfactory, I can request
that the user sets the screenRect using "System
Preferences" on a Mac, or "Control Panel" on a PC,
and then quit my stack. The user can modify the
screenRect and relaunch my stack, but this is a PAIN !

What I REALLY want to do is to know ALL the possible
screenrects for the target computer, change the screenRect
dynamically for the duration of the stack run (choosing
the next highest screenRect in the list which wil accomodate
my window), and reset it back to the original value at the
termination of the stack.

Rev commands can't take me there, but I maybe I can do this
by executing AppleScripts (or the equivalent on a PC)

Anybody solved this problem ? Help gratefully received ...

-Francis


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Changing the screenRect within a stack

2009-02-22 Thread Richard Gaskin
You should be able to do it all for all supported platforms right in 
native Transcipt.


See the Dictionary entries for :

desktopChanged
windowBoundingRect
working screenRect

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Changing the screenRect within a stack

2009-02-22 Thread Francis Nugent Dixon

Hi from Paris,

I have a stack which has a specific window rect
(don't we all ?).

I want to run the stack on any Mac or PC computer,
but I don't know the current screenRect setting for
my possible target computers, and my stack window
is large enough to provide display problems on other
computers.

Inside preOpenStack using the "get the screenRect"
command, I can judge if the screenRect currently
used on the computer will harbour my stack window.
If the screenRect is not satisfactory, I can request
that the user sets the screenRect using "System
Preferences" on a Mac, or "Control Panel" on a PC,
and then quit my stack. The user can modify the
screenRect and relaunch my stack, but this is a PAIN !

What I REALLY want to do is to know ALL the possible
screenrects for the target computer, change the screenRect
dynamically for the duration of the stack run (choosing
the next highest screenRect in the list which wil accomodate
my window), and reset it back to the original value at the
termination of the stack.

Rev commands can't take me there, but I maybe I can do this
by executing AppleScripts (or the equivalent on a PC)

Anybody solved this problem ? Help gratefully received ...

-Francis

"Nothing should ever be done for the first time !"

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shakobox... choking on 32nd notes

2009-02-22 Thread Judy Perry
Hi René,
Thank you very much for spotting this!  I was going cross-eyed looking at
it.

Eliminating those spaces does seem to solve the problem (well, I also split
the tune into two, replaced the 64th notes with 32nds and doubled the
tempo).

There still seem to be some octave anomalies but I'll look at those again as
soon as I uncross my eyes ;-)

Thank you again!

Judy
http://revined.blogspot.com

On Sun, Feb 22, 2009 at 7:49 AM, René Micout  wrote:

> Hello Judy,
> I try theSong with sbPlay (command...).
> There is (I think) extra space "  " at lines 7, 9 and 10 of theSong
> Cf. "here" below in your code...
> Bons souvenirs de Paris
> René
>
> PS : I have forgot(ten ?) line 9...
>
> Le 20 févr. 09 à 18:56, Judy Perry a écrit :
>
>
>  Ooops.  Make that, it's choking on the third round of 64th notes...
>>
>> on mouseUp
>>   put empty into fld "Tunes_Code"
>>   displayCode
>>   put "a5x g5x a5e rx g5x f5x e5x d5x c#5t rt" && \
>>   "d5e rt a4x g4x a4e rx g4x f4x e4x d4x c#4t rt" && \
>>   "d4e rt a2x g2x a2e rx g2x f2x ex2 d2x c#2t rx" && \
>>   "d2e rq c#1e e1e g1e b1e c#3e e3e d3h" && \
>>   "c#5x d5x e5x c#5x d5x e5x c#5x d5x e5x c#5x" && \
>>   "d5x e5x f5x g5x e5x f5x g5x e5x f5x g5x e5x f5x" && \
>>   "g5x a5x bb5x  "here" g5x a5x bb5x  "here" g5x a5x bb5x  "here" g5x a5x
>> rq" && \
>>   "c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x" && \
>>   "f6x g6x e6x f6x g6x e6x f6x g6x e6x f6x g6x a6x bb6x  "here also" g6x"
>> && \
>>   "a6x bb6x  "here" g6x a6x bb6x  "here" g6x a6x rq" && \
>>
>>   "a6x g6x b6x e6x g6x b6x e6x f6x a6x d6x f6x a6x d6x e6x" && \
>>   "g6x a6x e6x g6x a6x d6x f6x b5x d6x f6x b5x" into theSong
>>   sbplay 20,40,theSong
>> end mouseUp
>>
>> Hey -- I can copy-paste in PINE!  Woo-hoo!
>>
>> Judy
>> http://revined.blogspot.com
>>
>> On Fri, 20 Feb 2009, Judy Perry wrote:
>>
>>  Hi,
>>> I suspect I'm probably about the only person using it, but, just in case
>>> somebody else does, has anybody else noticed Shakobox choking on multiple
>>> 32nd notes?
>>>
>>> I'm transcribing Bach's Tocatta & Fugue in D-Minor... maybe it's just a
>>> scripting error?
>>>
>>> Drat.  Can we not copy-paste from the new Script Editor?
>>>
>>> :-(
>>>
>>> Judy
>>> http://revined.blogspot.com
>>> ___
>>> use-revolution mailing list
>>> use-revolution@lists.runrev.com
>>> Please visit this url to subscribe, unsubscribe and manage your
>>> subscription preferences:
>>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>>
>>>  ___
>> use-revolution mailing list
>> use-revolution@lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
> ___
> use-revolution mailing list
> use-revolution@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Gutenberg Reader

2009-02-22 Thread Pierre Sahores

Peter,

Great stack to parse and save the Gutemberg's books without having to  
download them ! Congratulations and thanks for sharing it with all of  
us !


The Mac OS X standalone don't start there for yet but the stack is  
running OK in the Rev 3.0 IDE. (Mac OS X 10.5.6 / MacBook Pro Core Duo  
2 Go RAM).
The Win32 standalone start and run fine under VirtualBox 2.14 / Win XP  
Pro.


Again, thanks for this great piece of Rev !

Best Regards,
--
Pierre Sahores
mobile : 06 03 95 77 70
www.sahores-conseil.com


Le 22 févr. 09 à 18:41, Peter Brigham MD a écrit :

I've uploaded a stack to my userspace at RevOnline (user name  
pmbrig) called The Gutenberg Reader. Bug reports, comments, and  
feedback are appreciated.


From the help text:

"The Gutenberg Reader is literally an entire library of over 30,000  
volumes, right on your desktop. Well, almost literally. The Reader  
is designed to import and display etexts generated by Project  
Gutenberg™. These are free public domain texts available online —  
the Gutenberg catalog has over 30,000 books (and growing), and with  
their partners and affiliates makes over 100,000 titles available to  
anyone with internet access. Any of the Gutenberg texts are  
accessible within a couple minutes from within the Reader.


"The Gutenberg pages are actually designed to be viewed with any web  
browser, without any additional application or software required,  
and you don't really have to use the Reader to access them. However,  
the Reader downloads a Gutenberg text and replaces simple quotes  
with curly quotation marks, double dashes with m-dashes, gets rid of  
the end-of-line characters within paragraphs, and presents the text  
in a book-like layout, using the fontface of your choice. You can  
navigate easily through the book with mouseclicks or using the  
arrowkeys, set a bookmark, and make notes on any passage. The result  
is a completely different reading experience from what you are  
probably used to on a computer screen."


The Reader is also available in a standalone application at

http://home.comcast.net/~pmbrig/Gutenberg.html

Many thanks to all on this list who have helped me (mostly  
unknowingly) over the years I have been (mostly) lurking in the  
background. I have picked up countless tips on the vicissitudes of  
Rev without which I'd have been lost. Some of us benefit quietly  
from all the amazing information shared here, and we may not always  
speak up about it.


a grateful amateur,

Peter M. Brigham
pmb...@gmail.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Gutenberg Reader

2009-02-22 Thread Melitón Cardona Torres

On Mac: downloaded, uncompressed, opened and ... nothing happens

Am I missing anything?

Cheeres

Tob
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Gutenberg Reader

2009-02-22 Thread Peter Brigham MD
I've uploaded a stack to my userspace at RevOnline (user name pmbrig)  
called The Gutenberg Reader. Bug reports, comments, and feedback are  
appreciated.


From the help text:

"The Gutenberg Reader is literally an entire library of over 30,000  
volumes, right on your desktop. Well, almost literally. The Reader is  
designed to import and display etexts generated by Project Gutenberg™.  
These are free public domain texts available online — the Gutenberg  
catalog has over 30,000 books (and growing), and with their partners  
and affiliates makes over 100,000 titles available to anyone with  
internet access. Any of the Gutenberg texts are accessible within a  
couple minutes from within the Reader.


"The Gutenberg pages are actually designed to be viewed with any web  
browser, without any additional application or software required, and  
you don't really have to use the Reader to access them. However, the  
Reader downloads a Gutenberg text and replaces simple quotes with  
curly quotation marks, double dashes with m-dashes, gets rid of the  
end-of-line characters within paragraphs, and presents the text in a  
book-like layout, using the fontface of your choice. You can navigate  
easily through the book with mouseclicks or using the arrowkeys, set a  
bookmark, and make notes on any passage. The result is a completely  
different reading experience from what you are probably used to on a  
computer screen."


The Reader is also available in a standalone application at

http://home.comcast.net/~pmbrig/Gutenberg.html

Many thanks to all on this list who have helped me (mostly  
unknowingly) over the years I have been (mostly) lurking in the  
background. I have picked up countless tips on the vicissitudes of Rev  
without which I'd have been lost. Some of us benefit quietly from all  
the amazing information shared here, and we may not always speak up  
about it.


a grateful amateur,

Peter M. Brigham
pmb...@gmail.com

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shakobox... choking on 32nd notes

2009-02-22 Thread René Micout

Hello Judy,
I try theSong with sbPlay (command...).
There is (I think) extra space "  " at lines 7, 9 and 10 of theSong
Cf. "here" below in your code...
Bons souvenirs de Paris
René

PS : I have forgot(ten ?) line 9...

Le 20 févr. 09 à 18:56, Judy Perry a écrit :



Ooops.  Make that, it's choking on the third round of 64th notes...

on mouseUp
   put empty into fld "Tunes_Code"
   displayCode
   put "a5x g5x a5e rx g5x f5x e5x d5x c#5t rt" && \
   "d5e rt a4x g4x a4e rx g4x f4x e4x d4x c#4t rt" && \
   "d4e rt a2x g2x a2e rx g2x f2x ex2 d2x c#2t rx" && \
   "d2e rq c#1e e1e g1e b1e c#3e e3e d3h" && \
   "c#5x d5x e5x c#5x d5x e5x c#5x d5x e5x c#5x" && \
   "d5x e5x f5x g5x e5x f5x g5x e5x f5x g5x e5x f5x" && \
   "g5x a5x bb5x  "here" g5x a5x bb5x  "here" g5x a5x bb5x  "here"  
g5x a5x rq" && \

   "c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x" && \
   "f6x g6x e6x f6x g6x e6x f6x g6x e6x f6x g6x a6x bb6x  "here  
also" g6x" && \

   "a6x bb6x  "here" g6x a6x bb6x  "here" g6x a6x rq" && \
   "a6x g6x b6x e6x g6x b6x e6x f6x a6x d6x f6x a6x d6x e6x" && \
   "g6x a6x e6x g6x a6x d6x f6x b5x d6x f6x b5x" into theSong
   sbplay 20,40,theSong
end mouseUp

Hey -- I can copy-paste in PINE!  Woo-hoo!

Judy
http://revined.blogspot.com

On Fri, 20 Feb 2009, Judy Perry wrote:


Hi,
I suspect I'm probably about the only person using it, but, just  
in case
somebody else does, has anybody else noticed Shakobox choking on  
multiple

32nd notes?

I'm transcribing Bach's Tocatta & Fugue in D-Minor... maybe it's  
just a

scripting error?

Drat.  Can we not copy-paste from the new Script Editor?

:-(

Judy
http://revined.blogspot.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Shakobox... choking on 32nd notes

2009-02-22 Thread René Micout

Hello Judy,
I try theSong with sbPlay (command...).
There is (I think) extra space "  " at lines 7 and 10 of theSong
Cf. "here" below in your code...
Bons souvenirs de Paris
René

Le 20 févr. 09 à 18:56, Judy Perry a écrit :


Ooops.  Make that, it's choking on the third round of 64th notes...

on mouseUp
   put empty into fld "Tunes_Code"
   displayCode
   put "a5x g5x a5e rx g5x f5x e5x d5x c#5t rt" && \
   "d5e rt a4x g4x a4e rx g4x f4x e4x d4x c#4t rt" && \
   "d4e rt a2x g2x a2e rx g2x f2x ex2 d2x c#2t rx" && \
   "d2e rq c#1e e1e g1e b1e c#3e e3e d3h" && \
   "c#5x d5x e5x c#5x d5x e5x c#5x d5x e5x c#5x" && \
   "d5x e5x f5x g5x e5x f5x g5x e5x f5x g5x e5x f5x" && \
   "g5x a5x bb5x  "here" g5x a5x bb5x  "here" g5x a5x bb5x  "here"  
g5x a5x rq" && \

   "c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x c#6x d6x e6x" && \
   "f6x g6x e6x f6x g6x e6x f6x g6x e6x f6x g6x a6x bb6x  g6x" && \
   "a6x bb6x  "here" g6x a6x bb6x  "here" g6x a6x rq" && \
   "a6x g6x b6x e6x g6x b6x e6x f6x a6x d6x f6x a6x d6x e6x" && \
   "g6x a6x e6x g6x a6x d6x f6x b5x d6x f6x b5x" into theSong
   sbplay 20,40,theSong
end mouseUp

Hey -- I can copy-paste in PINE!  Woo-hoo!

Judy
http://revined.blogspot.com

On Fri, 20 Feb 2009, Judy Perry wrote:


Hi,
I suspect I'm probably about the only person using it, but, just  
in case
somebody else does, has anybody else noticed Shakobox choking on  
multiple

32nd notes?

I'm transcribing Bach's Tocatta & Fugue in D-Minor... maybe it's  
just a

scripting error?

Drat.  Can we not copy-paste from the new Script Editor?

:-(

Judy
http://revined.blogspot.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution


___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: Re : Music duration

2009-02-22 Thread René Micout

Hello Beat,
Naturally I will be (so) glad to receive your MidiLib...
Thank you
Bons souvenirs de Paris
René

Le 20 févr. 09 à 15:55, Beat Cornaz a écrit :


Hi René ,

I have been abroad and could not react earlier. Fortunalety Kurt  
has helped you out quite a bit.


Maybe the following can be of use to you. The thing that took the  
longest time for me in the Midi code to 'crack' was the 'Delta  
time' , being the time to the next midi event (whether a Note on,  
Note off or Midi message). As the Delta time cannot be fixed into a  
fixed data format (it must be flexible tpo accomodate for long  
Delta times), the Midi format uses 'Variable Length coding', which  
can accomodate any Delta Time.
As it is some years ago that I have coded my 'MakeMidiFile' script,  
I can't remember exactly how the Variable Length coding works, but  
I can send you the

handler or post it here if someone else is ineterested.

Another thing I remember, is that one of the Rev functions -  
baseconvert() or  BinaryDecode() would not work anymore as the  
number to convert got too big. I have made a workaround.  I just  
looked in my MidiLib, but could not find it anymore. Maybe it has  
been fixed in the newer Rev versions, as I tried big numbers and  
they converted just fine.But I realised that my MidiLib needs some  
serious cleaning up!!


In a midi file (as Kurt already explained), some (Hex) stuff is  
always there, like the Header , Tempo, TimeSignature and Key. The  
actual data for the Tempo (e.g. 120) etc. is given by you of course  
(in Hex). Track 1 contains all this information and the actual  
notes start in track 2. (In any case in a midi file with more than  
1 track). After you have the whole Midifile in Hex, you convert it  
to Binary (with BinaryEncode). Of course, the binary encode can be  
done earlier on, like after each Hex duplet or Hex part has been  
established (I think I remember Kurt does it that way).


In the header of each track, you'll need the specify the length of  
the data of that track (the number of Hex digits in that track).


So basically you have to convert decimal data (like noteNrs,  
velocity, duration etc) to Hex and the whole Hex data to binary.


I can send you my MidiLib, so you can see how I have done it. I  
will have to clean it up before I send it, it's too messy, but it  
works fine.
I have not yet experimented with the QT synth, as I was (am) aiming  
to directly address Logic. But I guess I will try with the QT synth  
as well, as my bigger goal is quite a challange it seems.


In my MidiLib, there is also a handler to import a MidiFile. I use  
it to import from Logic, then make variantions of the theme in my  
Rev stack and make a new MidiFile which I drag into my sequencer.


Don't let the dataformat of the Midi file get to you. It takes a  
while to get it. I have been 'struggling' with it for some months  
untill the handler finally worked. Bit by bit, you'll get to  
understand it better. I'll be gladly  helping you, but  
unfortunately I don't have the time to read the usergroup's mails  
on a daily basis.


I hope this helps some,

kind regards, Beat
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your  
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


RE: How to parse one variable to Microsoft Word

2009-02-22 Thread SparkOut


Nhan, Tran Thi Thanh wrote:
> 
> 
> Dear SparkOut
> 
> If I want to find two or more "{{replace me}}" different and replace with
> "<>", I need to set up a array of
> objSelect.Find ? Do you have any ideas?
> 
> Regards
> 
> 

Make the working part a sub procedure and call it with the arguments you
need each time.
You can make it an array if you want and walk it, but with two or three or
just a few it's simpler without.

-- 


Dim objWord, objDoc, objSelect, result

on Error Resume Next

Const wdStory = 6
Const wdFindContinue = 1
Const wdReplaceAll = 2

result = "OK"

Set objWord = CreateObject("Word.Application") 
If Err <> 0 Then
  result = "Error opening Word application"
End If

If result = "OK" Then
  objWord.Visible = False
  With objWord
Set objDoc = objWord.Documents.Open("{{path to doc}}")
If Err <> 0 Then
  result = "Error opening template document"
End If
  End With
End If

If result = "OK" Then
  Set objSelect = objWord.Selection
  objSelect.HomeKey(wdStory)
  doReplaceText "{{replace me}}","{{replacement text}}"
  doReplaceText "{{I need replacing}}","{{I was replaced}}"
End If

If result = "OK" Then
  objWord.Visible = True
  Set objSelect= Nothing
  set objDoc = Nothing
  Set objWord = Nothing
Else
  set objDoc = Nothing
  objWord.Close
  objWord.Quit
End If

Sub doReplaceText (tReplaceMe, tReplacementText)
  objSelect.HomeKey(wdStory)
  With objSelect.Find
  .Text = tReplaceMe
  .Forward = True
  .MatchWholeWord = True
  .Wrap = wdFindContinue
  .Format = False
  .Replacement.Text = tReplacementText
  .Execute ,,wdReplaceAll
  End With
  objSelect.HomeKey(wdStory)
End Sub


-- 
View this message in context: 
http://www.nabble.com/How-to-parse-one-variable-to-Microsoft-Word-tp22133088p22145264.html
Sent from the Revolution - User mailing list archive at Nabble.com.

___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Bashing My Buttons Again . . .

2009-02-22 Thread Richmond Mathewson
Humpf: nothing like a slightly idiotic title to a message to attract
attention :)

So, after spending far too much time re-doing my kitchen, finally got
back to the 'Button Basher.rev' stack:

It is at revOnline under 'Richmond'

now featuring grey-faux-metallic odd-shaped buttons and
coloured odd-shaped buttons

and

with those buttons a choice whether to export as PNGS or GIFS.
[Frankly . . . neither are totally satisfactory]

Please, download and Beta-test, and feedback . . .

Despite, some comparisons that were made between my stack and the
commercial one, I have no intention to "go commercial" with this
one - so everybody will benefit from Beta-testing this.

STILL TO DO:

1. Lots :)

2. Ability to nudge the text around the faces of the odd-shaped buttons.
   [This is not as hard as it seems; just feeling a bit lazy and
demotivated right now.]

3. Re-do the primitives with feathered edges . . . what a grind!

4. Lots of really 'jazzy' aesthetic stuff . . . well, maybe, in
   about 2015!

sincerely, Richmond Mathewson.


A Thorn in the flesh is better than a failed Systems Development Life Cycle.




___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: keystroke transformations

2009-02-22 Thread viktoras d.

Thanks Richard, it works!

Viktoras

Richard Gaskin wrote:

on enterInField
  DoMoveDown
end enterInField

on returnInField
  DoMoveDown
end returnInField

on DoMoveDown
  put (word 2 of the selectedLine) into tLine
  if tLine = the number of lines of me then
put cr after me
  end if
  select before line (tLine+1) of me
end DoMoveDown




--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: keystroke transformations

2009-02-22 Thread Richard Gaskin

viktoras wrote:

> Richard Gaskin wrote:
>> That's the natural built-in behavior of the engine: when you strike
>> either the Enter or Return keys, the cursor in the field moves down
>> to the beginning of the next line.
>>
>> Is there something else at play here that I missed?
>
> Yes, therefore I wish to prevent this natural behaviour, as it also
> moves all the text into the new line. What I am after is blocking
> enter, return and passing arrow down instead, so the text in a field
> would remain intact, but cursor moves to the next line without any
> changes to the text.

Gotcha. Thanks for the clarification.  Give this a whirl and see if it 
does what you need -- these handers would go in a field script:


-


on enterInField
  DoMoveDown
end enterInField

on returnInField
  DoMoveDown
end returnInField

on DoMoveDown
  put (word 2 of the selectedLine) into tLine
  if tLine = the number of lines of me then
put cr after me
  end if
  select before line (tLine+1) of me
end DoMoveDown




--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution


Re: keystroke transformations

2009-02-22 Thread viktoras d.
Yes, therefore I wish to prevent this natural behaviour, as it also 
moves all the text into the new line. What I am after is blocking enter, 
return and passing arrow down instead, so the text in a field would 
remain intact, but cursor moves to the next line without any changes to 
the text.


Viktoras

Richard Gaskin wrote:


That's the natural built-in behavior of the engine: when you strike 
either the Enter or Return keys, the cursor in the field moves down to 
the beginning of the next line.


Is there something else at play here that I missed?

--
 Richard Gaskin
 Fourth World
 Revolution training and consulting: http://www.fourthworld.com
 Webzine for Rev developers: http://www.revjournal.com
___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your 
subscription preferences:

http://lists.runrev.com/mailman/listinfo/use-revolution



___
use-revolution mailing list
use-revolution@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution