Search found 129 matches

by Muttonhead
Dec 23, 2016 8:32
Forum: General
Topic: creating wav's
Replies: 16
Views: 1551

Re: creating wav's

final, i'm out 'based on http://www.topherlee.com/software/pcm-tut-wavformat.html const as double doublepi =atn (1) * 8 'converts an analog(single) value to a fitted sample value function GetSampleValue(analog as single, Bits as integer) as integer 'analog: 8bit: 16bit: ' +1 255 32767 ' ^ ^ ^ ' / \ ...
by Muttonhead
Dec 22, 2016 13:39
Forum: General
Topic: creating wav's
Replies: 16
Views: 1551

Re: creating wav's

take a look at the MKx functions. If you have a fixed format its important to convert the values to the needed (string-) length. At the moment, I doubt it, that you are on the *right* track (so to speak). I think that (looking at the C code again), the FILE-Format should be BINARY, to start with. T...
by Muttonhead
Dec 22, 2016 11:26
Forum: General
Topic: creating wav's
Replies: 16
Views: 1551

Re: creating wav's

take a look at the MKx functions. the wave format is a FILE format and its important how many bytes for the different values you are writing in the file! a dim as integer a=1 dim as integer b=23 print #1, a; print #1; b; creates "decimal strings" with different length of the values in the ...
by Muttonhead
Dec 15, 2016 16:14
Forum: General
Topic: creating wav's
Replies: 16
Views: 1551

Re: creating wav's

dont ask me... 8bit stereo :) open the WAV with your favourite audio editor and check it const as single pi =atn (1) * 4 const as single doublepi=pi*2 'RIFF (WAVE) Descriptor Variables dim as string riffID ="RIFF" dim as uinteger riffsize '4Byte LE dim as string rifftype ="WAVE" ...
by Muttonhead
Jul 29, 2016 11:36
Forum: Community Discussion
Topic: [solved] any math guru here ?
Replies: 16
Views: 2583

Re: any math guru here ?

it was me, i thought it was not good enough.... can post it again my aproximation: screenres 800,640 sub nonlinear2(y as single,a as single,b as single,steps as single) var d=(b-a) : if d<2 then return 'if steps<2 then steps=2 dim as integer c dim as single s 'a kind of reverse "free fall physi...
by Muttonhead
Jun 25, 2016 15:36
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43020

Re: sGUI

in ListBox.bas routine UpdateListBox(gad as Gadget ptr)
comment line 102:

Code: Select all

UpdateGadget(listbox)

to

Code: Select all

'UpdateGadget(listbox)
by Muttonhead
Jun 25, 2016 10:42
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43020

Re: sGUI

can't repeat the behavior...:(. on my machine its looks ok... but there's a heavy bug in the update routine of listbox in v.0.85... it appears when you use the filerequester: scroll up and down and then try to go to parent directory, program will crash... i'll check this... this version is embeded i...
by Muttonhead
Jun 02, 2016 9:52
Forum: Projects
Topic: Charset2FBFont
Replies: 19
Views: 3521

Re: Charset2FBFont

Hm... as long as you want to use the BitmapFont.bi only and a bitmap, howsoever(thanks2googletransltr) it was created,... feel free to use it and earn a lot of money with it! :D I think no license needed The created Bitmap... I'm not a lawyer, the most fonts are copyrighted, take a look at the (c)'s...
by Muttonhead
May 31, 2016 7:01
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43020

Re: sGUI

@Petan: All Get..Val() and Set..Val() can used on a wrong gagdet type. In the german reference is a hint for this problem: don't do this !!! ok, this is not a real solution :D generally all these routines a very redundant, i know it and i don't like it. in earlier versions of sGUI i've played with s...
by Muttonhead
May 29, 2016 10:18
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43020

Re: sGUI

I see Petan, or someone was working on English Docs for using these routines... where might I find that? Also, what is the latest version with all the bells and whistles that Petan was working on (Dynamic windows, etc)? Is this still a work in progress? :D Yes, i can provide a kind of short referen...
by Muttonhead
May 25, 2016 5:45
Forum: Tips and Tricks
Topic: MultiPut V2.0 :-)
Replies: 24
Views: 6637

Re: MultiPut V2.0 :-)

@bcohio2001: I have always tried to discover the secret of Multiput, there I have never succeeded ... :( So the following snippet is more a homage to dj... great work! but it contains exactly the feature you are looking for: https://www.freebasic-portal.de/porticula/rotput5-bi-1827.html Mutton
by Muttonhead
May 01, 2016 7:55
Forum: Projects
Topic: Charset2FBFont
Replies: 19
Views: 3521

Re: Charset2FBFont

@leopardpm: i have never made any kind of speedtests but i think my own plotting routine is much slower than DRAW STRING, many many PSETs inside :). generally I would recommend DRAW STRING to use. But the methods for manipulation have their problems with anti-aliased bitmaps, these methods work best...
by Muttonhead
Apr 30, 2016 19:06
Forum: Projects
Topic: Charset2FBFont
Replies: 19
Views: 3521

Re: Charset2FBFont

a minor change: the latest version should create codepage 437 compatible bitmap fonts, if the font support the needed glyphs

Mutton
by Muttonhead
Apr 20, 2016 19:12
Forum: Projects
Topic: sGUI
Replies: 238
Views: 43020

Re: sGUI

sub MultiLineEditSubHandle(gad as Gadget ptr) dim as Gadget ptr editbox,vscrollbar,hscrollbar, arrowResize editbox=gad->subevent->GadgetList->GetFirst'get the first control off the subevent gadget list vscrollbar=cast(Gadget ptr,editbox->next_node)'look in editbox for successor in gadget list hscro...

Go to advanced search