Search found 124 matches

by oog
May 27, 2018 9:02
Forum: Projects
Topic: Proog MIDI / Karaoke Player
Replies: 6
Views: 3952

Re: Proog MIDI / Karaoke Player

by oog
May 27, 2018 9:01
Forum: Libraries & Headers
Topic: Proog FBMIDI Library - play MIDI Files
Replies: 3
Views: 3484

Re: Proog FBMIDI Library - play MIDI Files

demo06play.bas Play MIDI File - simple player ' FBMIDI - Demo ' copyright by oog/proog.de 2013-2018 ' #define MIDISONG "midi1.mid" #include "fbmidi.bi" '---------- Init ---------- Dim Shared As FBMIDI midi Dim Shared As String k ' open MIDI interface If (midi.setup() <> MMSYSERR_...
by oog
May 27, 2018 8:59
Forum: Libraries & Headers
Topic: Proog FBMIDI Library - play MIDI Files
Replies: 3
Views: 3484

Re: Proog FBMIDI Library - play MIDI Files

demo01file.bas Analyze MIDI File - hex-dump ' FBMIDI - Demo ' copyright by oog/proog.de 2013-2018 ' #define MIDISONG "midi1.mid" #include "fbmidi.bi" '---------- Init ---------- Dim Shared As FBMIDI midi ' open MIDI interface If (midi.setup() <> MMSYSERR_NOERROR) Then Print "...
by oog
May 27, 2018 8:55
Forum: Libraries & Headers
Topic: Proog FBMIDI Library - play MIDI Files
Replies: 3
Views: 3484

Re: Proog FBMIDI Library - play MIDI Files

The library "fbmidi.bi" ' FBMIDI - MIDI Library for FreeBASIC by oog / Proog.de ' ' A FreeBASIC MIDI Player Library ' load / analyse / playmidi files ' copyright by oog/proog.de 2013-2018 ' ' License: LGPL V3 ' 'This program is free software: you can redistribute it and/or modify ' it unde...
by oog
May 27, 2018 8:54
Forum: Libraries & Headers
Topic: Proog FBMIDI Library - play MIDI Files
Replies: 3
Views: 3484

Proog FBMIDI Library - play MIDI Files

Load and play MIDI Files License is LGPL V3 http://www.gnu.org/licenses/lgpl-3.0.en.html This library can be use to load and playback MIDI files from within a FreeBASIC Program. The library is an advanced version of the MIDI functions from the FreeBASIC MIDI / Karaoke Player (see https://freebasic.n...
by oog
May 18, 2018 5:52
Forum: Projects
Topic: Proog MIDI / Karaoke Player
Replies: 6
Views: 3952

Re: Proog MIDI / Karaoke Player

I can make a library version of the MIDI part which then can be published under LGPL license. But it needs some rework and documentation. I'll do my best.
by oog
Apr 21, 2018 10:14
Forum: Beginners
Topic: Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)
Replies: 6
Views: 1773

Re: Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)

Thanks for the explanations. Especially the link to the FAQ was very helpful.
by oog
Apr 20, 2018 5:52
Forum: Beginners
Topic: Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)
Replies: 6
Views: 1773

Global variable array - strange problem with freeBASIC 1.04.0 and 1.05.0 (Windows 32 Bit)

If I declare a global array of integers, the array is usually initialized with 0-values and I can store any values in it. When I was working on file analysis, I found a strange bug. I reduced the code to a small example, which still shows the bug. Sample program: Dim As Integer problemAddress = -1 D...
by oog
Jan 02, 2018 14:12
Forum: Community Discussion
Topic: Audio library for FreeBasic - Features
Replies: 179
Views: 55070

Re: Audio library for FreeBasic - Features

Another Feature Request: PCM: record PCM data into a buffer from a selectable source (like Line In, Microphone etc.) MIDI: Send MIDI Commands to internal Soundcard (Play Notes) Receive MIDI Commands from other programs or physical MIDI Interface (Sequencer, MIDI Keyboard) Send MIDI Commands to other...
by oog
Oct 27, 2017 5:45
Forum: Beginners
Topic: Screen 0 and Windows 10
Replies: 12
Views: 2548

Re: Screen 0 and Windows 10

fxm wrote:Perhaps adding a "minimizing" before "restoring"?
Yes, it works now. Thank you, it's great. Minimizing is not necessary.

oog.
by oog
Oct 26, 2017 5:47
Forum: Beginners
Topic: Screen 0 and Windows 10
Replies: 12
Views: 2548

Re: Screen 0 and Windows 10

can you test this ... Good idea, but does not work for me. I've tried some variations, also without success. called SetFocus behind screen 0 Screen 0 SetForegroundWindow(HandleConsoleWindow) 'console window gets foreground SetFocus(HandleConsoleWindow) 'console window gets focus Tried open cons Ope...
by oog
Oct 25, 2017 5:53
Forum: Beginners
Topic: Screen 0 and Windows 10
Replies: 12
Views: 2548

Screen 0 and Windows 10

Usually I can switch from graphics window back to terminal window with "screen 0". This does not work on Windows 10. If I call "screen 0", the gfx window closes and the terminal window opens, but I can't input and output to the terminal window. From the code below: Print "Ba...
by oog
Oct 14, 2017 9:24
Forum: Sources, Examples, Tips and Tricks
Topic: Tiny C64 (old school)
Replies: 57
Views: 42898

Re:

One combo I don't know is the SHIFT-RUN/STOP for this emu. I think Run/Stop is not implemented. You have to set address $91 to $7F to simulate a pressed stop key. In my sim I do it like this: k = InKey If k<>"" Then If k=Chr(9) Then ' Tab is the Stop key c64.writeMem(&h91,&h7F) ' ...
by oog
Oct 14, 2017 9:13
Forum: Sources, Examples, Tips and Tricks
Topic: Tiny C64 (old school)
Replies: 57
Views: 42898

Re: Tiny C64 (old school)

Here are some new bugfixes. Thanks to Joshy for his C64 / 6502 simulator. I am actually implementing an experimental 6502 CPU for my 6502 assembler/disassembler project ( https://freebasic.net/forum/viewtopic.php?f=7&t=25742 ). I used Joshys CPU from this project as a reference and let it run p...
by oog
Oct 14, 2017 9:03
Forum: Sources, Examples, Tips and Tricks
Topic: d6502 - a compact 6502 disassembler in 100 lines of code
Replies: 6
Views: 2845

Re: d6502 - a compact 6502 disassembler in 100 lines of code

da6502 - a compact 6502 disassembler with assembler. Added 6502 assembler to the code and renamed file to "da6502", "da" = disassembler / assembler. To start the assembler, type the letter 'a' an a startaddress for the code. Example: a 1000 The assembler shell starts up. You see...