Search found 832 matches

by Peter
Wed Mar 29, 2023 8:02 am
Forum: General Discussion
Topic: SpiderBasic 2.50 beta 1 is ready !
Replies: 12
Views: 248

Re: SpiderBasic 2.50 beta 1 is ready !

I loaded the Shaders.sb, started it and played a bit with the settings. However, I have to admit that I can't see any changes to the graphics -- no matter what setting I change. Is that because I'm an old fart and my eyes aren't that good anymore? I have checked this again. With Chrome and Firefox ...
by Peter
Tue Mar 28, 2023 5:14 pm
Forum: General Discussion
Topic: SpiderBasic 2.50 beta 1 is ready !
Replies: 12
Views: 248

Re: SpiderBasic 2.50 beta 1 is ready !

You can check in the example folder the file 'Shaders.sb' to have a quick look how to use them I loaded the Shaders.sb, started it and played a bit with the settings. However, I have to admit that I can't see any changes to the graphics -- no matter what setting I change. Is that because I'm an old...
by Peter
Tue Mar 28, 2023 4:24 pm
Forum: General Discussion
Topic: SpiderBasic 2.50 beta 1 is ready !
Replies: 12
Views: 248

Re: SpiderBasic 2.50 beta 1 is ready !

Fred wrote: Tue Mar 28, 2023 4:12 pmIt does here
same here.

// Edit: When I start the installation a second time, the path is no longer requested.
by Peter
Wed Mar 22, 2023 6:32 pm
Forum: Coding Questions
Topic: HTML button event
Replies: 4
Views: 177

Re: HTML button event

It may be that the function is in another scope and for this reason is not found.

Try the following:

Code: Select all

! function buttonclicked(id) {
!   alert(id);
! }
! window.buttonclicked = buttonclicked;
by Peter
Tue Mar 14, 2023 2:57 pm
Forum: Coding Questions
Topic: Static keyword confusion
Replies: 5
Views: 340

Re: Static keyword confusion

Is this stuff documented anywhere?
The naming rules are documented here: Inline Javascript.
However, it seems to me that the static variables are missing.
by Peter
Tue Mar 14, 2023 7:27 am
Forum: Coding Questions
Topic: Static keyword confusion
Replies: 5
Views: 340

Re: Static keyword confusion

Static variables have a different name in JavaScript: prefix: "so_" (I assume this stands for s tatic o bject). plus: procedure-name plus: $-sign plus: variable-name In your case: so_buttonhandler$v_value Procedure ButtonHandler() Static value If value = 0 value = 20 EndIf ! console.log(so...
by Peter
Tue Mar 07, 2023 8:47 pm
Forum: Javascript
Topic: Javascript script not loading
Replies: 2
Views: 280

Re: Javascript script not loading

Here's how it works: Procedure ButtonHandler() ! //create a synth and connect it to the main output (your speakers) ! const synth = new Tone.Synth().toDestination(); ! //play a middle 'C' for the duration of an 8th note ! synth.triggerAttackRelease("C4", "8n"); EndProcedure Proce...
by Peter
Sat Mar 04, 2023 12:14 pm
Forum: Coding Questions
Topic: ScrollAreaGadget - referring to it after CloseGadgetList
Replies: 2
Views: 111

Re: ScrollAreaGadget - referring to it after CloseGadgetList

After this definition, I want to ADD a button or string gadget. you can do this with OpenGadgetList() : Enumeration #Window #ScrollAreaGadget #ButtonGadget EndEnumeration OpenWindow(#Window, #PB_Ignore, #PB_Ignore, 305, 140, "ScrollAreaGadget", #PB_Window_ScreenCentered) ScrollAreaGadget(...
by Peter
Tue Feb 28, 2023 12:01 am
Forum: Coding Questions
Topic: SpiderBasic and netradio url.
Replies: 7
Views: 310

Re: SpiderBasic and netradio url.

Hey falsam. Welcome back! :)
by Peter
Mon Feb 27, 2023 7:10 pm
Forum: Coding Questions
Topic: SpiderBasic and netradio url.
Replies: 7
Views: 310

Re: SpiderBasic and netradio url.

hub73 wrote: Mon Feb 27, 2023 7:02 pm Perfect ! Many thanks !
Thanks for the coffee! Image