BBC BASIC for Windows
« Search Results »

Welcome Guest. Please Login or Register.
Feb 21st, 2018, 1:54pm


BBC BASIC for Windows Resources
Online BBC BASIC for Windows documentation
BBC BASIC for Windows Beginners' Tutorial
BBC BASIC Home Page
BBC BASIC on Rosetta Code
BBC BASIC discussion group
BBC BASIC for Windows Programmers' Reference

Search Results

Total results: 10


 1   General Board / Re: Structured Tutorial  on: Today at 12:21am
Started by CSG | Post by michael
When you open BBC Basic for Windows app look at the top of the editor. To the right is the Help option.

Select Help and a drop down menu will appear.

Select - Tutorial

That is the best tutorial to help refresh your memory.


Also if you are interested in reinventing the wheel on cross platform, look on this forum under TOOLS

You will find RETROLIB 10 with a reference. Its a one drive link to some files. It has some helpful tools within it to help you become productive fast.

Mind you, RETROLIB 10 has COMLIBA which is the voice library, and that makes it a cool demo also, but COMLIBA would be BBC Basic for Windows specific..

Good luck
 
  Reply Quote Notify of replies

 2   General Board / Structured Tutorial  on: Yesterday at 10:07pm
Started by CSG | Post by CSG
As a programmer (for fun) on the BBC MIcro in my youth I am very interested in BBCB4W but being about 20 years since I have last programmed I am at a loss where to start.

I keep and eye on this project but don't have the motivation to move forward. Is there a good tutorial (like Roland Waddilove from the electron user days who piece by piece made a game and made it simple and understandable to follow. Is anything like this available without sifting through loads of threads.

I was looking in my local mag store and see magazines dedicated to certain projects and languages which make me think of trying them out.

This software has so much potential. A magazine deal would greatly help sales too.


 
  Reply Quote Notify of replies

 3   General Board / Making a handy reference for World of Warcraft.  on: Feb 19th, 2018, 5:02pm
Started by michael | Post by michael
( Legion and then later for Battle for Azeroth) So it will improve as time goes by. )

As a dedicated player for 9 years, I think a Vendor helper tool could come in handy. (say if you are doing professions or are keeping track of other currency requirements for PVP or other things)

If anyone has ideas for the app let me know. I only want to put the most immediately most used info in the app.
 
  Reply Quote Notify of replies

 4   Communication and Input/Output / Re: Copy/paste output from BBC BASIC  on: Feb 17th, 2018, 01:26am
Started by simong42 | Post by michael
I was experimenting with this code I found in help docs.

1) execute the program
2) after it ends, right click an empty spot in your editor and select paste

AND BEHOLD!

Code:
      text$ = "The five boxing wizards jump quickly"+CHR$13+CHR$10
      SYS "GlobalAlloc", &2000, LEN(text$)+1 TO hdata%
      SYS "GlobalLock", hdata% TO tmp%
      $$tmp% = text$
      SYS "GlobalUnlock", hdata%
      SYS "OpenClipboard", @hwnd%
      SYS "EmptyClipboard"
      SYS "SetClipboardData", 1, hdata%
      SYS "CloseClipboard"
      QUIT

      REM SYS "IsClipboardFormatAvailable", 1 TO res%

      REM  SYS "OpenClipboard", @hwnd%
      REM SYS "GetClipboardData", 1 TO hdata%
      REM IF hdata% THEN
      REM SYS "GlobalLock", hdata% TO tmp%
      REM text$ = $$tmp%
      REM SYS "GlobalUnlock", hdata%
      REM PRINT text$
      REM ENDIF
      REM SYS "CloseClipboard"



 

 
  Reply Quote Notify of replies

 5   Communication and Input/Output / Copy/paste output from BBC BASIC  on: Feb 16th, 2018, 6:49pm
Started by simong42 | Post by simong42
Any way in which the output from a PRINT statement can be copied into the paste buffer for use elsewhere?

Use case : decrypt and output the contents of a password file, for use in online logins.
 
  Reply Quote Notify of replies

 6   Sound, Music and Video / Making a WAV file in memory  on: Feb 16th, 2018, 3:32pm
Started by DDRM | Post by DDRM
Hi Folks,

I wanted to be able to make and modify a WAV file in memory. Here's some code to do that. The first section sets up the header etc, and then the second bit writes data (a sinusoidal wave of the specified frequency) to the left and right channels, with a variable delay between them, which makes the sound appear to move.

The top bit might be useful to others: the second part just makes it do something, but probably isn't interesting to anyone else...

Best wishes,

D

Code:
SND_MEMORY = 4
Duration%=1000 :REM duration of sound in ms
SampleRate%=44100
nChannels%=2
BitsPerSample%=16
BytesPerSample%=nChannels%*BitsPerSample%/8
ByteRate%=SampleRate%*BytesPerSample%
DataSize%=Duration%*ByteRate%/1000

DIM wavbit% DataSize%+44     :REM Reserve enough space for our sound sample plus the header
REM Write the header
!wavbit%=&46464952  :REM "RIFF"
wavbit%!4=DataSize%+36    :REM Remaining file size
wavbit%!8=&45564157 :REM "WAVE"
wavbit%!12=&20746D66:REM "fmt "
wavbit%!16=16 :REM Size of format block
wavbit%!20=1  :REM type of format - 1 is PCM
wavbit%!22=nChannels%
wavbit%!24=SampleRate%
wavbit%!28=ByteRate%
wavbit%!32=BytesPerSample%
wavbit%!34=BitsPerSample%
wavbit%!36=&61746164:REM "data"
wavbit%!40=DataSize%:REM Remaining file size (data size)

D%=wavbit%+44  :REM Start of data block

freq%=440   :REM Required frequency
beeplength%=800 :REM Duration of beep in samples - if SampleRate%=40000, each represents 25 s
lamp%=10000 :REM amplitude (loudness) for left channel - between 0 and 32767
ramp%=10000 :REM amplitude (loudness) for right channel - between 0 and 32767
loff%=0     :REM delay on left channel, in samples - if SampleRate%=40000, each represents 25 s
roff%=0     :REM delay on right channel, in samples - if SampleRate%=40000, each represents 25 s

FOR x%=-40 TO 40 STEP 4
  IF x%<0 THEN loff%=-x% ELSE roff%=x%
  REM IF x%<0 THEN lamp%=10000+(x%*1000):ramp%=10000 ELSE ramp%=10000-(x%*1000):lamp%=10000
  PROCFillData(D%,freq%,lamp%,ramp%,loff%,roff%,beeplength%)
  SYS "PlaySound",wavbit%,0,SND_MEMORY
  WAIT 1
NEXT x%

END
:
DEFPROCFillData(d%,f%,lamp%,ramp%,loff%,roff%,beeplength%)
LOCAL t%,tl%,tr%,s%,sl%,sr%,nsamples%
f%*=2*PI
nsamples%=Duration%*SampleRate%/1000
FOR t%=0 TO nsamples%
  tl%=t%-loff%
  tr%=t%-roff%
  IF tl%>=0 AND tl%<beeplength% THEN sl%=lamp%*SIN(f%*(t%-loff%)/SampleRate%) ELSE sl%=0
  IF tr%>=0 AND tr%<beeplength% THEN sr%=ramp%*SIN(f%*(t%-roff%)/SampleRate%) ELSE sr%=0
  s%=sr%*2^16 + sl%
ENDIF
!(d%+t%*BytesPerSample%)=s%
NEXT t%
ENDPROC
 

 
  Reply Quote Notify of replies

 7   General Board / Re: Link error to Discussion group  on: Feb 16th, 2018, 2:26pm
Started by Affableaardvark | Post by DDRM
I've now replaced the broken link to the Wiggio group with the one for the Groups.io group.

Best wishes,

D
 
  Reply Quote Notify of replies

 8   General Board / Re: Link error to Discussion group  on: Feb 11th, 2018, 08:48am
Started by Affableaardvark | Post by DDRM
Hi Michael,

That's a different group(!) - the broken link was to the abandoned Wiggio forum. If I can work out how to do it, I'll replace it with a link to the groups.io forum. I saved the deleted text at work, so I'll amend it sometime...

Best wishes,

D
 
  Reply Quote Notify of replies

 9   General Board / Re: Link error to Discussion group  on: Feb 10th, 2018, 10:35pm
Started by Affableaardvark | Post by michael
The discussion group is still active and can be accessed within BBC Basic for windows :

https://groups.io/g/bb4w


 
  Reply Quote Notify of replies

 10   General Board / Re: Link error to Discussion group  on: Feb 9th, 2018, 2:30pm
Started by Affableaardvark | Post by DDRM
Thanks: I think that site has been closed now. I've deleted the link.

Best wishes,

D
 
  Reply Quote Notify of replies


Donate $6.99 for 50,000 Ad-Free Pageviews!

| |

This forum powered for FREE by Conforums ©
Sign up for your own Free Message Board today!
Terms of Service | Privacy Policy | Conforums Support | Parental Controls