June 29, 2022, 01:10:51 PM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


Recent posts

Pages 1 ... 3 4 5 6 7 ... 10
41
General Questions / Re: Printer Measurements
Last post by Brian - December 10, 2021, 09:40:37 AM
Clint,

I have modified an old program called Jonz Calendar. The PDF shows January 2022 printed in landscape mode. I would like the day box divisions to reach the bottom of an A4 page, rather than be cut off short. Gives more room for my nearest and dearest to scribble in!

I can post the whole program if you want to have a mess with it

Brian
42
General Questions / Re: Printer Measurements
Last post by ckoehn - December 10, 2021, 08:08:21 AM
I started answering this post several times and kept erasing it.  I guess I don't know why you would need this answer.  How are you going to transfer it from your screen to your printer?  My screen is bigger than what my printer page would be.  You will have to scale it to whatever size you need anyway.

Maybe give some more info on what you are doing.  :)

Later,
Clint
43
Music and Sound / Re: Playing with BEEP
Last post by Brian - December 09, 2021, 03:45:51 AM
Sounds good to me, Bill - I even recognised the tune!

Attached a CONSOLE version for anyone wishing to try it

Brian
44
Music and Sound / Playing with BEEP
Last post by billhsln - December 08, 2021, 07:47:02 PM
This is supposed to be "My Bonnie lies over the ocean".  It is a little off, but I am kind of a tin ear.  So I thought that maybe some one else would like to play with it and maybe create a few short songs.

SUB endbeep()
BEEP(392,190)
BEEP(659,190)
BEEP(587,190)
BEEP(523,190)
BEEP(587,190)
BEEP(523,190)
BEEP(440,190)
BEEP(392,190)
BEEP(330,660)
BEEP(392,190)
BEEP(659,190)
BEEP(587,190)
BEEP(523,190)
BEEP(523,190)
BEEP(494,190)
BEEP(523,190)
BEEP(587,660)
RETURN
ENDSUB

Here is what I started from:

' dwFreq - frequency in hertz
' dwDuration - duration in milliseconds
Declare "kernel32.dll",Beep(dwFreq As int,  dwDuration As int),int
beep(600,50)

/*  play Bonnie with Beep

Frequency is any literal or variable value from 37 to 32767, but 0 is allowed for delays.
Duration is any literal or variable number of TIMER ticks with a duration of 1/18th second. 18 = one second.

Note: I don't think that 18 is 1 second, 190 seems to work better for me.

READ note%, duration%, word$

DATA 392,8,"My ",659,8,"Bon-",587,8,"nie ",523,8,"lies ",587,8,"O-",523,8,"Ver ",440,8,"the "
DATA 392,8,"O-",330,32,"cean ",392,8,"My ",659,8,"Bon-",587,8,"nie ",523,8,"lies "
DATA 523,8,"O-",494,8,"ver ",523,8,"the ",587,40,"sea ",392,8,"My ",659,8,"Bon-",587,8,"nie"
DATA 523,8," lies ",587,8,"O-",523,8,"ver ",440,8,"the ",392,8,"O-",330,32,"cean ",392,8,"Oh "
DATA 440,8,"bring ",587,8,"back ",523,8,"my ",494,8,"Bon-",440,8,"nie ",494,8,"to ",523,32,"me..!"
*/

/*
                             The Seven Music Octaves 
     
         Note     Frequency      Note     Frequency      Note      Frequency
       1* D#1 ...... 39           G3 ....... 196          A#5 ...... 932
          E1 ....... 41           G#3 ...... 208          B5 ....... 988
          F1 ....... 44           A3 ....... 220       6* C6 ....... 1047
          F#1 ...... 46           A#3 ...... 233          C#6 ...... 1109
          G1 ....... 49           B3 ....... 247          D6 ....... 1175
          G#1 ...... 51        4* C4 ....... 262          D#6 ...... 1245
          A1 ....... 55           C#4 ...... 277          E6 ....... 1318
          A#1 ...... 58           D4 ....... 294          F6 ....... 1397
          B1 ....... 62           D#4 ...... 311          F#6 ...... 1480
       2* C2 ....... 65           E4 ....... 330          G6 ....... 1568
          C#2 ...... 69           F4 ....... 349          G# ....... 1661
          D2 ....... 73           F#4 ...... 370          A6 ....... 1760
          D#2 ...... 78           G4 ....... 392          A#6 ...... 1865
          E2 ....... 82           G#4 ...... 415          B6 ....... 1976
          F2 ....... 87           A4 ....... 440       7* C7 ....... 2093
          F#2 ...... 92           A# ....... 466          C#7 ...... 2217
          G2 ....... 98           B4 ....... 494          D7 ....... 2349
          G#2 ...... 104       5* C5 ....... 523          D#7 ...... 2489
          A2 ....... 110          C#5 ...... 554          E7 ....... 2637
          A#2 ...... 117          D5 ....... 587          F7 ....... 2794
          B2 ....... 123          D#5 ...... 622          F#7 ...... 2960
       3* C3 ....... 131          E5 ....... 659          G7 ....... 3136
          C#3 ...... 139          F5 ....... 698          G#7 ...... 3322
          D3 ....... 147          F#5 ...... 740          A7 ....... 3520
          D#3 ...... 156          G5 ....... 784          A#7 ...... 3729
          E3 ....... 165          G#5 ...... 831          B7 ....... 3951
          F3 ....... 175          A5 ....... 880       8* C8 ....... 4186
          F#3 ...... 185 
                                 # denotes sharp
*/

Maybe some one more musically inclined than me can come up with more?

Enjoy,
Bill
45
General Questions / Printer Measurements
Last post by Brian - December 08, 2021, 09:26:11 AM
OK, so my A4 printer has a printable area of 2892 horizontal resolution x 4125 vertical resolution

How can I convert those numbers to match my screen resolution? Is it divide by 96 dpi?

Help!

Brian
46
General Questions / Re: Drawing to scale
Last post by Andy - December 05, 2021, 12:41:27 AM
Clint,

Sorry for not replying earlier, I've had back problems all week and was unable to sit at my PC.

Thanks for the calculations.

By the way, glad to see you seem to have recovered now - great to see you back, and the brain cells are still going strong!

Andy.
 :)

47
GUI Central / RichEdit Question
Last post by billhsln - December 04, 2021, 09:10:14 AM
I am loading a RichEdit with stuff I pull from an ODBC connection from an offsite machine using SQL.  My question is is it possible to force the RichEdit to display ever once in a while.  What happens is it shows a page or so of info and then just stops and may not display anything for up to 2 or 3 minutes.  I just would like it to pop up some info every once in a while, so I know that it has not locked up or lost the ODBC connection.

Thanks,
Bill
48
Games and Graphics / Re: PacMan
Last post by pistol350 - November 27, 2021, 12:15:08 AM
I do remember that one from ZD. :-)
49
General Questions / Re: Drawing to scale
Last post by ckoehn - November 26, 2021, 03:24:26 PM
Ah my friends. All you need is windows calculator. Change the 99' 1" to feet, which is 99.083333'.  You want to know how many mm of drawing space for every foot. So.. mm/ft = 290mm/99.083333 = 2.9268293 or you can just round it to 2.9. Store 2.9 in calculator memory. 99.08333' * 2.9 = 287.3416 mm. That allows a little extra margin space.

Or wasn't this what you were asking?

Brain cells are still working a little slow.

Later,
Clint
50
General Questions / Re: Drawing to scale
Last post by Egil - November 25, 2021, 04:18:59 AM
Andy,

I think the simplest (and fastest!!) way will be to convert everything first to inches, and then convert it  to millimeters multiplying the answer by 25.4, and then use Brians screen code routines for scaling the results to suit the paper.

I haven't seen Sapero's code before, but at first glance it appears to do much the same as Bians code.

Good luck!

Egil
Pages 1 ... 3 4 5 6 7 ... 10