Search:

Type: Posts; User: samGwilliam

Page 1 of 16 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    206

    Thanks very much, I managed to get it sorted in...

    Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
  2. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    206

    Thanks very much, I managed to get it sorted in...

    Thanks very much, I managed to get it sorted in the end. I started a fresh project small - at first a "Hello World" project to which I added the line #include <mmsystem.h>, then declared the callback...
  3. Thread: MIDI in.

    by samGwilliam
    Replies
    4
    Views
    206

    MIDI in.

    I am trying to write a simple Windows program in Code::Blocks (as a foundation to write a larger program) but everything I try just doesn't compile for a variety of cryptic reasons.

    For instance...
  4. Yeah sorry, I was just throwing my toys out of my...

    Yeah sorry, I was just throwing my toys out of my pram. This is so frustrating though - all I'm seeing are seemingly unnecessary barriers to the pure pursuit of coding. I did some stuff with Arduino...
  5. And the image is, for some reason, too small to...

    And the image is, for some reason, too small to read. No idea why that is, sorry. Oh, and, while I'm trying to read the error messages the, after about 12 seconds, the IDE spontaneously opens some...
  6. I found the header file so I thought I'd try and...

    I found the header file so I thought I'd try and get the winmm.lib file to work with it. I did some Googling and discovered that Mingw has its own version called winmm.a so I put the command line...
  7. Thank you. I gave this a try: MIDI-in sample...

    Thank you. I gave this a try: MIDI-in sample program for Win32 (using winmm.lib) * GitHub

    And, just like I knew was going to happen, it complained that it couldn't find SDKDDKVer.h. I've never...
  8. Detecting and polling MIDI in devices.

    Can anyone help me with reading MIDI input (from a controller keyboard or similar)? I want to write a software synthesiser, I'm having trouble with getting the audio part working (it seems the...
  9. Do you mean statically link to a DLL (as in go to...

    Do you mean statically link to a DLL (as in go to the compiler options and set the path containing the DLL, as opposed to the compiled app looking for the DLL at runtime)? The problem I'm having is...
  10. That would explain the lack of .lib files. I...

    That would explain the lack of .lib files. I definitely never had this problem when using Port Audio a few years back. I think I was using v17 or v18, though, now I'm using v19 and maybe they expect...
  11. The default compiler for C::B, it seems, is the...

    The default compiler for C::B, it seems, is the GNU GCC compiler so this will be the one I'm using. Also something called MinGW.
  12. It seems that I should be giving Code::Blocks the...

    It seems that I should be giving Code::Blocks the path of some .lib files - but I searched the Port Audio directory and found no .lib files at all. I know I've managed to get this to work in the...
  13. Linker Issue - Getting PortAudio to work with Code::Blocks

    I've installed the SDK and set the right folder for the include path but it's giving me errors, saying undefined references to functions.

    I know what the problem is - something to do with the...
  14. Replies
    13
    Views
    6,170

    I really have to try this multithreading lark...

    I really have to try this multithreading lark sometime.
  15. Replies
    11
    Views
    1,474

    That's pretty cool. Did you store the number...

    That's pretty cool.

    Did you store the number as a byte per digit and perform the carrying manually or something?
  16. Replies
    2
    Views
    966

    Signed ints use the most significant bit to...

    Signed ints use the most significant bit to indicate polarity, so the shift will change that.
  17. True. I do know OpenGL, but can't really be...

    True.

    I do know OpenGL, but can't really be bothered to use it for 2D. I wouldn't even know how to off the top of my head - would you just use textured polygons as sprites?
  18. Replies
    2
    Views
    2,166

    That would be a tough one - much more complex...

    That would be a tough one - much more complex than the cube because with the cube all of the moves can be done at anytime - with the Magic there would be far more constraint. If I had one in front of...
  19. Replies
    16
    Views
    5,966

    It's pretty good. Well done.

    It's pretty good. Well done.
  20. Replies
    13
    Views
    1,232

    Isn't that the Sieve of Eratosthenes or...

    Isn't that the Sieve of Eratosthenes or something?

    A (former) friend of mine thought he discovered that himself and even started writing some wanky 'paper' about it, crowbarring in sine waves for...
  21. I'm writing a 2D game that uses the BitBlt...

    I'm writing a 2D game that uses the BitBlt function - it's pretty fast even though I haven't fully optimised yet.
  22. Replies
    13
    Views
    1,232

    Even better.

    Even better.
  23. Direction and velocity could be scalar variables...

    Direction and velocity could be scalar variables or a vector - it would definitely make sense to store the resulting X and Y deltas as a vector though (and only calculate when the angle changes).
    ...
  24. Replies
    13
    Views
    1,232

    Your while condition will most likely make the...

    Your while condition will most likely make the second if fail. You correctly exit the loop when you discover it's not prime, so at that point why not just set a flag (bool isPr or something), then...
  25. Thread: get/set

    by samGwilliam
    Replies
    21
    Views
    3,640

    I think one of the main reasons I've shyed away...

    I think one of the main reasons I've shyed away from templates is because the syntax is just so freaking ugly.

    I simply cannot read that code.
Results 1 to 25 of 383
Page 1 of 16 1 2 3 4