Search found 1470 matches

by angros47
Sep 12, 2019 13:18
Forum: DOS
Topic: Raster bar?
Replies: 1
Views: 942

Re: Raster bar?

Ok, I tried it on a machine with Windows XP: it works under the dos prompt (as long as it's used in full screen mode) #include "dos\dos.bi" do do while(inp(&h3da) and 8):loop do until(inp(&h3da) and 8):loop for i as integer=1 to (150+150*sin(timer)) do while(inp(&h3da) and 1):l...
by angros47
Sep 05, 2019 17:05
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

I re-uploaded it again, fixing a small bug in the file SoundFunction.bas: when a sound buffer was created using a sampling rate different from the default one, the default sample rate was used to render a sound inside that buffer, instead of the buffer rate. It is fixed now
by angros47
Sep 05, 2019 0:05
Forum: Community Discussion
Topic: BSAVE/BLOAD fail to work outside of graphic modes
Replies: 1
Views: 101

BSAVE/BLOAD fail to work outside of graphic modes

Originally, BSAVE and BLOAD were used to save/load arbitrary memory areas (strings, sounds, graphics, assembly subroutines). In FreeBasic, they are usually used to manage .BMP images, but they are also able to save arbitrary memory data (and BLOAD can also load memory data in the format used by QBAS...
by angros47
Sep 03, 2019 22:25
Forum: Tips and Tricks
Topic: Loader for QBASIC sprites in 16 color modes
Replies: 0
Views: 121

Loader for QBASIC sprites in 16 color modes

I looked in the forum, and I can't believe that I couldn't find a single way to load a sprite saved from a QBASIC program (using GET and then BSAVE). FreeBasic can read .BMP files, it can also read QBASIC files, but not pictures saved in QBASIC. Actually, QBASIC could store a sprite in different (an...
by angros47
Sep 02, 2019 11:50
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

At the moment, only PCM WAV files are supported, FLOAT files are not supported. About the SOUND command: the new syntax is needed to allow to specify the waveform: in QBASIC, the only waveform allowed was the square wave (since PC speaker was only able to emit that one), while modern audio system ca...
by angros47
Sep 01, 2019 11:44
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

I have updated the file on sourceforge, with the fix in playtomidi.bas and in the readme.txt file.

So far, I have the impression that people who tested it were more interested in the PLAY feature than in the SOUND feature.
by angros47
Sep 01, 2019 11:41
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 51
Views: 4485

Re: fb 1.07 tests

Option 1) build rtlib (no-exports) first, followed by rtlib (with exports), using different file names. The final filename would be the rtlib normally used, and no changes are needed to fbc compiler, only the build process Option 2) build rtlib (no-exports), and exports module (separately), then mo...
by angros47
Aug 31, 2019 17:36
Forum: Community Discussion
Topic: fb 1.07 tests
Replies: 51
Views: 4485

Re: fb 1.07 tests

I remind that, for the DOS version of Freebasic, the file "makesymbr.bas" in the directory src/rtlib/dos should be compiled, then makesymbr.bas should be executed, and after that, the runtime library should be compiled again. It's the only way to keep dynamic linking symbols up to date for...
by angros47
Aug 30, 2019 19:21
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

In file "playtomidi.bas", change the line:

Code: Select all

   do while p < len(playstr)


to:

Code: Select all

   do while p <= len(playstr)


to fix the bug in PLAY of the last character being ignored
by angros47
Aug 30, 2019 10:47
Forum: General
Topic: I hate shell
Replies: 8
Views: 634

Re: I hate shell

I personally think that the SHELL command should be removed (or at least issue a warning message each time it is used), since it is often used improperly. I saw people using things like: SHELL "dir >output.txt" OPEN "output.txt" FOR INPUT AS #1 ... KILL "output.txt" (or...
by angros47
Aug 29, 2019 19:53
Forum: Windows
Topic: SOUND synthesis
Replies: 39
Views: 11362

Re: SOUND synthesis

hello angros47 just thought to let you know that your code needs a small change for it to work with FBwin64, namely change Integers to Longs. Thank you, but as you can see that was a code of ten years ago. Please read this topic: https://freebasic.net/forum/viewtopic.php?f=17&t=26256 for the la...
by angros47
Aug 29, 2019 17:32
Forum: DOS
Topic: Raster bar?
Replies: 1
Views: 942

Raster bar?

I have found this article: http://www.hristogueorguiev.com/the-notorious-raster-copper-bar-effect-a-vga-dos-example/ This is a rough attempt to port it to FreeBasic. On DosBox it doesn't seem to work. Anyone wants to try on a real DOS machine? #include "dos\dos.bi" do do while(inp(&h3d...
by angros47
Aug 28, 2019 21:58
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

Yes, a little bug in the parser I haven't fixed yet
by angros47
Aug 28, 2019 14:41
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

Try something like: SoundmidiSet () var Midi=CreateMidi() PLAY Midi,"T120<<e8e8f8g8g8f8e8d8c8c8d8e8e8d12d4" PLAY Midi,"e8e8f8g8g8f8e8d8c8c8d8e8d8c12c4" PLAY Midi,"d8d8e8c8d8e12f12e8c8d8e12f12e8d8c8d8p8" PLAY Midi,"e8e8f8g8g8f8e8d8c8c8d8e8d8c12c4" SaveMidi &quo...
by angros47
Aug 28, 2019 11:01
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 28
Views: 3638

Re: Audio library for FreeBasic - Features

Before using PLAY you should use SoundMidiSet to enable midi mode.

And yes, I meant ScreenRes, my mistake

Go to advanced search